Summary of what happened:
Hello all,
I am running fmriprep to preprocess an openneuro dataset. For most participants the pipeline works successfully. However, for 5 participants i get the following error message and it is not quite clear to me how to proceed. Has anyone encounter something similar before?
Thank you very much in advance
Command used (and if a helper script was used, a link to the helper script or the command generated):
cmd="srun singularity run \
	--cleanenv \
	--bind ${DATA_DIRECTORY}:/data --bind ${LOCAL_FREESURFER_DIR}:/fsdir \
	${FMRIPREP_SINGULARITY_IMG} \
	/data/bids /data/bids/derivatives/fmriprep participant \
	--participant-label ${subject} \
	--work-dir /data/codes \
	--stop-on-first-crash \
	--write-graph \
	--fs-license-file /fsdir/license.txt --fs-subjects-dir /fsdir \
	--skip-bids-validation \
	--verbose"
Version:
fmriprep_23.2.1
Environment (Docker, Singularity / Apptainer, custom installation):
Singularity
Data formatted according to a validatable standard? Please provide the output of the validator:
Relevant log outputs (up to 20 lines):
Errors
Node Name: fmriprep_23_2_wf.sub_S30_wf.bold_ses_2_task_BigBuckBunny_wf.bold_fit_wf.func_fit_reports_wf.epi_t1_report
File: /data/bids/derivatives/fmriprep/sub-S30/log/20240524-073803_95948696-19dc-409e-b5d2-2a6eedd5b4a4/crash-20240524-110242-anastasios.dadiotis-epi_t1_report-7245b5a6-0a13-4ac9-8e80-56a49787af38.txt
Working Directory: /data/codes/fmriprep_23_2_wf/sub_S30_wf/bold_ses_2_task_BigBuckBunny_wf/bold_fit_wf/func_fit_reports_wf/epi_t1_report
Inputs:
after:
after_label: EPI
before:
before_label: T1w
compress_report: auto
dismiss_affine: True
fixed_params: {}
moving_params: {}
out_report: report.svg
wm_seg:
Traceback (most recent call last):
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
    result["result"] = node.run(updatehash=updatehash)
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 771, in _run_command
    raise NodeExecutionError(msg)
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node epi_t1_report.
Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/numpy/ma/core.py", line 6806, in min
	    return obj.min(axis=axis, fill_value=fill_value, out=out, **kwargs)
	AttributeError: 'list' object has no attribute 'min'
	During handling of the above exception, another exception occurred:
	Traceback (most recent call last):
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 398, in run
	    runtime = self._post_run_hook(runtime)
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nireports/interfaces/reporting/base.py", line 239, in _post_run_hook
	    return super()._post_run_hook(runtime)
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/interfaces/mixins/reporting.py", line 50, in _post_run_hook
	    self._generate_report()
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nireports/interfaces/reporting/base.py", line 105, in _generate_report
	    plot_registration(
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nireports/reportlets/mosaic.py", line 169, in plot_registration
	    display.add_contours(contour, colors="r", levels=[0.5], linewidths=0.5)
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nilearn/plotting/displays/_slicers.py", line 367, in add_contours
	    self._map_show(img, type="contour", threshold=threshold, **kwargs)
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nilearn/plotting/displays/_slicers.py", line 453, in _map_show
	    kwargs["vmin"] = np.ma.min(
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/numpy/ma/core.py", line 6810, in min
	    return asanyarray(obj).min(axis=axis, fill_value=fill_value,
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/numpy/ma/core.py", line 5833, in min
	    result = self.filled(fill_value).min(
	  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/numpy/core/_methods.py", line 45, in _amin
	    return umr_minimum(a, axis, None, out, keepdims, initial, where)
	ValueError: zero-size array to reduction operation minimum which has no identity
Screenshots / relevant information:
I tried increasing memory and it did not solve the issue.