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

SPM Standalone Error - "Warning: dialog is no longer supported when MATLAB is started with the -nodisplay" #26

Open
ruben-stanford opened this issue Mar 11, 2024 · 1 comment

Comments

@ruben-stanford
Copy link

ruben-stanford commented Mar 11, 2024

Hello SPM experts,

I am having difficulties running a Matlab script with the SPM standalone in a Ubuntu Docker container. Although I have set "SPM_HTML_BROWSER=0" (as suggested by the docs), I still have an error related to the UI not being supported by Matlab in a docker container.

Error which stops fMRI model specification:
Screenshot 2024-03-11 at 1 44 14 PM

After this warning occurs, the script hangs.

I am calling SPM standalone as the following:

./run_spm12.sh $MCR_PATH script myscript.m <script args>

Does anyone have help for this? It seems like there should be an environment variable or config to prevent this UI component from being shown.

Environment information:

SPM Standalone:
https://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/spm12/spm12_r7771_Linux_R2022b.zip

MCR: Matlab 2022b

Ubuntu:latest

@ruben-stanford
Copy link
Author

ruben-stanford commented Mar 11, 2024

Hello,

I figured out the issue — this was a re-run, which mean there was existing SPM.mat files. SPM should handle this case for commandline usage of spm_jobman.

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

1 participant