Matlab crashes when I plot figures
20 views (last 30 days)
Show older comments
Hello everyone,
My Matlab crashes whenever I plot figures.
I am working on Matlab R2013a in Ubuntu 20.04 in Vitural Box. Host is a Mac Catelina.
Start up with matlab -softwareopengl didn't help. Crash log attached below. Any advice?
Configuration:
Crash Decoding : Disabled
Current Visual : 0x21 (class 4, depth 24)
Default Encoding : UTF-8
GNU C Library : 2.31 stable
MATLAB Architecture: glnxa64
MATLAB Root : /usr/local/MATLAB/R2013a
MATLAB Version : 8.1.0.604 (R2013a)
Operating System : Linux 5.13.0-35-generic #40~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64
Processor ID : x86 Family 6 Model 142 Stepping 10, GenuineIntel
Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : The X.Org Foundation (12013000), display :0
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 0000000000000000 RBX = 00007f3e02463f10
RCX = 0000000000000000 RDX = 0000000000000000
RSP = 00007f3e93ff8958 RBP = 00007f3e8c0a6610
RSI = 000000003e07c725 RDI = 0000000000000000
R8 = 0000000000000006 R9 = 00312d3634363031
R10 = 00007f3e93ff87e0 R11 = 0000000000000000
R12 = 0000000000000000 R13 = 000000000000000a
R14 = 0000000000000000 R15 = 0000000000000000
RIP = 00007f3ea811e5f5 EFL = 0000000000010283
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f3ea811e5f5 /lib/x86_64-linux-gnu/libc.so.6+01607157
[ 1] 0x00007f3e9b3dec18 /lib/x86_64-linux-gnu/libX11.so.6+00134168 XLoadQueryFont+00000056
[ 2] 0x00007f3e9e5ee0c7 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwuix.so+00368839
[ 3] 0x00007f3e9e5eedb1 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwuix.so+00372145 _Z22UIX_AllocateSystemFontP6mxFont+00000289
[ 4] 0x00007f3e9e5eee79 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwuix.so+00372345
[ 5] 0x00007f3e9ff88aec /usr/local/MATLAB/R2013a/bin/glnxa64/libmwgui.so+00649964 _Z21wm_SetUnadjWindowFontP10WinRec_tagP6mxFont+00000092
[ 6] 0x00007f3e9ff88c7b /usr/local/MATLAB/R2013a/bin/glnxa64/libmwgui.so+00650363 _Z22wm_GetDeviceFontExtentP10WinRec_tagP6mxFontPKcdP6mwrect+00000219
[ 7] 0x00007f3e9ffa82c4 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwgui.so+00778948 uiGetDeviceFont+00000836
[ 8] 0x00007f3e9ffa8421 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwgui.so+00779297 _Z15uiSetWindowFontP10WinRec_tagP6mxFont+00000017
[ 9] 0x00007f3e9ff88d6c /usr/local/MATLAB/R2013a/bin/glnxa64/libmwgui.so+00650604 _Z16wm_SetWindowFontP10WinRec_tagP6mxFont+00000092
[ 10] 0x00007f3e9f6ea5a9 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwhg.so+05805481
[ 11] 0x00007f3e9ffc3b35 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwgui.so+00891701 _ZN11gui_objects10tickpicker12nicefyLimitsERNS0_14AxisDescriptorENS0_8AxisTypeE+00000165
[ 12] 0x00007f3e9ffc3fc3 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwgui.so+00892867 _ZN11gui_objects10tickpicker12nicefyLimitsERNS0_14AxisDescriptorE+00000019
[ 13] 0x00007f3e9f6ea9d2 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwhg.so+05806546
[ 14] 0x00007f3e9f639f3c /usr/local/MATLAB/R2013a/bin/glnxa64/libmwhg.so+05082940
[ 15] 0x00007f3e9f7281dd /usr/local/MATLAB/R2013a/bin/glnxa64/libmwhg.so+06058461 GO_TransformObject+00000013
[ 16] 0x00007f3ea02c1877 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwudd.so+00510071 udiToEachSiblingObjectBackward+00000087
[ 17] 0x00007f3e9f6eed1b /usr/local/MATLAB/R2013a/bin/glnxa64/libmwhg.so+05823771
[ 18] 0x00007f3e9f65a0b6 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwhg.so+05214390
[ 19] 0x00007f3e9f7604d0 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwhg.so+06288592
[ 20] 0x00007f3e9f65d78a /usr/local/MATLAB/R2013a/bin/glnxa64/libmwhg.so+05228426
[ 21] 0x00007f3e9ff921dc /usr/local/MATLAB/R2013a/bin/glnxa64/libmwgui.so+00688604 _Z25wm_ExposeFcn_Pre_OptionalP10WinRec_tagb+00000108
[ 22] 0x00007f3e9c82ef83 /usr/local/MATLAB/R2013a/bin/glnxa64/libuij.so+00233347
[ 23] 0x00007f3e9c832916 /usr/local/MATLAB/R2013a/bin/glnxa64/libuij.so+00248086 _Z13UIJ_ExposeFcnP10WinRec_tagP6mwrectb+00000646
[ 24] 0x00007f3e9c811eb0 /usr/local/MATLAB/R2013a/bin/glnxa64/libuij.so+00114352
[ 25] 0x00007f3e9c82d99f /usr/local/MATLAB/R2013a/bin/glnxa64/libuij.so+00227743
[ 26] 0x00007f3ea02f6e0d /usr/local/MATLAB/R2013a/bin/glnxa64/libmwudd.so+00728589
[ 27] 0x00007f3e9ebd3ea2 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwudd_mi.so+00237218
[ 28] 0x00007f3e9e6095c6 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwuix.so+00480710
[ 29] 0x00007f3e9e61df58 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwuix.so+00565080
[ 30] 0x00007f3e9e61e9c1 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwuix.so+00567745
[ 31] 0x00007f3ea10f303b /usr/local/MATLAB/R2013a/bin/glnxa64/libmwbridge.so+00114747
[ 32] 0x00007f3ea10f3596 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwbridge.so+00116118 _Z10ioReadLinebP8_IO_FILERKN5boost8optionalIKP15inWorkSpace_tagEEb+00000838
[ 33] 0x00007f3ea10f3a84 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwbridge.so+00117380
[ 34] 0x00007f3ea10f949d /usr/local/MATLAB/R2013a/bin/glnxa64/libmwbridge.so+00140445
[ 35] 0x00007f3ea10f959e /usr/local/MATLAB/R2013a/bin/glnxa64/libmwbridge.so+00140702
[ 36] 0x00007f3ea10f9c7f /usr/local/MATLAB/R2013a/bin/glnxa64/libmwbridge.so+00142463 _Z8mnParserv+00000623
[ 37] 0x00007f3ea9c8e3d2 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcr.so+00447442 _ZN11mcrInstance30mnParser_on_interpreter_threadEv+00000034
[ 38] 0x00007f3ea9c6d9ac /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcr.so+00313772
[ 39] 0x00007f3ea9c6db88 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcr.so+00314248
[ 40] 0x00007f3e9e6095c6 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwuix.so+00480710
[ 41] 0x00007f3e9e616df2 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwuix.so+00536050
[ 42] 0x00007f3eaa35a862 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwservices.so+01845346
[ 43] 0x00007f3eaa35b50f /usr/local/MATLAB/R2013a/bin/glnxa64/libmwservices.so+01848591 _Z25svWS_ProcessPendingEventsiib+00001615
[ 44] 0x00007f3ea9c6e5ef /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcr.so+00316911
[ 45] 0x00007f3ea9c6ef5c /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcr.so+00319324
[ 46] 0x00007f3ea9c68592 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcr.so+00292242
[ 47] 0x00007f3ea8190609 /lib/x86_64-linux-gnu/libpthread.so.0+00034313
[ 48] 0x00007f3ea80b5163 /lib/x86_64-linux-gnu/libc.so.6+01175907 clone+00000067
2 Comments
Walter Roberson
on 12 Mar 2022
I wonder if this is at all relevant:
https://www.mathworks.com/matlabcentral/answers/342906-could-not-initialize-shared-resources-for-x11graphicsdevice?s_tid=srchtitle
Answers (2)
Srijith Kasaragod
on 7 Apr 2022
This is caused by faulty/outdated OpenGL drivers provided by your graphics card drivers. In order to resolve this issue, you can set MATLAB (R2013a) to utilize the OpenGL drivers included with MATLAB. This is done by executing the following command:
opengl software
Note that for this step to take effect for every session of MATLAB , this command would need to be executed every time. To set your preferences so that MATLAB always starts with software OpenGL on this computer, execute this command at the MATLAB command line:
>> opengl('save','software')
Hope this helps!
0 Comments
Michael Stone
on 14 Apr 2022
Trying to do virtually the same, but with R2014a. (Mint 20.1 Cinnamon, Linux 5.4.0-107-generic x86_64)
Get exactly the same pattern of stack trace as soon as I try to plot a figure.
Script execution works OK otherwise.
The advice above "opengl software" does not work (for me).
3 Comments
Michael Stone
on 30 May 2023
Sorry, no, not in Linux.
glibc across different versions appears to be notorious for producing incompatibilities.
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!