I have some trouble on creating parpool in matlab in slurm
when I submit the job, it will get stuck :
parpool size: 24
Starting parallel pool (parpool) using the 'local' profile ...
or error
{Error using parpool (line 104)
Failed to start a parallel pool. (For information in addition to the causing
error, validate the profile 'local' in the Cluster Profile Manager.)
Error in run (line 86)
evalin('caller', [script ';']);
Caused by:
Error using parallel.internal.pool.InteractiveClient>iThrowWithCause (line
666)
Failed to initialize the interactive session.
Error using
parallel.internal.pool.InteractiveClient>iThrowIfBadParallelJobStatus
(line 767)
The interactive communicating job failed with no message.
}
There is also a matlab crash dump file
------------------------------------------------------------------------
Segmentation violation detected at Sun Apr 2 11:36:33 2017
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
GNU C Library : 2.23 stable
Host Name : wmc-slave-g2
MATLAB Architecture : glnxa64
MATLAB Root : /opt/matlab/R2017a
MATLAB Version : 9.2.0.538062 (R2017a)
Operating System : Linux 4.4.0-66-generic #87-Ubuntu SMP Fri Mar 3 15:29:05 UTC 2017 x86_64
Processor ID : x86 Family 6 Model 79 Stepping 1, GenuineIntel
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 00007f7410256900 RBX = 0000000000000000
RCX = 0000000000000000 RDX = 00007f7410256978
RSP = 00007f741e240868 RBP = 00007f741e240870
RSI = 0000000000000000 RDI = 00007f741e240870
R8 = 0000000000000000 R9 = 0000000000000000
R10 = 00000000000000ed R11 = 00007f743afade60
R12 = 00007f7410256978 R13 = 00007f741e2408a0
R14 = 00007f741e2409f0 R15 = 00007f7410258110
RIP = 00007f743afade60 EFL = 0000000000010202
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f743afade60 /opt/matlab/R2017a/bin/glnxa64/libboost_thread.so.1.56.0+00069216 _ZNK5boost6thread15get_thread_infoEv+00000000
[ 1] 0x0000000000000000 <unknown-module>+00000000
If this problem is reproducible, please submit a Service Request via:
A technical support engineer might contact you with further information.
Thanks
This is usually due to java version incompatibility used for Matlab on Linux. issue:
echo $MATLAB_JAVA
If this variable set, you can unset this option and let Matlab use its own java. you can run a script like this:
#!/bin/sh
unset MATLAB_JAVA
matlab -desktop
Related
I am running a bash script launching many MATLAB independent processes in parallel in background. However, some of them shutdown, probably due to memory constraints. This is the report I get from the crash dump file. Do you have any idea on how to prevent this happening? Thanks
--------------------------------------------------------------------------------
abort() detected at Fri Feb 10 03:57:00 2023 +0100
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
GNU C Library : 2.17 stable
Graphics Driver : Unknown software
Graphics card 1 : 0x102b ( 0x102b ) 0x533 Version 0.0.0.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 841490
MATLAB Root : /data/cad/Matlab/R2019b
MATLAB Version : 9.7.0.1319299 (R2019b) Update 5
OpenGL : software
Operating System : "CentOS Linux release 7.4.1708 (Core) "
Process ID : 30261
Processor ID : x86 Family 6 Model 79 Stepping 1, GenuineIntel
Session Key : 29ff05b5-c4c1-448e-b09a-c651244a5c8b
Static TLS mitigation : Disabled: Unnecessary
Window System : No active display
Fault Count: 1
Abnormal termination:
abort()
Register State (from fault):
RAX = 0000000000000000 RBX = 00007fbfcfc36c40
RCX = ffffffffffffffff RDX = 0000000000000006
RSP = 00007fbfcfc367d8 RBP = 0000000000000000
RSI = 0000000000007f51 RDI = 0000000000007635
R8 = 0000000000000038 R9 = 0000000000000038
R10 = 0000000000000008 R11 = 0000000000000206
R12 = 0000000000030005 R13 = 00007fbfcfc36c70
R14 = 0000000000000000 R15 = 0000000000000000
RIP = 00007fbfeeaff1f7 EFL = 0000000000000206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fbfeeaff1f7 /lib64/libc.so.6+00217591 gsignal+00000055
[ 1] 0x00007fbfeeb008e8 /lib64/libc.so.6+00223464 abort+00000328
[ 2] 0x00007fbfd0593a53 /data/cad/Matlab/R2019b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00731731
[ 3] 0x00007fbfd057fe7f /data/cad/Matlab/R2019b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00650879
[ 4] 0x00007fbfd05c5805 /data/cad/Matlab/R2019b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00935941
[ 5] 0x0000000000001000 <unknown-module>+00000000
I'm writing a small Kernel to learn more about Operating ystems.
I recently decided to start implementing User Mode, just for fun.
To achieve this, I followed this guide: https://blog.llandsmeer.com/tech/2019/07/21/uefi-x64-userland.html
Unfortunately, though, I've seen nothing but gpfaults, page faults and reboots in the last 24 hours. I tried and retried, following many different guides, from the OSDev Wiki, to random blogs, and checking with Volume 2 of the AMD Programmer's Manual for x86-64, but nothing. It seems as though, instead of jumping to user_main, sysretq rejumps to kernel_main (Indeed, running the function twice results in the same weird page fault - with a random text output that should only be displaied once [at boot]). If i use sysret or o64 sysret instead of sysretq, QEMU outright resets.
I seriously don't know how to deal with this problem.
Links and references:
You can find my Kernel at: https://github.com/Alessandro-Salerno/SalernOS-Kernel
The code for entering User Mode can be found at src/User/Userspace/userspace.asm and the SCE (System Call Extension) code can be found at src/Syscall/sce.asm. The entry point is in src/kernel.c
The code I use in kernel.c to jump to Userspace.
...
#include "User/Userspace/userspace.h"
uint64_t user_stack[1024];
void user_main() {
while (TRUE);
}
void kernel_main(boot_t* __bootinfo) {
// init code (Up to line 74 in src/kernel.c)
kernel_userspace_enter(user_main, &user_stack[500]);
}
Nth Edit: I used log cpu_reset in QEMU to get some info when the system crashes:
CPU Reset (CPU 0)
RAX=0000000000006297 RBX=000000000ff1c2b0 RCX=0000000000002d60 RDX=00000000ff000000
RSI=0000000000009ff8 RDI=0000000000002d60 RBP=0000000000000000 RSP=0000000000009ff8
R8 =0000000000000000 R9 =000000000000a1f0 R10=cccccccccccccccd R11=0000000000000202
R12=000000000ff1c176 R13=000000000ff1c177 R14=0000000000006296 R15=0000000000000000
RIP=0000000000002d60 RFL=00000202 [-------] CPL=3 II=0 A20=1 SMM=0 HLT=0
ES =0010 0000000000000000 00000fff 00a09300 DPL=0 DS [-WA]
CS =002b 0000000000000000 ffffffff 00a0fb00 DPL=3 CS64 [-RA]
SS =0023 0000000000000000 ffffffff 00c0f300 DPL=3 DS [-WA]
DS =0010 0000000000000000 00000fff 00a09300 DPL=0 DS [-WA]
FS =0010 0000000000000000 00000fff 00a09300 DPL=0 DS [-WA]
GS =0010 0000000000000000 00000fff 00a09300 DPL=0 DS [-WA]
LDT=0000 0000000000000000 0000ffff 00008200 DPL=0 LDT
TR =0030 000000000000a000 00068fff 00a08900 DPL=0 TSS64-avl
GDT= 0000000000005000 00000fff
IDT= 000000000021f000 00000fff
CR0=80010033 CR2=fffffffffffffff8 CR3=0000000000100000 CR4=00000668
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
CCS=0000000000000000 CCD=000000000ff1c150 CCO=EFLAGS
EFER=0000000000000d01
FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
FPR6=0000000000000000 0000 FPR7=0000000000000000 0000
XMM00=ff000000ff000000 ff000000ff000000 XMM01=0000000000000000 3ff0000000000000
XMM02=0000000000000000 0000000000000000 XMM03=0015001600400003 0038004000000000
XMM04=0000000000000000 0000000000000000 XMM05=0000000000000000 0000000000000000
XMM06=0000000000000000 0000000000000000 XMM07=0000000000000000 0000000000000000
XMM08=0000000000000000 0000000000000000 XMM09=0000000000000000 0000000000000000
XMM10=0000000000000000 0000000000000000 XMM11=0000000000000000 0000000000000000
XMM12=0000000000000000 0000000000000000 XMM13=0000000000000000 0000000000000000
XMM14=0000000000000000 0000000000000000 XMM15=0000000000000000 0000000000000000
I solved it.
At letast I think so....
Remember to get the size of the GDT instance, not the GDT Type when setting up your GDT. If I find something else, I will update this answer.
I modified the OpenCV XML file (classifier) which is generated by TrainCascadeObjectDetector of MATLAB, I deleted some items.
When i tried to load it with:
detector = vision.CascadeObjectDetector('classifier.xml');
I get an access violation error:
MATLAB crash file:C:\Users\USER\AppData\Local\Temp\matlab_crash_dump.5372-1:
------------------------------------------------------------------------
Access violation detected at Fri May 20 19:11:24 2016
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: Microsoft Corporation GDI Generic Version 1.1.0
Default Encoding : windows-1252
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics Family Version 8.15.10.2559
Host Name : USER
MATLAB Architecture : win64
MATLAB Root : C:\Program Files\MATLAB\R2015b
MATLAB Version : 8.6.0.267246 (R2015b)
OpenGL : software
Operating System : Microsoft Windows 7 Édition Intégrale
Processor ID : x86 Family 6 Model 42 Stepping 7, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 6.1 (Build 7601: Service Pack 1)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
RAX = 0000000000000000 RBX = 00000000f7f42080
RCX = 0000000000000000 RDX = 000000008b655de8
RSP = 00000000f7f41ec0 RBP = 0000000000000001
RSI = 000000001c19e060 RDI = 000000008aeb33c0
R8 = 000000013cfe36b0 R9 = 0000000000000000
R10 = 000000000001d940 R11 = 0000000000000001
R12 = 0000000000000001 R13 = 0000000000000000
R14 = 0000000000000000 R15 = 000000001c19dfd4
RIP = 00000000b8ad68c1 EFL = 00010206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00000000b8ad68c1 C:\Program Files\MATLAB\R2015b\bin\win64\opencv_objdetect249.dll+00026817
[ 1] 0x00000000b8ae9f91 C:\Program Files\MATLAB\R2015b\bin\win64\opencv_objdetect249.dll+00106385 cv::CascadeClassifier::runAt+00000481
[ 2] 0x00000000b8adba84 C:\Program Files\MATLAB\R2015b\bin\win64\opencv_objdetect249.dll+00047748 cv::FileNodeIterator::operator*+00000820
[ 3] 0x00000000b8576134 C:\Program Files\MATLAB\R2015b\bin\win64\opencv_core249.dll+01335604 cv::ParallelLoopBody::~ParallelLoopBody+00000436
[ 4] 0x00000000b85759bc C:\Program Files\MATLAB\R2015b\bin\win64\opencv_core249.dll+01333692 cv::Formatter::setDefault+00003036
[ 5] 0x00000000b85763d3 C:\Program Files\MATLAB\R2015b\bin\win64\opencv_core249.dll+01336275 cv::currentParallelFramework+00000147
[ 6] 0x000007fefb7cc882 C:\Program Files\MATLAB\R2015b\bin\win64\tbb.dll+00116866 tbb::interface7::internal::task_arena_base::internal_wait+00013042
[ 7] 0x000007fefb7c9f5f C:\Program Files\MATLAB\R2015b\bin\win64\tbb.dll+00106335 tbb::interface7::internal::task_arena_base::internal_wait+00002511
[ 8] 0x000007fefb7c6d84 C:\Program Files\MATLAB\R2015b\bin\win64\tbb.dll+00093572 tbb::task_scheduler_init::terminate+00003428
[ 9] 0x000007fefb7c12a8 C:\Program Files\MATLAB\R2015b\bin\win64\tbb.dll+00070312 tbb::internal::thread_yield_v3+00004488
[ 10] 0x000007fefb7c154b C:\Program Files\MATLAB\R2015b\bin\win64\tbb.dll+00070987 tbb::internal::thread_yield_v3+00005163
[ 11] 0x000007fef07a3fef C:\Program Files\MATLAB\R2015b\bin\win64\MSVCR110.dll+00147439 beginthreadex+00000263
[ 12] 0x000007fef07a4196 C:\Program Files\MATLAB\R2015b\bin\win64\MSVCR110.dll+00147862 endthreadex+00000402
[ 13] 0x00000000776d652d C:\Windows\system32\kernel32.dll+00091437 BaseThreadInitThunk+00000013
[ 14] 0x0000000077a1c521 C:\Windows\SYSTEM32\ntdll.dll+00181537 RtlUserThreadStart+00000033
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'm trying to implement a classifier on matlab that uses RegressionTrees as a part of its procedure.
Now i'm getting an exception in the mex file of the regression tree.
here is a part of the crash dump
------------------------------------------------------------------------
Segmentation violation detected at Tue Jun 4 11:49:48 2013
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Current Visual : 0x21 (class 4, depth 24)
Default Encoding : UTF-8
GNU C Library : 2.13 stable
MATLAB Architecture: glnxa64
MATLAB Root : /usr/local/MATLAB/R2013a
MATLAB Version : 8.1.0.604 (R2013a)
Operating System : Linux 3.0.0-31-generic #49-Ubuntu SMP Tue Feb 19 20:02:57 UTC 2013 x86_64
Processor ID : x86 Family 6 Model 42 Stepping 7, 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 (11004000), display :0
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 000000000a673ad8 RBX = 0000000008c85de8
RCX = 0000000000000000 RDX = 00000000000002a5
RSP = 00007f5fa88ba8e0 RBP = 00007f5fa88ba910
RSI = 0000000008c85de8 RDI = 0000000008c825a0
R8 = 0000000008c825a0 R9 = 0000000000003870
R10 = 0000000000003001 R11 = ffefffffffffffff
R12 = 0000000008c83ac0 R13 = 0000000008c83ac8
R14 = 00007f5fa88ba930 R15 = 0000000000000119
RIP = 00007f5f7a06e9fd EFL = 0000000000010246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f5f7a06e9fd /usr/local/MATLAB/R2013a/toolbox/stats/classreg/+classreg/+learning/+treeutils/growTree.mexa64+00088573 _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEEN12classregtree12IndexedIsNaNIdEEET_SA_SA_T0_St26random_access_iterator_tag+00000077
[ 1] 0x00007f5f7a06eb29 /usr/local/MATLAB/R2013a/toolbox/stats/classreg/+classreg/+learning/+treeutils/growTree.mexa64+00088873 _ZSt9remove_ifIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEEN12classregtree12IndexedIsNaNIdEEET_SA_SA_T0_+00000041
[ 2] 0x00007f5f7a085f20 /usr/local/MATLAB/R2013a/toolbox/stats/classreg/+classreg/+learning/+treeutils/growTree.mexa64+00184096
[ 3] 0x00007f5f7a0cf25b /usr/local/MATLAB/R2013a/toolbox/stats/classreg/+classreg/+learning/+treeutils/growTree.mexa64+00483931
[ 4] 0x00007f5f7a0d0580 /usr/local/MATLAB/R2013a/toolbox/stats/classreg/+classreg/+learning/+treeutils/growTree.mexa64+00488832
[ 5] 0x00007f5f7a0eb2c6 /usr/local/MATLAB/R2013a/toolbox/stats/classreg/+classreg/+learning/+treeutils/growTree.mexa64+00598726
[ 6] 0x00007f5f7a0698a3 /usr/local/MATLAB/R2013a/toolbox/stats/classreg/+classreg/+learning/+treeutils/growTree.mexa64+00067747 mexFunction+00001939
[ 7] 0x00007f5fb2a1bf8a /usr/local/MATLAB/R2013a/bin/glnxa64/libmex.so+00110474 mexRunMexFile+00000090
[ 8] 0x00007f5fb2a180f9 /usr/local/MATLAB/R2013a/bin/glnxa64/libmex.so+00094457
[ 9] 0x00007f5fb2a18f1c /usr/local/MATLAB/R2013a/bin/glnxa64/libmex.so+00098076
[ 10] 0x00007f5fbc2ac6b2 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwm_dispatcher.so+00562866 _ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+00000594
[ 11] 0x00007f5fb2ff453a /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcos.so+01672506
[ 12] 0x00007f5fb2f9513a /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcos.so+01282362
[ 13] 0x00007f5fb2f953be /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcos.so+01283006
[ 14] 0x00007f5fb2f9712c /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcos.so+01290540
[ 15] 0x00007f5fb3002246 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcos.so+01729094
[ 16] 0x00007f5fb3081cd8 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwmcos.so+02251992
[ 17] 0x00007f5fbc25eaf8 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwm_dispatcher.so+00244472 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArray_tagiS2_+00000488
[ 18] 0x00007f5fbbb4a256 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwm_interpreter.so+02245206
[ 19] 0x00007f5fbbafaa86 /usr/local/MATLAB/R2013a/bin/glnxa64/libmwm_interpreter.so+01919622
...
...
The complete crash dump http://snipt.org/AlK6
Now how can i know if my whether my input to the regression Tree is causing an error or it is something related to my hardware ?
is There a way to know the reason of the error ?
UPDATE
here are the lines that cause the exception (the Regression Tree line is the main reason)
for j = 1:J
save('data');
gj = RegressionTree.fit(trainData, Y_CODE(:, j), 'Weights', wts);
g{j} = gj;
end
This code snippet is a part of a loop (actually i'm trying to implement GAMBLE algorithm, if you know an existing implementation that would be great), and matlab crashes everytime in a different iteration..
I have tried to save the workspace save('data') and re-execute the regression tree line after restarting matlab but it didn't crash .. which is very strange.
i have sent a crash report to MathWorks.
meanwhile is there a matlab implementation of Regression Trees that supports weights ? or better an implementation of the GAMBLE boosting algorithm ?
Thanks
As long as you're running on a system that meets the published MATLAB system requirements, no MathWorks code should really be giving you a segmentation violation like this - whatever input you are passing into it. Even if you're passing in complete nonsense, it should stop gracefully with a MATLAB error, not a hard fault like this.
If you can reproduce the behaviour (in a freshly started MATLAB, nothing else running, with the same inputs each time), contact MathWorks support to either discover whether an aspect of your system is unsupported, or to report a bug.
I'm having problems with my 3D-plotting on Ubuntu 12.10. The crash occurs immeadiately after I try to plot data in 3D. I have Crash dump and other error report here:
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
libGL error: dlopen /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so failed (/home/jonne/MATLAB/R2012a/bin/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so))
libGL: OpenDriver: trying ${ORIGIN}/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying ${ORIGIN}/dri/nouveau_dri.so
libGL error: dlopen ${ORIGIN}/dri/nouveau_dri.so failed (${ORIGIN}/dri/nouveau_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying /usr/lib/dri/nouveau_dri.so
libGL error: dlopen /usr/lib/dri/nouveau_dri.so failed (/usr/lib/dri/nouveau_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL error: dlopen /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so failed (/home/jonne/MATLAB/R2012a/bin/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/x86_64-linux-gnu/libLLVM-3.1.so.1))
libGL: OpenDriver: trying ${ORIGIN}/dri/tls/swrast_dri.so
libGL: OpenDriver: trying ${ORIGIN}/dri/swrast_dri.so
libGL error: dlopen ${ORIGIN}/dri/swrast_dri.so failed (${ORIGIN}/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
CRASH DUMP:
------------------------------------------------------------------------
Segmentation violation detected at Wed Dec 19 02:17:00 2012
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Current Visual : 0x21 (class 4, depth 24)
Default Encoding: UTF-8
GNU C Library : 2.15 stable
MATLAB Root : /home/jonne/MATLAB/R2012a
MATLAB Version : 7.14.0.739 (R2012a)
Operating System: Linux 3.5.0-19-generic #30-Ubuntu SMP Tue Nov 13 17:48:01 UTC 2012 x86_64
Processor ID : x86 Family 31 Model 6 Stepping 2, AuthenticAMD
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 (11300000), display :0.0
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
RAX = 0000000000000000 RBX = 0000000000000000
RCX = 0000000000000000 RDX = 00007fb9ac068658
RSP = 00007fb9bb8e38e8 RBP = 00000000009a0005
RSI = 0000000000000000 RDI = 0000000000000000
R8 = 00007fb9ac068680 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000000000000000
R12 = 0000000000001f02 R13 = 0000000000000000
R14 = 00007fb9c6b797d0 R15 = 0000000000000000
RIP = 00007fb973df6d00 EFL = 0000000000010206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fb9d09f592e /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00370990 _ZN2fl4diag15stacktrace_base7captureERKNS0_14thread_contextEm+000158
[ 1] 0x00007fb9d09f87d0 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00382928
[ 2] 0x00007fb9d09f8b3b /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwfl.so+00383803 _ZN2fl4diag13terminate_logEPKcRKNS0_14thread_contextE+000171
[ 3] 0x00007fb9cf8dc203 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01253891 _ZN2fl4diag13terminate_logEPKcPK8ucontext+000067
[ 4] 0x00007fb9cf8d90fd /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01241341
[ 5] 0x00007fb9cf8da79d /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247133
[ 6] 0x00007fb9cf8da925 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01247525
[ 7] 0x00007fb9cf8daf01 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01249025
[ 8] 0x00007fb9cf8db3f5 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01250293
[ 9] 0x00007fb9cdfa2cb0 /lib/x86_64-linux-gnu/libpthread.so.0+00064688
[ 10] 0x00007fb973df6d00 /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0+00056576 xcb_glx_get_string_string_length+000000
[ 11] 0x00007fb97c98a6b4 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1+00272052 __glXGetString+000068
[ 12] 0x00007fb97c98812e /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1+00262446
[ 13] 0x00007fb97cbbf379 /home/jonne/MATLAB/R2012a/bin/glnxa64/glren.so+00078713
[ 14] 0x00007fb97cbb6b40 /home/jonne/MATLAB/R2012a/bin/glnxa64/glren.so+00043840
[ 15] 0x00007fb97cbb6cc6 /home/jonne/MATLAB/R2012a/bin/glnxa64/glren.so+00044230
[ 16] 0x00007fb9c68d30a8 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwhg.so+09408680 _Z22OpenGLSetupEnumstrOnceb+000296
[ 17] 0x00007fb9c6827ac7 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwhg.so+08706759 gf_DetermineBestRenderMode+000183
[ 18] 0x00007fb9c6827c0b /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwhg.so+08707083 _Z22gf_DetermineRenderModeP11GObject_tagi+000107
[ 19] 0x00007fb9c6827d0a /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwhg.so+08707338 InitializeFigureRenderEngine+000074
[ 20] 0x00007fb9c6828114 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwhg.so+08708372
[ 21] 0x00007fb9c689418c /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwhg.so+09150860
[ 22] 0x00007fb9c684a89b /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwhg.so+08849563 _Z24commitHG1DatabaseUpdatesb+000235
[ 23] 0x00007fb9d0157e16 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwservices.so+01359382 _Z26svWS_CommitDatabaseUpdates28svCommitDatabaseUpdatesType_+000390
[ 24] 0x00007fb9c5030387 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwuix.so+00525191
[ 25] 0x00007fb9c5030691 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwuix.so+00525969
[ 26] 0x00007fb9cfb476eb /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwbridge.so+00124651
[ 27] 0x00007fb9cfb47cde /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwbridge.so+00126174 _Z10ioReadLinebP8_IO_FILEPcS1_iPbRKN5boost8optionalIKP15inWorkSpace_tagEEb+000990
[ 28] 0x00007fb9cfb48165 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwbridge.so+00127333
[ 29] 0x00007fb9cfb4cd0a /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwbridge.so+00146698
[ 30] 0x00007fb9cfb4d165 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwbridge.so+00147813
[ 31] 0x00007fb9cfb4d9ce /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwbridge.so+00149966 mnParser+000702
[ 32] 0x00007fb9cf8c0de2 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01142242 _ZN11mcrInstance30mnParser_on_interpreter_threadEv+000034
[ 33] 0x00007fb9cf8a351a /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01021210
[ 34] 0x00007fb9cf8a3598 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01021336
[ 35] 0x00007fb9c5021376 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwuix.so+00463734
[ 36] 0x00007fb9c502b862 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwuix.so+00505954
[ 37] 0x00007fb9d01599a1 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwservices.so+01366433 _ZSt8for_eachIN9__gnu_cxx17__normal_iteratorIPN5boost8weak_ptrIN4sysq10ws_ppeHookEEESt6vectorIS6_SaIS6_EEEENS4_8during_FIS6_NS2_10shared_ptrIS5_EEEEET0_T_SH_SG_+000081
[ 38] 0x00007fb9d015aaab /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwservices.so+01370795
[ 39] 0x00007fb9d01585f9 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwservices.so+01361401 _Z25svWS_ProcessPendingEventsiib+000665
[ 40] 0x00007fb9cf8a276f /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01017711
[ 41] 0x00007fb9cf8a2c3b /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01018939
[ 42] 0x00007fb9cf8a2d97 /home/jonne/MATLAB/R2012a/bin/glnxa64/libmwmcr.so+01019287
[ 43] 0x00007fb9cdf9ae9a /lib/x86_64-linux-gnu/libpthread.so.0+00032410
[ 44] 0x00007fb9cdcc7cbd /lib/x86_64-linux-gnu/libc.so.6+00998589 clone+000109
Does anyone have any idea what should I do to get this work? 2D-plotting works, but 3D-does not...
Thank you!
What renderer are you using? Could you post a code snippet of your script?
Try creating the figure first, a specifying the renderer. For example,
figure('renderer','zbuffer')
I've had more luck with the zbuffer renderer than opengl or painters for example. In fact, in my startup script I've ensured every figure window that I open uses zbuffer - I've found it is much quicker to render, and has less problems with random crashes.
See: http://www.mathworks.com.au/help/matlab/ref/figure_props.html
Renderer
painters | zbuffer | OpenGL
Rendering method used for screen and printing. Selects the method used to render MATLAB graphics. The choices are:
painters — The original rendering method used by MATLAB is faster when the figure contains only simple or small graphics objects.
zbuffer — MATLAB draws graphics objects faster and more accurately because it colors objects on a per-pixel basis and MATLAB renders only those pixels that are visible in the scene (thus eliminating front-to-back sorting errors). Note that this method can consume a lot of system memory if MATLAB is displaying a complex scene.
OpenGL — OpenGL is a renderer that is available on many computer systems. This renderer is generally faster than painters or zbuffer and in some cases enables MATLAB to access graphics hardware that is available on some systems.
This helped me:
https://bbs.archlinux.org/viewtopic.php?id=154775
(...which got help from How to tell mex to link with the libstdc++.so.6 in /usr/lib instead of the one in the MATLAB directory?)
basically I just did this:
sudo mv /usr/local/MATLAB/R2012a/sys/os/glnx86/libstdc++.so.6 /usr/local/MATLAB/R2012a/sys/os/glnx86/libstdc++.so.6__bck
and
sudo ln -s /usr/lib/i386-linux-gnu/libstdc++.so.6.0.17 /usr/local/MATLAB/R2012a/sys/os/glnx86/libstdc++.so.6