help
help > RE: Matlab crash second-level results
Jun 5, 2015 04:06 PM | Alfonso Nieto-Castanon - Boston University
RE: Matlab crash second-level results
Hi Brad,
The behavior looks very much like a known issue with some linux opengl drivers and Matlab. Short of trying installing a different driver the solution of using 'opengl software' should fix this in all cases. The only trick is that the opengl software command needs to be run as soon as you start your Matlab session (not simply before running CONN). To be precise, if any plotting operation has already occurred then 'opengl software' will not be able to switch your opengl renderer. To see what opengl renderer you are currently using type 'opengl info' (without the quotes). Also, in relatively new Matlab versions you may use opengl save software to set your preferences for future Matlab sessions so you do not need to remember to do that every time you start Matlab.
If the error persists after correctly switching to opengl software at the beginning of your Matlab session then perhaps it is worth considering other possible options:
a) if the connection to the Xserver is broken Matlab produces similarly-behaving crashes, so perhaps upgrading your Xserver and/or upgrading your openGL driver to their latest versions might resolve this issue
b) running out of java memory can also potentially produce similarly-behaving crashes, so perhaps increasing your java heap memory (see this post for details http://www.mathworks.com/matlabcentral/a...) will help
Let me know if any of these seems to help
Alfonso
Originally posted by Bradley Taber-Thomas:
The behavior looks very much like a known issue with some linux opengl drivers and Matlab. Short of trying installing a different driver the solution of using 'opengl software' should fix this in all cases. The only trick is that the opengl software command needs to be run as soon as you start your Matlab session (not simply before running CONN). To be precise, if any plotting operation has already occurred then 'opengl software' will not be able to switch your opengl renderer. To see what opengl renderer you are currently using type 'opengl info' (without the quotes). Also, in relatively new Matlab versions you may use opengl save software to set your preferences for future Matlab sessions so you do not need to remember to do that every time you start Matlab.
If the error persists after correctly switching to opengl software at the beginning of your Matlab session then perhaps it is worth considering other possible options:
a) if the connection to the Xserver is broken Matlab produces similarly-behaving crashes, so perhaps upgrading your Xserver and/or upgrading your openGL driver to their latest versions might resolve this issue
b) running out of java memory can also potentially produce similarly-behaving crashes, so perhaps increasing your java heap memory (see this post for details http://www.mathworks.com/matlabcentral/a...) will help
Let me know if any of these seems to help
Alfonso
Originally posted by Bradley Taber-Thomas:
Hi Alfonso,
I updated to v15c from v14n to make use of the session specific structurals option for a pre-post intervention analysis. I have a batch script that runs setup through first level which seems to be working fine, but I am having problems with Matlab crashing when I look at the second-level results. I am running Matlab 2012a (also tried 2013a) in Linux on a high performance computing cluster on campus. The second level tab loads fine, but when I try to change anything Matlab crashes (full matlab system error, not a conn error). I was able to limit this by running the 'opengl software' command before opening CONN, after which I can change sources, conditions, contrasts, etc. with only a rare crash. But Matlab still crashes reliably when I click the ROI results explorer button ("ROIresults" crash report attached, the other crash reports look the same).
Do you have any thoughts on what might be going on here?
Many thanks,
Brad
I updated to v15c from v14n to make use of the session specific structurals option for a pre-post intervention analysis. I have a batch script that runs setup through first level which seems to be working fine, but I am having problems with Matlab crashing when I look at the second-level results. I am running Matlab 2012a (also tried 2013a) in Linux on a high performance computing cluster on campus. The second level tab loads fine, but when I try to change anything Matlab crashes (full matlab system error, not a conn error). I was able to limit this by running the 'opengl software' command before opening CONN, after which I can change sources, conditions, contrasts, etc. with only a rare crash. But Matlab still crashes reliably when I click the ROI results explorer button ("ROIresults" crash report attached, the other crash reports look the same).
Do you have any thoughts on what might be going on here?
Many thanks,
Brad
Threaded View
Title | Author | Date |
---|---|---|
Bradley Taber-Thomas | Jun 5, 2015 | |
Alfonso Nieto-Castanon | Jun 5, 2015 | |