Error when loading region

58 views
Skip to first unread message

Yuliya Patsyuk

unread,
Sep 18, 2023, 5:48:59 AM9/18/23
to DSI Studio
Dear Frank,

I am experiencing an issue where, when trying to load a mask (individual, DWI space), I get the unspecified error you can see in the screenshot attached. I am running DSI studio Jul 7 23 on a Mac with M2 and Ventura 13.4.1. This issue does not manifest on Windows.

Screenshot 2023-09-18 at 11.29.01.png

Do you have an idea of what might be going on?

Best,
Yuliya

Frank Yeh

unread,
Sep 18, 2023, 9:53:59 AM9/18/23
to yuliyap...@gmail.com, DSI Studio
Hi Yuliya,

    This may happen when the file is stored in a directory containing
non-ASCII characters.

    You may also click on the [console] button in DSI Studio's main
Window and repeat the step. The output may give a hint.

Best regards,
Frank

--
You received this message because you are subscribed to the Google Groups "DSI Studio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dsi-studio+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dsi-studio/fe84bb56-970f-4d08-9e2d-1923dcf7258cn%40googlegroups.com.

Yuliya Patsyuk

unread,
Sep 19, 2023, 4:40:35 AM9/19/23
to DSI Studio
Hi Frank,

The directory does not contain non-ASCII characters. I moved the masks to another one just for good measure and the same issue arises. I can see this in the console, which looks like everything is processed correctly (displayed below, yellow part corresponds to region loading), but I get exactly the same indefinite error in the GUI.

Screenshot 2023-09-19 at 10.33.15.png

Best,
Yuliya

Frank Yeh

unread,
Sep 19, 2023, 9:41:33 AM9/19/23
to yuliyap...@gmail.com, DSI Studio
Hi Yuliya,

    Thank you for posting the console output. This helped me a lot, and I could trace the code to the location where the bug may happen.

    It is likely that DSI Studio detected an exceedingly large value in the NIFTI file and thus could not know whether it is a correct mask or not. What is the value used in the mask file?

    I am also fixing DSI Studio so that it will show this error message.

Best,
Frank

Yuliya Patsyuk

unread,
Sep 20, 2023, 6:39:06 AM9/20/23
to DSI Studio
Hi Frank,

Thank you for your prompt response. The mask in question is a binary mask with a few 1s for the voxels belonging to the mask and 0s elsewhere.

Best,
Yuliya

Frank Yeh

unread,
Sep 20, 2023, 10:55:03 AM9/20/23
to yuliyap...@gmail.com, DSI Studio
I updated DSI Studio to provide more output.
Could you please update DSI Studio and repeat the same to see what the console output is?
Best,
Frank

Yuliya Patsyuk

unread,
Oct 3, 2023, 6:23:50 AM10/3/23
to DSI Studio
Hi Frank,

The mask loads properly now. Thank you so much for your help!

Just fyi, this is the output of the console with the (now) successful loading process (I only simplified the file names of the masks):

DSI Studio version: Chen"" Oct 2 2023

| DSI Studio version: Chen""

|_9 ms

open FIB file sub-xxx_eddy_corrected_data.src.gz.odf.gqi.2.fib.gz

|_0 ms

open FIB file sub-xxx_eddy_corrected_data.src.gz.odf.gqi.2.fib.gz

| using index file for accelerated loading: /Volumes/Elements/PhD/Data before MATLAB/Tractography/DSI_studio_data/sub-xxx/eddy/sub-xxx_eddy_corrected_data.src.gz.odf.gqi.2.fib.gz.idx

| loading fiber and image data

|-loading image volumes

| |_19 ms

| initiating data

| FIB file loaded

|_16.008 s

initializing tracking GUI

| initiate image/slices

| create GUI objects

|-initializing OpenGL

| | openGL information

| | version: 2.1 Metal - 83.1

| | vendor: Apple

| | renderer: Apple M2

| |_0 ms

| recall previous settings

| initialize slices

| prepare template and atlases

| connect signal and slots

| begin visualization

| GUI initialization complete

|_417 ms

loading mapping fields from /Volumes/Elements/PhD/Data before MATLAB/Tractography/DSI_studio_data/sub-xxx/eddy/sub-xxx_eddy_corrected_data.src.gz.odf.gqi.2.fib.gz.icbm152_adult.map.gz

reading region files

|-[thread]opening file Mask1.nii

|-opening file Mask3

| |-[thread]opening file Mask2.nii

| |-[thread]opening file Mask4

| | Mask3 loaded as single ROI file

| | [thread]Mask4 loaded as single ROI file

| |_22 ms

| [thread]Mask1 loaded as single ROI file

| [thread]Mask2 loaded as single ROI file

|_42 ms

loading ROIs

|_1 ms


Again, many thanks for your work.


Best,

Yuliya


Reply all
Reply to author
Forward
0 new messages