我最近升级到了 15.04,但紧接着 Matlab 2012b 就无法正常工作了,要么在加载程序时崩溃,要么在我尝试执行任何操作后几分钟就崩溃了。我尝试安装较新版本的 Matlab 2013a,但问题仍然存在。
我还见过一两次类似帖子,但它们似乎与 java 有关,而且我不认为我的情况如此(我可能错了!),而且我不完全确定如何从错误消息中找到具体问题。
错误信息说MATLAB has encountered an internal problem and needs to close.
该消息的详细信息如下:
MATLAB crash file:/home/james/matlab_crash_dump.10850-1:
------------------------------------------------------------------------
Segmentation violation detected at Sun Aug 30 22:37:24 2015
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Current Visual : 0x20 (class 4, depth 24)
Default Encoding : UTF-8
GNU C Library : 2.21 stable
MATLAB Architecture: glnxa64
MATLAB Root : /usr/local/MATLAB/R2013a
MATLAB Version : 8.1.0.604 (R2013a)
Operating System : Linux 3.19.0-26-generic #28-Ubuntu SMP Tue Aug 11 14:16:32 UTC 2015 x86_64
Processor ID : x86 Family 6 Model 23 Stepping 6, 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 (11701000), display :0
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 00007f2cde2cb9b0 RBX = 00007f2ccc09cb20
RCX = 00007f2cda656da0 RDX = 00000000fffffffd
RSP = 00007f2cda656d40 RBP = 00007f2ccc03ed80
RSI = 00007f2ccc09cb20 RDI = 00007f2c00000000
R8 = 00007f2ccc075108 R9 = 00007f2cde83f2a0
R10 = 00007f2cde83f300 R11 = 000000000000000b
R12 = 00000000fffffffd R13 = 00007f2ccc02b1d0
R14 = 00007f2cda656da0 R15 = 0000000000000004
RIP = 00007f2cec0d1c84 EFL = 0000000000010202
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f2cec0d1c84 /lib/x86_64-linux-gnu/libpthread.so.0+00040068 pthread_mutex_lock+00000004
[ 1] 0x00007f2cde2bbbc1 /usr/lib/x86_64-linux-gnu/libX11.so.6+00109505 XFindContext+00000097
[ 2] 0x00007f2cdebbc388 /usr/local/MATLAB/R2013a/bin/glnxa64/../../sys/os/glnxa64/libXm.so.3+01483656 _XmGetWidgetExtData+00000056
[ 3] 0x00007f2cdebb546b /usr/local/MATLAB/R2013a/bin/glnxa64/../../sys/os/glnxa64/libXm.so.3+01455211 _XmGetFocusPolicy+00000059
[ 4] 0x00007f2cdebb65bd /usr/local/MATLAB/R2013a/bin/glnxa64/../../sys/os/glnxa64/libXm.so.3+01459645 _XmManagerFocusOut+00000061
[ 5] 0x00007f2cde6213ae /usr/lib/x86_64-linux-gnu/libXt.so.6+00291758
[ 6] 0x00007f2cde6217f4 /usr/lib/x86_64-linux-gnu/libXt.so.6+00292852
[ 7] 0x00007f2cde622620 /usr/lib/x86_64-linux-gnu/libXt.so.6+00296480 _XtTranslateEvent+00001568
[ 8] 0x00007f2cde5fbc9b /usr/lib/x86_64-linux-gnu/libXt.so.6+00138395 XtDispatchEventToWidget+00001115
[ 9] 0x00007f2cde5fcaf2 /usr/lib/x86_64-linux-gnu/libXt.so.6+00142066 _XtSendFocusEvent+00000210
[ 10] 0x00007f2cde5fbc4b /usr/lib/x86_64-linux-gnu/libXt.so.6+00138315 XtDispatchEventToWidget+00001035
[ 11] 0x00007f2cde5fc348 /usr/lib/x86_64-linux-gnu/libXt.so.6+00140104
[ 12] 0x00007f2cde5fc499 /usr/lib/x86_64-linux-gnu/libXt.so.6+00140441 XtDispatchEvent+00000201
[ 13] 0x00007f2cde6079be /usr/lib/x86_64-linux-gnu/libXt.so.6+00186814 XtAppProcessEvent+00000734
[ 14] 0x00007f2ce1ad34d3 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwuix.so+00480467
[ 15] 0x00007f2ce1ae0df2 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwuix.so+00536050
[ 16] 0x00007f2cee639862 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwservices.so+01845346
[ 17] 0x00007f2cee63a50f /usr/local/MATLAB/R2013a/bin/glnxa64/libmwservices.so+01848591 _Z25svWS_ProcessPendingEventsiib+00001615
[ 18] 0x00007f2cedf4f5ef /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcr.so+00316911
[ 19] 0x00007f2cedf4ff5c /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcr.so+00319324
[ 20] 0x00007f2cedf49592 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcr.so+00292242
[ 21] 0x00007f2cec0cf6aa /lib/x86_64-linux-gnu/libpthread.so.0+00030378
[ 22] 0x00007f2cebe04eed /lib/x86_64-linux-gnu/libc.so.6+01076973 clone+00000109
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.
有什么可能导致此错误的原因吗?我尝试从 apt-get 安装 matlab-support 包,但似乎无法解决问题。
--------------------------------更新------------------------------------ 我又一次尝试了这个问题,我发现当我使用并从终端启动时,Matlab 现在可以工作了。这很奇怪,因为在升级到 15.04 之前sudo
我不需要使用它。sudo
我尝试通过将 matlab 安装目录的 chown 和用户名更改.matlab
为我的用户名来解决这个问题,但没有成功。所以看起来升级到 15.04 导致了权限错误。
有什么办法可以解决这个问题吗?每次启动都必须使用,sudo
这意味着我无法使用.desktop
matlab 的启动器,这很不方便...有什么想法吗?
答案1
这很可能是描述的错误这里,即 stdlibc++ 版本不兼容。
解决方法,来自上面链接的 Mathworks 支持线程:
确定 MATLAB 的安装位置
导航到此安装文件夹中的 sys/os/glnxa64 目录
将 libstdc++.so.6 库重命名为 libstdc++.so.6.old
至少对我来说是有效的。