Unfortunately, I can’t consistently reproduce this, but in the last couple of weeks Slicer has crashed many times. Today it’s happened when playing with the threshold in the Volumes module, but I’m not sure it’s related to that. I think the message in the shell is always the same, however, or very similar:
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Assertion `this->Table->rowHeight(i) == newHeight` failed in /Volumes/D/P/S-0-build/CTK/Libs/Widgets/ctkMatrixWidget.cpp line 253
Failed to lock QIOSurfaceGraphicsBuffer(0x7fea4769d100, surface=0x0, size=QSize(1022, 0), isLocked=false, isInUse=false) -536870206
[1] 46337 illegal hardware instruction /Applications/Slicer.app/Contents/MacOS/Slicer
I hope others have faced the same issue, and that the developers can get an idea of where the issue might be coming from. Let me know if there’s anything else I can do to help.
I’m using today’s preview on macOS Catalina 10.15.5.
Thanks for letting us know. Have you built Slicer yourself or you use an official build? Which Slicer version is this? Has this version worked robustly before? Have you installed any extensions or added any modules? Do the two last lines (“Failed to lock QIOSurfaceGraphicsBuffer…” and “illegal hardware instruction”) appear right before the application crashes?
Thank you @Fernando, this is very useful. In this stack trace the crash is triggered by ctkBasePopupWidget::setEffectGeometry(QRect) making a widget visible.
I did some web search for Qt crashes on MacOS Catalina and there were just a few that were vaguely similar, so most probably it is also something special about how Qt is used - most probably something in VTK but maybe in CTK.
@jcfr do you know if Paraview started to use Qt-5.15 yet?
I am experiencing a similar problem. My 3D Slicer didn’t crash until I returned to it after some time (I was working inside google docs for approx. 30minutes). I am not 100% certain, but I think it happened when clicking into the scene after returning.
Another occurrence reported by a user, just after starting Slicer, he started screen recording, then moved the Slicer application window a bit, then when the mouse was moved over the top-left corner of the 3D view, Slicer crashed. Probably it went over the push-pin icon.
Slicer application log
##[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - Session start time .......: 2020-08-05 11:40:01
[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - Slicer version ...........: 4.11.0-2020-08-02 (revision 29250 / 1a8a340) macosx-amd64 - installed release
[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - Operating system .........: Mac OS X / 10.15.5 / 19F101 - 64-bit
[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - Memory ...................: 32768 MB physical, 2048 MB virtual
[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - CPU ......................: GenuineIntel Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz, 8 cores, 16 logical processors
[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - VTK configuration ........: OpenGL2 rendering, Sequential threading
[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - Qt configuration .........: version 5.15.0, with SSL, requested OpenGL 3.2 (core profile)
[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - Developer mode enabled ...: no
[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - Prefer executable CLI ....: yes
[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - Application path .........: /Applications/Slicer 5.app/Contents/MacOS
[DEBUG][Qt] 05.08.2020 11:40:01 [] (unknown:0) - Additional module paths ..: /Users/cianciulla/sources/SlicerHeart/CardiacDeviceSimulator, /Users/cianciulla/sources/SlicerHeart/Philips4dUsDicomPatcher, /Users/cianciulla/sources/SlicerHeartCollaborators/LeafletAnalysis, /Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis, /Users/cianciulla/sources/SlicerHeartCollaborators/ValveQuantification, /Users/cianciulla/sources/SlicerHeartCollaborators/ValveSegmentation, /Users/cianciulla/sources/SlicerHeartPrivate/BafflePlanner, /Users/cianciulla/sources/SlicerHeartPrivate/CardiacDeviceSimulatorExtender, /Users/cianciulla/sources/SlicerHeartPrivate/CrossSectionAnalyzer, /Users/cianciulla/sources/SlicerHeartPrivate/EchoVolumeRender, /Users/cianciulla/sources/SlicerHeartPrivate/LeafletEditorTest, /Users/cianciulla/sources/SlicerHeartPrivate/LeafletMoldGenerator, /Users/cianciulla/sources/SlicerHeartPrivate/MitraClipDeviceSimulator, /Users/cianciulla/sources/SlicerHeartPrivate/TranscatheterDeviceSimulator, /Users/cianciulla/sources/SlicerHeartPrivate/ValveBatchExport, /Users/cianciulla/sources/SlicerHeartPrivate/ValveFemExport, /Users/cianciulla/sources/SlicerHeartPrivate/ValvePapillaryAnalysis, /Users/cianciulla/sources/SlicerHeartPrivate/ValveQuantificationExtender, /Applications/Slicer 5.app/Contents/Extensions-29250/MarkupsToModel/lib/Slicer-4.11/qt-loadable-modules, /Applications/Slicer 5.app/Contents/Extensions-29250/SlicerHeart/lib/Slicer-4.11/cli-modules, /Applications/Slicer 5.app/Contents/Extensions-29250/SlicerHeart/lib/Slicer-4.11/qt-loadable-modules, /Applications/Slicer 5.app/Contents/Extensions-29250/SlicerHeart/lib/Slicer-4.11/qt-scripted-modules, /Applications/Slicer 5.app/Contents/Extensions-29250/SlicerIGT/lib/Slicer-4.11/qt-loadable-modules, /Applications/Slicer 5.app/Contents/Extensions-29250/SlicerIGT/lib/Slicer-4.11/qt-scripted-modules, /Applications/Slicer 5.app/Contents/Extensions-29250/SlicerOpenIGTLink/lib/Slicer-4.11/qt-loadable-modules, /Applications/Slicer 5.app/Contents/Extensions-29250/SlicerOpenIGTLink/lib/Slicer-4.11/qt-scripted-modules, /Applications/Slicer 5.app/Contents/Extensions-29250/VolumeClip/lib/Slicer-4.11/qt-scripted-modules
[DEBUG][Python] 05.08.2020 11:40:02 [Python] (/Applications/Slicer 5.app/Contents/lib/Python/lib/python3.6/site-packages/pydicom/datadict.py:432) - Reversing DICOM dictionary so can look up tag from a keyword...
[DEBUG][Python] 05.08.2020 11:40:03 [Python] (/Applications/Slicer 5.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: Annotations
[DEBUG][Python] 05.08.2020 11:40:04 [Python] (/Applications/Slicer 5.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentEditor
[DEBUG][Python] 05.08.2020 11:40:04 [Python] (/Applications/Slicer 5.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentStatistics
[DEBUG][Python] 05.08.2020 11:40:05 [Python] (/Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis/HeartValveLib/HeartValves.py:407) - updateLegacyHeartValveNodes
[DEBUG][Python] 05.08.2020 11:40:05 [Python] (/Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis/HeartValveLib/HeartValves.py:25) - Added scene end import observer for HeartValves
[DEBUG][Python] 05.08.2020 11:40:05 [Python] (/Applications/Slicer 5.app/Contents/lib/Slicer-4.11/qt-scripted-modules/SubjectHierarchyPlugins/AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: HeartValves
[DEBUG][Qt] 05.08.2020 11:40:04 [] (unknown:0) - Switch to module: "Welcome"
[INFO][VTK] 05.08.2020 11:40:05 [vtkMRMLVolumeArchetypeStorageNode (0x7f83fcce1a20)] (/Volumes/D/P/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:470) - Loaded volume from file: /Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis/Resources/VrPresets/US-Red-Tinge.png. Dimensions: 65x50x1. Number of components: 4. Pixel type: unsigned char.
[INFO][VTK] 05.08.2020 11:40:05 [vtkMRMLVolumeArchetypeStorageNode (0x7f83fcce1da0)] (/Volumes/D/P/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:470) - Loaded volume from file: /Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis/Resources/VrPresets/US-Red.png. Dimensions: 65x50x1. Number of components: 4. Pixel type: unsigned char.
[INFO][VTK] 05.08.2020 11:40:05 [vtkMRMLVolumeArchetypeStorageNode (0x7f83fcce1fa0)] (/Volumes/D/P/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:470) - Loaded volume from file: /Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis/Resources/VrPresets/US-Ocean.png. Dimensions: 65x50x1. Number of components: 4. Pixel type: unsigned char.
[INFO][VTK] 05.08.2020 11:40:05 [vtkMRMLVolumeArchetypeStorageNode (0x7f83fcce21a0)] (/Volumes/D/P/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:470) - Loaded volume from file: /Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis/Resources/VrPresets/US-Grey.png. Dimensions: 65x50x1. Number of components: 4. Pixel type: unsigned char.
[INFO][VTK] 05.08.2020 11:40:05 [vtkMRMLVolumeArchetypeStorageNode (0x7f83fcce23a0)] (/Volumes/D/P/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:470) - Loaded volume from file: /Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis/Resources/VrPresets/US-Silver.png. Dimensions: 65x50x1. Number of components: 4. Pixel type: unsigned char.
[INFO][VTK] 05.08.2020 11:40:05 [vtkMRMLVolumeArchetypeStorageNode (0x7f83fcce25a0)] (/Volumes/D/P/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:470) - Loaded volume from file: /Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis/Resources/VrPresets/US-Green.png. Dimensions: 65x50x1. Number of components: 4. Pixel type: unsigned char.
[INFO][VTK] 05.08.2020 11:40:05 [vtkMRMLVolumeArchetypeStorageNode (0x7f83fcce27a0)] (/Volumes/D/P/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:470) - Loaded volume from file: /Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis/Resources/VrPresets/US-InverseGreen.png. Dimensions: 65x50x1. Number of components: 3. Pixel type: unsigned char.
[INFO][VTK] 05.08.2020 11:40:05 [vtkMRMLVolumeArchetypeStorageNode (0x7f83fcce29a0)] (/Volumes/D/P/S-0/Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx:470) - Loaded volume from file: /Users/cianciulla/sources/SlicerHeartCollaborators/ValveAnnulusAnalysis/Resources/VrPresets/CT-EndoVascular.png. Dimensions: 65x50x1. Number of components: 3. Pixel type: unsigned char.
[WARNING][Qt] 05.08.2020 11:40:31 [] (unknown:0) - Tried to flush backingstore without painting to it first
I just got another crash with a stack trace like @Fernando’s. I believe the cursor just brushed over the pin icon.
It looks like it is the QAnimation used by ctkPopupWidget. Maybe the exit event happens and the widget is deleted before the animation gets started or something like that.
Perhaps the easiest would be to turn off that animation feature and just have popup appear and disappear instantly. I personally wouldn’t miss the animation and would prefer a more stable application.
We have fixed the issue (https://github.com/Slicer/Slicer/issues/5092), no crash should occur in Slicer Preview Releases downloaded 2020-08-11 or later. Let us know if you still experience similar problems.
I’ve also shortened the animation duration to 10% of the original, so popup windows appear immediately now.