Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown exception during DWI writing! #14

Open
GiggioIlGriggio opened this issue Nov 20, 2024 · 8 comments
Open

Unknown exception during DWI writing! #14

GiggioIlGriggio opened this issue Nov 20, 2024 · 8 comments

Comments

@GiggioIlGriggio
Copy link

Trying to perform any simulation with fiberfox ends up with the following error. Is happening both with linux and windows. I leave here the log text.

Logfile: /home/compa/Documents/Apps/MITK-Diffusion-2018.09.99-linux-x86_64/Savings///fiberfoxb1000_StickBall_RELAX.log
0:0:0 > Starting Fiberfox dMRI simulation
Output image spacing: [2,2,2]
Output image size: [20,20,3]
Working image spacing: [2,2,2]
Working image size: [20,20,3]
No tissue mask set

Setting fiber radius to infµm to obtain full voxel.

0:0:0 > Generating 2-compartment diffusion-weighted signal.
b-values: 0 1000 
Volumes: 33


0%   10   20   30   40   50   60   70   80   90   100%
|----|----|----|----|----|----|----|----|----|----|
***************************************************


0:0:0 > Simulating k-space acquisition using 1 coil(s)
Acquisition type: single shot EPI
Simulating signal relaxation
Parallel volumes: 6
Threads per slice: 5
0%   10   20   30   40   50   60   70   80   90   100%
|----|----|----|----|----|----|----|----|----|----|
****************************************************

0:0:1 > Finalizing image
0%   10   20   30   40   50   60   70   80   90   100%
|----|----|----|----|----|----|----|----|----|----|
***************************************************

0:0:1 > Finished simulation

Unknown exception during DWI writing!
@peterneher
Copy link
Member

Hi, could you send me the complete command you used? "Unknown exception during DWI writing!" sounds like there is something wrong with the path. But I will take a look!

If possible, could you also send me the test data you used?

@GiggioIlGriggio
Copy link
Author

GiggioIlGriggio commented Nov 21, 2024

Hi, thanks for the reply!
So in order to reproduce the error this is what I did:
1 Generate 50 random bundle with "Fiber_generator" with all standard parameters.
2. In Fiberfox tab set as fiber_bundle one of the generated bundles, and as "save_path" an empty folder. "template_image" and "tissue_mask" are left empty.

Finnaly running the simulation with all standarrd parameters in the fiberfox tab gives that error.

P.S. I have also tried to run the simulation by downloading the "FilesForSimulation" of the ISMRM Tractography Challenge and using ther fiber_bundle, template image, tissue mask and simultion parameters. The simulation takes longer times but in the end it gives the same error.

If you need the actual data I can provide it to you, but the error occurs also without any specific data as I showed in the first example

@peterneher
Copy link
Member

This error seems to occur if you set a file name and not only a path. Did you try to just set "Save path:" to e.g. "/home/neher/Downloads/" without an actual file name?

@peterneher
Copy link
Member

Keep in mind that you need to provide a template image if you want an output image that actually fits your fibers in terms of size. You can e.g. use a TDI of the fibers or something similar.

@GiggioIlGriggio
Copy link
Author

This error seems to occur if you set a file name and not only a path. Did you try to just set "Save path:" to e.g. "/home/neher/Downloads/" without an actual file name?

I have tried just with a folder path. Also because the tool is supposed to save multiple files other then the log file, so I don't know which specific path to provide at this point.

Keep in mind that you need to provide a template image if you want an output image that actually fits your fibers in terms of size. You can e.g. use a TDI of the fibers or something similar.

Regarding this I have tried to use also a template from the ISMRM Tractography Challenge. In fact, as I mention in the first message, i have tried to replicate the data generation since the challenge provide all the necessary data on their official webite (Fiber bundle, template image, tissue mask, params etc...)

@GiggioIlGriggio
Copy link
Author

UPDATE: if i leave the save_path empty it finish the execution, and then i can save it manually. In the save_path box the only option is to choose a directory, not a file.

@peterneher
Copy link
Member

Great that there is a workaround! Nevertheless, I will try to look into this.

Which version are you using exactly? And which operating system?

@peterneher
Copy link
Member

I uploaded a new version(Ubuntu) to https://www.mitk.org/download/diffusion/nightly/

I checked, and the automatic save should work there. Could you verify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants