View Issue Details

IDProjectCategoryView StatusLast Update
0004647Slicer4Core: Base Codepublic2018-12-12 16:32
Reporterdewhite Assigned Tojcfr  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status assignedResolutionopen 
PlatformOSMacOS Version10.12
Product Version 
Target VersionSlicer 4.11.0Fixed in Version 
Summary0004647: MacOS crash ctkMatrixWidget.cpp
Description

After building Slicer from source (nightly-master branch), I get the following runtime error resulting in a program crash:

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->Table->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)

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

Error occurs whether or not data has been loaded.

Issue first posted on Discourse: https://discourse.slicer.org/t/custom-build-crash-macos-10-12/4545

Steps To Reproduce

Start Slicer:
Slicer-build/Slicer

Load Volumes module.

TagsNo tags attached.

Activities

lassoan

lassoan

2018-12-12 15:08

developer   ~0016223

This is a "crash" triggered by a debug assert, so it does not happen in release version.

Could you build in release mode (or just use a nightly Slicer package) and check if you see any issues with how the direction matrix appears in the volume module?

dewhite

dewhite

2018-12-12 16:21

reporter   ~0016224

Built the nightly master branch in release mode, and have attached a couple of screenshots of the volume module, with and without data loaded. As far as I can tell, its behaving as expected, but let me know if you want me to test anything in particular.



jcfr

jcfr

2018-12-12 16:32

administrator   ~0016225

I looked into this few weeks ago. This is due to the transition from Qt4 to Qt5.

It can be reproduced building the CTK with testing enabled and running the ctkMatrixWidgetTest tests

Issue History

Date Modified Username Field Change
2018-10-26 13:31 dewhite New Issue
2018-10-26 13:31 dewhite Status new => assigned
2018-10-26 13:31 dewhite Assigned To => jcfr
2018-10-26 13:34 dewhite Description Updated View Revisions
2018-10-26 13:42 jcfr Target Version => Slicer 4.11.0
2018-12-12 15:08 lassoan Note Added: 0016223
2018-12-12 16:21 dewhite File Added: Screen Shot 2018-12-12 at 4.14.22 PM.png
2018-12-12 16:21 dewhite File Added: Screen Shot 2018-12-12 at 4.17.58 PM.png
2018-12-12 16:21 dewhite Note Added: 0016224
2018-12-12 16:32 jcfr Note Added: 0016225