Ubuntu: MATLAB R2015a segmentation fault with selecting SOFTWARE OPENGL rendering



Question:

My OS release is 14.04

When I launch MATLAB with GUI, I got the response with

MATLAB is selecting SOFTWARE OPENGL rendering.   Segmentation fault (core dumped)  

There is nothing in the log of matlab_crash_dump.1582-1

But with matlab -nodisplay, it worked.

enter image description here

enter image description here


Solution:1

I had the same problem: here is how I fixed it. I had switch from the open source nouveau driver that come preloaded on ubuntu to the proprietary nVidia version 361.42. I then got the error you did. It turns out that matlab is not compatible with the newest version of the nVidia driver yet. So I downgraded the driver to the proprietary version of the driver 340.96. The driver packages are in the additional drivers tab of Software & Updates.

I then reinstalled matlab and installed the matlab-support package(code below).

sudo apt-get install matlab-support  

Good luck!


Solution:2

After trial and error, I find this problem is caused by two files:

libstdc++.so.6  libstdc++.so.6.0.22  

Find them by searching in you /usr/lib folder, copy and paste them in the folder with overwrite: .../MATLAB/sys/os/glnxa64, then restart matlab and it will work.

I think my system is compiled by a more advanced compiler than that of matlab, thus this problem happening. Hope it helps.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »