Error loading a saved scene

Hi Slicer gurus!
I’m having trouble loading some saved data. I “saved the scene” I was working on yesterday that included reformatted slice planes, some fiducials, as well as some linear and closed loop measurements from a CT scan DICOM.

Slicer version 4.13.0-2021-02-19
I’m using this instead of the stable version because I need area of the closed loop measurements.

What I did:
I tried the Load Data button and selected the directory where I saved the scene.
Response:
Instead of the “Four Up” standard view, it shows all of the data three times and indifferent orientations (see image). It then gives an error window that says “Error while loading the selected files. Click ‘Show details’ button and check the application log for more information.”

The error log shows a VTK error “vtkMRMLStorageNode::ReadData: Failed to read node L2.mrk.json (vtkMRMLScalarVolumeNode1) from filename”. And another VTK error “Failed to determine texture parameters. IF=0 F=6407 T=5121”

Questions:

  1. Is there a tutorial on saving/reloading scenes properly? I could not find one in the website tutorials.
  2. Is there a way to get back to what I’ve saved? Or do I need to start over?
  3. How do I avoid doing the same thing again?
  4. Why does it show the data multiple times and rotated?

Appreciate any advice as I’m fairly new to this software. I did not see another topic with the same error. Hopefully someone has seen it before.

Thanks very much,
Hollie

Could you check the error log (menu: Help / Report a bug) to see if there were any more details about why L2.mrk.json failed to load?

The images that you see on the screen is screenshot that you took (or that was taken automatically when you saved the scene). Single-slice images are loaded in all views in the specific Slicer version you use, but in tomorrow’s version it’ll be only displayed in one view, so it will not be this confusing.

To load the data that you saved, only load the .mrml file into Slicer, not all the files in the folder. If you find working with multiple files confusing then click the “package” icon in the Save data window to save everything into a single .mrb file.

I think the markup loading issue was fixed by this PR: BUG: Fix default storage node creation in LoadMarkupsFromJson by Sunderlandkyl · Pull Request #5479 · Slicer/Slicer · GitHub.
It should be fixed in tomorrow’s preview release.

1 Like

Thank you both for the quick replies!

When I open the files individually, it does get rid of the weird multiple images. I don’t seem to have access to the measurements, however, only the fiducials marks/labels. Are the linear and loop measured markers not saved in the annotations file? Are they transient or can they be saved if I follow a different process for saving them than just saving the scene?
Thank you.

Measurements are saved in the measurement (.mrk.json) files. You can open them in any text editor. If you need to do dozens of measurements then you may write a short Python script that saves everything into a single csv file (we can help with this, if you are not sure where to start).

Also it appears you added back all the files, including the screen captures that are saved automatically with the scene. You only need to reload the .mrml file, and it will pull back all the files that you had loaded. Or when you save you can click the ‘package’ button on the save dialog and save everything in a .mrb file (which is just a zip with all the data from your scene) that you can share or reload.

Mr. Lasso,
I am finding myself taking approximately 40 dimensions per DICOM image set. Now that I have done a few, I think it would be much easier to have a single output file with all of the dimensions in the same order for each DICOM set to ensure I don’t have a bunch of typos in my data. I do not have any experience in coding in Python. Is your suggested script fairly easy to implement? I appreciate any further advice you have. I am taking linear dimensions (length in mm) and closed loop dimensions (length mm & area mm^2).
Thank you.

A similar feature is available now - see Markups - Creating a SINGLE file including Landmarks (fixed) and Curves (semilandmarks) - problem while resampling - #8 by muratmaga. You can ask the SlicerMorph team for assistance with your quantification workflow.