Markups tools not measuring Slicer 5.4.0

With Slicer 5.4.0, it seems that the MarkupsLineNode and other Markups Nodes are not showing their measurements, nor does it appear to be registering an actual measurement. When I try to get the measured length using python it returns “0.0” when it is greater than that. Is anyone else running into this issue? Currently running on a Mac.

I cannot reproduce the behavior you described. Can you take a video or describe the exact steps (each click) you make?

I did some more investigating. It looks like the problem may have to do the SlicerMorph customizations, as I only have this problem when the customizations are enabled. @muratmaga

To be clear, what I did was:

  1. re-downloaded Slicer 5.4 on Mac
  2. Open Slicer and immediately drew a line using the Markups tools and saw the length being displayed
  3. Installed SlicerMorph
  4. Confirmed that the line tool still works
  5. Enabled SlicerMorph customizations, restarted Slicer, and found that the line tool stopped measuring
  6. Turned off customizations, restarted Slicer, and found that the line tool works again

Possibly unrelated, but upon initially launching Slicer the python window has this error regarding the MarkupsToModel extension

[Qt]   Error(s):
[Qt]     Cannot load library /Applications/Slicer.app/Contents/Extensions-31938/MarkupsToModel/lib/Slicer-5.4/qt-loadable-modules/libqSlicerMarkupsToModelModule.dylib: (dlopen(/Applications/Slicer.app/Contents/Extensions-31938/MarkupsToModel/lib/Slicer-5.4/qt-loadable-modules/libqSlicerMarkupsToModelModule.dylib, 0x0085): Library not loaded: /Users/svc-dashboard/D/S/A/ITK-build/lib/libitkgdcmjpeg8-5.3.1.dylib
[Qt]   Referenced from: <8228E9E9-AE1B-31B6-BEEB-4F916BF21B91> /Applications/Slicer.app/Contents/Extensions-31938/MarkupsToModel/lib/Slicer-5.4/libitkgdcmMSFF-5.3.1.dylib
[Qt]   Reason: tried: '/Users/svc-dashboard/D/S/A/ITK-build/lib/libitkgdcmjpeg8-5.3.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/S/A/ITK-build/lib/libitkgdcmjpeg8-5.3.1.dylib' (no such file), '/Users/svc-dashboard/D/S/A/ITK-build/lib/libitkgdcmjpeg8-5.3.1.dylib' (no such file), '/usr/lib/libitkgdcmjpeg8-5.3.1.dylib' (no such file, not in dyld cache))

@jmhuie what do you mean by stops measuring?

I am trying to replicate this on an intel Mac I have, and line tools works as expected, but it doesn’t display the measurement field regardless whether slicermorph customization are enabled or disabled? Is this what you are referring to as the issue?

We did recently enabled undo for markups through the customization script, but I am not seeing any errors in the log file either.

@smrolfe

Ok, I can replicate this with a new slicer session without customization script loaded at the beginning.

Thanks for reporting @smrolfe can you take a look?

1 Like

Yes that is what I’m referring to as the issue, except it does display the measurement when the slicermorph customizations are disabled. And if you were to measure the length of the line using python, it’d say the length is 0.0 when it clearly isn’t.

If you do want to use the customizations, as a temporary fix you can comment out or remove this line and it seems to fix the issue.

Yes, I’ll look into it and update here.

Possibly unrelated, but upon initially launching Slicer the python window has this error regarding the MarkupsToModel extension

[Qt]   Error(s):
[Qt]     Cannot load library /Applications/Slicer.app/Contents/Extensions-31938/MarkupsToModel/lib/Slicer-5.4/qt-loadable-modules/libqSlicerMarkupsToModelModule.dylib: (dlopen(/Applications/Slicer.app/Contents/Extensions-31938/MarkupsToModel/lib/Slicer-5.4/qt-loadable-modules/libqSlicerMarkupsToModelModule.dylib, 0x0085): Library not loaded: /Users/svc-dashboard/D/S/A/ITK-build/lib/libitkgdcmjpeg8-5.3.1.dylib
[Qt]   Referenced from: <8228E9E9-AE1B-31B6-BEEB-4F916BF21B91> /Applications/Slicer.app/Contents/Extensions-31938/MarkupsToModel/lib/Slicer-5.4/libitkgdcmMSFF-5.3.1.dylib
[Qt]   Reason: tried: '/Users/svc-dashboard/D/S/A/ITK-build/lib/libitkgdcmjpeg8-5.3.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/S/A/ITK-build/lib/libitkgdcmjpeg8-5.3.1.dylib' (no such file), '/Users/svc-dashboard/D/S/A/ITK-build/lib/libitkgdcmjpeg8-5.3.1.dylib' (no such file), '/usr/lib/libitkgdcmjpeg8-5.3.1.dylib' (no such file, not in dyld cache))

Consider uninstalling & re-installing the SlicerMorph extension as this a symptom of the following issue that just got addressed:

Enabling undo/redo is causing this issue because there’s a bug where adding a default node to the scene removes the measurements displayed for that node type. This also occurs when SetUndoEnabled() is not set for the default node.

For now, we updated the SlicerMorph preferences to enable undo/redo for point lists only.

cc: @Sunderlandkyl

1 Like

Is there a bug report for this. If not, could you create one? Thank you!

1 Like

Issue added here: Adding a default Markups node to scene removes measurements · Issue #7239 · Slicer/Slicer · GitHub

2 Likes

This solved my problem thanks.

Not sure if this is related but I can now see measurments both next to my markups when drawing them and on the measurment tab. But I cannot see them in the table, nor export the measurments in a tab. Is this actually possible or related to a bug ?
Thanks