[Bug]: NeuroDeskApp Apple M1 spm12 gui crashes on opening #382
Replies: 4 comments 1 reply
-
Dear @scott-love, I can reproduce this on my end. It looks like a limitation of the x86 emulation on ARM hardware in combination with Matlab: I currently have no solution idea for this - if anyone has any idea what this could be, let me know. |
Beta Was this translation helpful? Give feedback.
-
Dear @scott-love, Thanks to a few very helpful people at Mathworks, we found out what the problem is and how to fix it: The emulation frameworks do not provide a correct processor frequency in /proc/cpuinfo and that causes the problem reported. The quick hack around for now is: create a file called cpuinfo in your Neurodesk homedirectory with the following content:
Then add this to the end of your ~/.bashrc file:
We are working on a more permanent fix now that doesn't require hardcoding this. Can you please let us know if this fix works for you for now? |
Beta Was this translation helpful? Give feedback.
-
Hi @stebo85, Thanks for working on this! I implemented the quick fix and it enabled me to open the SPM GUI, which is great. I haven't tested any further. Being new to Neurodesk it took me a second to figure out exactly how to implement it. So I am adding here exactly what I did. I first opened Neurodesk (v1.2.1) and selected the terminal option/interface.
Press CTRL+d to close and save this new cpuinfo file.
Press CTRL+d to close and save the updated .bashrc file. I was then able to open a Neurodesktop instance and select Neurodesk/Functional Imaging/spm12/spm12CUI r7771, which successfully opened the SPM GUI. Something that positively surprised me here is that this fix is persistent. I didn't not need to redo the fix after closing and reopening my local session. |
Beta Was this translation helpful? Give feedback.
-
Dear @scott-love, Closing this discussion now :) Neurodesk-app version 1.3.0 and neurodesktop version 2023-11-28 fix this problem now. Thank you for reporting it! |
Beta Was this translation helpful? Give feedback.
-
Version
No response
What platform are you seeing the problem on?
Local PC
What happened
Hi all,
When using Sonoma 14.1.1 ; Apple M1 Max; NeurodeskApp 1.2.1 the SPM12 GUI fails to open or crashes on opening. I do not have this problem with an Intel based Mac.
The screenshot attached shows the last terminal output before the terminal crashes.
How to reproduce
No response
Relevant log output or screenshot
No response
Beta Was this translation helpful? Give feedback.
All reactions