# Custom build crash - MacOS 10.12

**URL:** <https://discourse.slicer.org/t/custom-build-crash-macos-10-12/4545>\
**Category:** Development\
**Created:** [October 26, 2018, 4:07pm UTC](https://discourse.slicer.org/t/custom-build-crash-macos-10-12/4545 "2018-10-26T16:07:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominicwhite](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dominicwhite/32/2364_2.png) [@dominicwhite](https://discourse.slicer.org/u/dominicwhite)\
**Post date:** [October 26, 2018, 4:07pm UTC](https://discourse.slicer.org/t/custom-build-crash-macos-10-12/4545/1 "2018-10-26T16:07:23Z")

</div>

I’ve been trying to build Slicer from source, but I keep running into the following error when running the build:

```
2018-10-26 11:18:42.097 Slicer[1559:9595646] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 
Switch to module: "Welcome"
Switch to module: "Volumes"
ASSERT: "this-&gt;Table-&gt;rowHeight(i) == newHeight" in file /opt/S/CTK/Libs/Widgets/ctkMatrixWidget.cpp, line 252
error: [/opt/S/Slicer-build/bin/Slicer.app/Contents/MacOS/./Slicer] exit abnormally - Report the problem.

```

This happens whenever I switch to the Volumes module (with or without data loaded).

OS: MacOS Sierra 10.12.6  
XCode: Version 9.2 (9C40b)  
clang: Apple LLVM version 9.0.0 (clang-900.0.39.2)  
QT: 5.11.2  
Cmake: 3.12.3

Slicer: Nightly-master branch (4.11.0 2018-10-23)

My cmake command is  
cmake   
-DCMAKE\_BUILD\_TYPE:STRING=Debug   
-DQt5\_DIR:PATH=/Users/whitede/Applications/Qt/5.11.2/clang\_64/lib/cmake/Qt5   
-DCMAKE\_OSX\_DEPLOYMENT\_TARGET=10.12   
-DSlicer\_USE\_GIT\_PROTOCOL=OFF   
-DSlicer\_USE\_PYTHONQT\_WITH\_TCL=OFF   
/Users/whitede/MyProjects/Slicer

I’ve been trying various combinations of this all week without success. Is there a likely cause of this problem? Wrong version of QT? When I try to compile the master-48 branch, I get this error:

```
In file included from /opt/Slicer/CTK-build/CTK-build/Libs/Widgets/moc_ctkPathListButtonsWidget_p.cpp:9:
/opt/Slicer/CTK/Libs/Widgets/ctkPathListButtonsWidget_p.h:60:49: error: unknown type name 'QItemSelection'
  void on_PathListWidget_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
```

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [October 26, 2018, 4:56pm UTC](https://discourse.slicer.org/t/custom-build-crash-macos-10-12/4545/2 "2018-10-26T16:56:45Z")

</div>

Thanks for detailed report. Could you create an issue report on: [http://issues.slicer.org/](http://issues.slicer.org/) ? Summarizing the problem and including a link to this post will be enough.

Also waiting we address the issue, you could do a Release build and you shouldn’t have problem.

You can do a release build passing the following option to `cmake` when configuring Slicer `-DCMAKE_BUILD_TYPE:STRING=Release`.

---

<div class="post-metadata">

**Author:** ![leochan2009](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leochan2009/32/519_2.png) [@leochan2009](https://discourse.slicer.org/u/leochan2009)\
**Post date:** [October 31, 2019, 8:17pm UTC](https://discourse.slicer.org/t/custom-build-crash-macos-10-12/4545/3 "2019-10-31T20:17:41Z")

</div>

The same issue happen to MacOS 10.15 SDK again

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 1, 2019, 2:48am UTC](https://discourse.slicer.org/t/custom-build-crash-macos-10-12/4545/4 "2019-11-01T02:48:33Z")

</div>

The issue is fixed in recent CTK versions. Either build latest Slicer master or backport the [CTK fix](https://github.com/commontk/CTK/commit/0e1d94593d900fd144f50af38e3240063ab30484) into CTK in your build tree.
