MATLAB: Does MATLAB crash on Linux with the error “MATLAB has encountered an internal problem and needs to close”

crashdriverlibgllinuxMATLABnvidia

Why does MATLAB crash on Linux with the error "MATLAB has encountered an internal problem and needs to close"?
Why am I seeing this on R2016a but not in any other release?
Why does the crash log that the error message refers to have an issue with NVIDIA drivers?
 

Best Answer

If your crash log contains a line resembling the following stack trace:
Stack Trace (from fault):
[  0] 0x000000369d25420d                              /usr/lib64/libGL.so.1+00344589
Then the issue is likely due to an issue with NVIDIA graphics driver version 361.28.
For instructions on accessing MATLAB crash logs, please refer to the article linked below:
This issue has been resolved with the updated NVIDIA graphics driver version 367.27.
You can download this updated NVIDIA graphics driver at the link below:
http://www.nvidia.com/download/driverResults.aspx/104284/en-us
There are two other known workarounds if you are unable to update to NVIDIA graphics driver version 367.27:
1. Downgrade the NVIDIA graphics driver to version 352.79.
2. Start MATLAB with the flag -softwareopengl. This should allow MATLAB to start by forcing the use of software OpenGL rendering. However, this will cause any graphics rendering in MATLAB to utilize software rather than hardware, which may degrade performance.