PerkLab / SlicerFreeSurfer

This repository contains the SlicerFreeSurferImporter extension for 3D Slicer. The extension implements a module for importing models, scalar overlays, and segmentations from FreeSurfer, as well as handling the transformation of models from FreeSurfer to Slicer coordinates.
BSD 3-Clause "New" or "Revised" License
13 stars 4 forks source link

Crash importing freesurfer segmentation under ubuntu #18

Open mauriliogenovese opened 11 months ago

mauriliogenovese commented 11 months ago

When I try to load a freesurfer segmentation (a standard aparc+aseg.mgz) on Ubuntu (either using the importer interface, the load volume interface or a slicerpython command) I will get this error:

“Slicer has caught an application error, please save your work and restart.\n\nThe application has run out of memory. Increasing swap size in system settings or adding more RAM may fix this issue.\n\nIf you have a repeatable sequence of steps that causes this message, please report the issue following instructions available at https://slicer.org\n\n\nThe message detail is:\n\nException thrown in event: std::bad_alloc”

I’m using last version of Slicer and FreeSurferImporter on Ubuntu 23.04. I have 8gb RAM memory and I can load without error this segmentation in the same machine windows partition. Moreover a collegue had the same error on a linux high performance machine. I also tried with standard freesurfer course data (ftp://surfer.nmr.mgh.harvard.edu/pub/data/tutorial_data/buckner_data/tutorial_subjs/good_output/mri/brain.mgz and ftp://surfer.nmr.mgh.harvard.edu/pub/data/tutorial_data/buckner_data/tutorial_subjs/good_output/mri/aparc+aseg.mgz), and I’m still getting the same error on linux.

https://discourse.slicer.org/t/error-loading-freesurfer-segmentation/32674/2

lassoan commented 11 months ago

Please try with the very latest Slicer Preview Release (that you downloaded not more than a few days ago) and let us know if there are still issues.

mauriliogenovese commented 10 months ago

The problem is still present with the Slicer Preview Release that I've just downloaded today (5.5.0-2023-11-20 r32349 / e7283f4)

jorgenriseth commented 7 months ago

I have the same issue with Slicer-5.7.0-2024-03-15-linux-amd64