MATLAB Answers

Why does MATLAB crash when plotting with Linux drivers?

40 views (last 30 days)
I was trying to create a plot when suddenly MATLAB crashed? I am using a Linux machine.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Feb 2018
This is caused by a bug in the graphics card drivers related to OpenGL. To work around this issue utilize the version of OpenGL that ships with MATLAB.
To do so, use the "-softwareopengl" startup flag to start MATLAB. For more information regarding startup flags, please refer to the following page:
If switching to software OpenGL does not help to prevent additional crashes, please contact Technical Support:
Feng He
Feng He on 17 Jul 2020
It is weird. I don't know if the below phenomena is related to this.
I am using linux. Sometimes, I inputs some commands, and MATLAB gives me some hint about the function by popping up the signature of the function. After popping up, the hint never disappers; and MATLAB doesn't crash immediatly. The crash only happens after I exit matlab by typing exit.
The Stack Trace shows something is wrong with:

Sign in to comment.

More Answers (1)

Joaquín Sánchez
Joaquín Sánchez on 13 Feb 2020
Thanks, solve my problem !
The solution is, leaunch matlab with:
./matlab -softwareopengl
Thanks ! !
  1 Comment
Victor Carreira
Victor Carreira on 22 Sep 2021 at 23:22
Unfortunately it didn't work for me.
script runs and do not show graphs.

Sign in to comment.


No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!