MATLAB Answers

0

Matlab crash graphics driver issue

Asked by Abhishek Bhatia on 29 May 2016
Latest activity Commented on by David Penton on 26 Mar 2017
MATLAB crash file:/home/abhishek/matlab_crash_dump.2151-1:
------------------------------------------------------------------------
Segmentation violation detected at Sun May 29 17:05:08 2016
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Current Visual : 0x6c (class 4, depth 24)
Default Encoding : UTF-8
GNU C Library : 2.23 stable
Host Name : hp
MATLAB Architecture : glnxa64
MATLAB Root : /usr/local/MATLAB/R2016a
MATLAB Version : 9.0.0.341360 (R2016a)
OpenGL : hardware
Operating System : Linux 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64
Processor ID : x86 Family 6 Model 78 Stepping 3, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : The X.Org Foundation (11803000), display :0
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 0000000000000000 RBX = 00007fe32a9cd148
RCX = 00007fe32ac3b000 RDX = 0000000000000006
RSP = 00007fe3c89d7dc0 RBP = 00007fe3c89d7ee0
RSI = 0000000000000000 RDI = 00007fe32a9cc350
R8 = 0000000000000030 R9 = 0000000000000004
R10 = 00007fe32ac3aef8 R11 = 00007fe32a9cc000
R12 = 00007fe348350bb0 R13 = 0000000200000006
R14 = 0000000000000006 R15 = 00007fe32a9cc380
RIP = 00007fe3e2d9056c EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fe3e2d9056c /lib64/ld-linux-x86-64.so.2+00050540
[ 1] 0x00007fe3e2d99681 /lib64/ld-linux-x86-64.so.2+00087681
[ 2] 0x00007fe3e2d94394 /lib64/ld-linux-x86-64.so.2+00066452
[ 3] 0x00007fe3e2d98bd9 /lib64/ld-linux-x86-64.so.2+00084953
[ 4] 0x00007fe3e04e3f09 /lib/x86_64-linux-gnu/libdl.so.2+00003849
[ 5] 0x00007fe3e2d94394 /lib64/ld-linux-x86-64.so.2+00066452
[ 6] 0x00007fe3e04e4571 /lib/x86_64-linux-gnu/libdl.so.2+00005489
[ 7] 0x00007fe3e04e3fa1 /lib/x86_64-linux-gnu/libdl.so.2+00004001 dlopen+00000049
[ 8] 0x00007fe3dcd2f0b6 /usr/local/MATLAB/R2016a/bin/glnxa64/libut.so+00315574
[ 9] 0x00007fe3dcd2fc76 /usr/local/MATLAB/R2016a/bin/glnxa64/libut.so+00318582 _Z11utGetModuleRKSbIDsSt11char_traitsIDsESaIDsEEPi+00000022
[ 10] 0x00007fe3dcd2fd6b /usr/local/MATLAB/R2016a/bin/glnxa64/libut.so+00318827 utGetModule+00000171
[ 11] 0x00007fe3d2d3bd45 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_dispatcher.so+00482629
[ 12] 0x00007fe3d2d2eeaf /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_dispatcher.so+00429743 _ZN13Mlm_MATLAB_fn8try_loadEv+00000031
[ 13] 0x00007fe3d2d25e95 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_dispatcher.so+00392853 _ZN13Mlm_MATLAB_fn4loadEv+00000037
[ 14] 0x00007fe3d2d235e9 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_dispatcher.so+00382441 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArray_tagiS2_+00000057
[ 15] 0x00007fe3cfd681c9 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+09232841
[ 16] 0x00007fe3cfe94dbf /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+10464703
[ 17] 0x00007fe3cfe8aa5a /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+10422874
[ 18] 0x00007fe3cfe53911 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+10197265
[ 19] 0x00007fe3cf921b2a /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04750122
[ 20] 0x00007fe3cf922a4c /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04753996
[ 21] 0x00007fe3cf920ebc /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04746940
[ 22] 0x00007fe3cf91e9ea /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04737514
[ 23] 0x00007fe3cf91edb1 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04738481
[ 24] 0x00007fe3cf920a63 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04745827
[ 25] 0x00007fe3cf920be9 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04746217
[ 26] 0x00007fe3cf9d116f /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+05468527
[ 27] 0x00007fe3cf9d422a /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+05481002
[ 28] 0x00007fe3cfc76543 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+08242499
[ 29] 0x00007fe3cfd58e5c /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+09170524
[ 30] 0x00007fe3d2d7c27e /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_dispatcher.so+00746110 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000862
[ 31] 0x00007fe3d2d7c9a0 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_dispatcher.so+00747936 _ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+00000032
[ 32] 0x00007fe3cfd681c9 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+09232841
[ 33] 0x00007fe3cfe94dbf /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+10464703
[ 34] 0x00007fe3cfe8aa5a /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+10422874
[ 35] 0x00007fe3cfe53911 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+10197265
[ 36] 0x00007fe3cf921b2a /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04750122
[ 37] 0x00007fe3cf922a4c /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04753996
[ 38] 0x00007fe3cf920ebc /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04746940
[ 39] 0x00007fe3cf91e9ea /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04737514
[ 40] 0x00007fe3cf91edb1 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04738481
[ 41] 0x00007fe3cf920a63 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04745827
[ 42] 0x00007fe3cf920be9 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+04746217
[ 43] 0x00007fe3cf9d116f /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+05468527
[ 44] 0x00007fe3cf9d422a /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+05481002
[ 45] 0x00007fe3cfc76543 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+08242499
[ 46] 0x00007fe3cfc3f07e /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+08015998
[ 47] 0x00007fe3cfc43058 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+08032344
[ 48] 0x00007fe3cfc43107 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+08032519
[ 49] 0x00007fe3cfcb92c5 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+08516293
[ 50] 0x00007fe3cfcb9792 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwm_lxe.so+08517522
[ 51] 0x00007fe3d307c769 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00788329
[ 52] 0x00007fe3d309c474 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00918644 _Z32mnRunPathDependentInitializationv+00000036
[ 53] 0x00007fe3d307e5a3 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00796067 _ZN11mcrInstance26init_on_interpreter_threadEP11MfileReaderP13MexFileReader+00000483
[ 54] 0x00007fe3dc107d6c /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmlutil.so+04328812 _ZNK5boost9function0IbEclEv+00000028
[ 55] 0x00007fe3d30878e5 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00833765
[ 56] 0x00007fe3d308dd09 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00859401 _ZN5boost6detail17task_shared_stateINS_3_bi6bind_tIbPFbRKNS_8functionIFbvEEEENS2_5list1INS2_5valueIS6_EEEEEEbE6do_runEv+00000025
[ 57] 0x00007fe3d308e43b /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00861243 _ZN5boost6detail22task_base_shared_stateIbE3runEv+00000059
[ 58] 0x00007fe3d308e497 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00861335
[ 59] 0x00007fe3d306575a /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00694106
[ 60] 0x00007fe3d33d8c06 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwiqm.so+00969734
[ 61] 0x00007fe3d33c6b4c /usr/local/MATLAB/R2016a/bin/glnxa64/libmwiqm.so+00895820 _ZN5boost6detail8function21function_obj_invoker0ISt8functionIFNS_3anyEvEES4_E6invokeERNS1_15function_bufferE+00000028
[ 62] 0x00007fe3d33c721f /usr/local/MATLAB/R2016a/bin/glnxa64/libmwiqm.so+00897567 _ZNK5boost9function0INS_3anyEEclEv+00000031
[ 63] 0x00007fe3d33c6993 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwiqm.so+00895379 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000163
[ 64] 0x00007fe3d307a71d /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00780061
[ 65] 0x00007fe3d33a8f98 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwiqm.so+00774040
[ 66] 0x00007fe3d33935af /usr/local/MATLAB/R2016a/bin/glnxa64/libmwiqm.so+00685487
[ 67] 0x00007fe3d33907e3 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwiqm.so+00673763
[ 68] 0x00007fe3e20e3a3a /usr/local/MATLAB/R2016a/bin/glnxa64/libmwservices.so+03443258
[ 69] 0x00007fe3e20e28a7 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwservices.so+03438759
[ 70] 0x00007fe3e20e310c /usr/local/MATLAB/R2016a/bin/glnxa64/libmwservices.so+03440908 _Z25svWS_ProcessPendingEventsiib+00000092
[ 71] 0x00007fe3d3065ed2 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00696018
[ 72] 0x00007fe3d3066211 /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00696849
[ 73] 0x00007fe3d3052cfd /usr/local/MATLAB/R2016a/bin/glnxa64/libmwmcr.so+00617725
[ 74] 0x00007fe3e0cb96fa /lib/x86_64-linux-gnu/libpthread.so.0+00030458
[ 75] 0x00007fe3e09efb5d /lib/x86_64-linux-gnu/libc.so.6+01076061 clone+00000109
[ 76] 0x0000000000000000 <unknown-module>+00000000
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.
I get the above error while starting Matlab 2016a. This issue reported here too https://devtalk.nvidia.com/default/topic/926199/linux/361-28-crashes-matlab-r2016a/.
Running `matlab -softwareopengl`, also gives the same error.
I am using nvidia-367 driver.

  1 Comments

I am a bit puzzled at how little info is available on this problem. I have indeed googled, and searched the mathworks site. The most info I can find is "downgrade your nvidia driver". Ok, I did. But what exactly is the problem, and why has it persisted for so long? I would have thought that linux+matlab+nvidia would be a fairly common setup for scientific work. There is never any use getting mad about stuff like this, but...am I looking in the wrong place for answers? I now have to boot up a different version of linux to do my CUDA work.

Sign in to comment.

2 Answers

Answer by Lowell Day on 15 Aug 2016

Try downgrading the NVIDIA graphics driver to version 352.79.
You can download driver version 352.79 here: http://www.nvidia.com/download/driverResults.aspx/97645/en-us
If that does not resolve the issue, the other workaround is to start MATLAB with the flag -softwareopengl. This will force MATLAB to use software OpenGL rendering. MATLAB will utilize software rather than hardware for graphics rendering, which may degrade performance.

  0 Comments

Sign in to comment.


Answer by Matt
on 17 Aug 2016

It looks like matlab 2016a will not work with nvidia graphics cards and the newer drivers on linux, in contrast to the 2015 versions. Nvidia has not fixed anything in their recent driver updates (tried version 370).
Does Matlab have any plans to work around this issue? After all 2015 works why can't they modify the code to get 2016 to work, especially if Nvidia is uncooperative.
Some of use require the newer drivers to support the latest CUDA toolkits. I also wonder about building a new workstation. I require linux and cuda but perhaps matlab won't run on that platform? That's unfortunate given the investment.
Any recommended hardware/software configurations that allow me to run nvidia hardware on linux, with the latest CUDA drivers AND Matlab 2016? I'd love to hear the solution to that.

  0 Comments

Sign in to comment.