Open butellyn opened 2 years ago
Is the segfault in Python or fslroi?
In Python
Just to verify, you then are back in your Bash (or other) shell, not the Python prompt, correct? It's hard to tell from the screenshot whether Python or fslroi is segfaulting.
Yes, Python exits at this point into the shell.
Hmm. I can't see anything ExtractROI
is doing that other interfaces don't. Could you try enabling the faulthandler in your script and seeing what you get?
Getting more detailed error output now
Thanks, that's very helpful. So the erroring line is:
Unsure why this might happen; can't quickly find a recent BusError report related to select
. If you have the patience, you could try reporting to Python itself and see if they can track it down.
Fortunately, this line is only called if the terminal output is "stream"
, so you may be able to work around the problem by setting terminal_output="none"
when you initialize ExtractROI()
.
Summary
I am post-processing fMRI data that has already been run through fMRIPrep. I am trying to use
fsl.ExtractROI()
, but every time I run it, a segmentation fault occurs, and my stack is unlimited (i.e.,ulimit -s
returns "unlimited"). Do you know what might be causing this error?Actual behavior
Segmentation fault occurs when using
fsl.ExtractROI()
.Expected behavior
I want to move the first X volumes from an fMRI time series.
Script/Workflow details
https://github.com/NU-ACNLab/mwmh/blob/main/scripts/process/postprocess.py
Platform details:
Execution environment