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.
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
E0302 03:12:50.399718 23466 net.cpp:785] [Backward] All net params (data, diff): L1 norm = (13513.7, 65688.6); L2 norm = (23.9842, 295.159)
F0302 03:14:40.549015 23466 syncedmem.hpp:31] Check failed: error == cudaSuccess (29 vs. 0) driver shutting down
*** Check failure stack trace: ***
------------------------------------------------------------------------
abort() detected at Fri Mar 2 03:14:40 2018
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Current Visual : 0x21 (class 4, depth 24)
Default Encoding : UTF-8
Deployed : false
GNU C Library : 2.23 stable
Host Name : lly
MATLAB Architecture : glnxa64
MATLAB Entitlement ID: 6257193
MATLAB Root : /usr/local/MATLAB/R2016b
MATLAB Version : 9.1.0.441655 (R2016b)
OpenGL : hardware
Operating System : Linux 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64
Processor ID : x86 Family 6 Model 158 Stepping 9, 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 (11905000), display :0
Fault Count: 1
Abnormal termination:
abort()
Register State (from fault):
RAX = 0000000000000000 RBX = 00007fb35b643420
RCX = 00007fb4b71e9428 RDX = 0000000000000006
RSP = 00007fb49a94d008 RBP = 00007fb49a94d2e0
RSI = 0000000000005baa RDI = 0000000000005b76
R8 = 0000000000000081 R9 = 00007fb35b643440
R10 = 0000000000000008 R11 = 0000000000000202
R12 = 00007fb35b643480 R13 = 0000000000000072
R14 = 00007fb35b643420 R15 = 00007fb35b64ade0
RIP = 00007fb4b71e9428 EFL = 0000000000000202
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007fb4b71e9428 /lib/x86_64-linux-gnu/libc.so.6+00218152 gsignal+00000056
[ 1] 0x00007fb4b71eb02a /lib/x86_64-linux-gnu/libc.so.6+00225322 abort+00000362
[ 2] 0x00007fb35b42ee49 /usr/lib/x86_64-linux-gnu/libglog.so.0+00040521
[ 3] 0x00007fb35b4305cd /usr/lib/x86_64-linux-gnu/libglog.so.0+00046541
[ 4] 0x00007fb35b432433 /usr/lib/x86_64-linux-gnu/libglog.so.0+00054323 _ZN6google10LogMessage9SendToLogEv+00000643
[ 5] 0x00007fb35b43015b /usr/lib/x86_64-linux-gnu/libglog.so.0+00045403 _ZN6google10LogMessage5FlushEv+00000187
[ 6] 0x00007fb35b432e1e /usr/lib/x86_64-linux-gnu/libglog.so.0+00056862 _ZN6google15LogMessageFatalD2Ev+00000014
[ 7] 0x00007fb35b9fe8d0 /home/lly/work/caffe-ssd/matlab/+caffe/private/caffe_.mexa64+01329360
[ 8] 0x00007fb35b9c9512 /home/lly/work/caffe-ssd/matlab/+caffe/private/caffe_.mexa64+01111314
[ 9] 0x00007fb35b99bfca /home/lly/work/caffe-ssd/matlab/+caffe/private/caffe_.mexa64+00925642
[ 10] 0x00007fb35b99c3dd /home/lly/work/caffe-ssd/matlab/+caffe/private/caffe_.mexa64+00926685
[ 11] 0x00007fb35bbabae5 /home/lly/work/caffe-ssd/matlab/+caffe/private/caffe_.mexa64+03087077
[ 12] 0x00007fb35b91a01f /home/lly/work/caffe-ssd/matlab/+caffe/private/caffe_.mexa64+00393247
[ 13] 0x00007fb35b91a19a /home/lly/work/caffe-ssd/matlab/+caffe/private/caffe_.mexa64+00393626
[ 14] 0x00007fb4b71edff8 /lib/x86_64-linux-gnu/libc.so.6+00237560
[ 15] 0x00007fb4b71ee045 /lib/x86_64-linux-gnu/libc.so.6+00237637
[ 16] 0x00007fb4a6f047c0 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwmcr.so+00767936
[ 17] 0x00007fb4a6f03011 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwmcr.so+00761873
[ 18] 0x00007fb4a6bb9cfe /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_dispatcher.so+00437502
[ 19] 0x00007fb4a6ba0878 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_dispatcher.so+00333944 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArray_tagiS2_+00000616
[ 20] 0x00007fb499146a38 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwmcos_impl.so+02771512
[ 21] 0x00007fb4a6bf5bd5 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_dispatcher.so+00682965
[ 22] 0x00007fb4a6bb9cfe /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_dispatcher.so+00437502
[ 23] 0x00007fb4a6ba0878 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_dispatcher.so+00333944 _ZN13Mfh_MATLAB_fn11dispatch_fhEiPP11mxArray_tagiS2_+00000616
[ 24] 0x00007fb4a3b2a9b4 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_lxe.so+12614068
[ 25] 0x00007fb4a3b2aa50 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_lxe.so+12614224
[ 26] 0x00007fb4a3909306 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_lxe.so+10380038
[ 27] 0x00007fb4a3909785 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_lxe.so+10381189
[ 28] 0x00007fb4a3989cc8 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_lxe.so+10906824
[ 29] 0x00007fb4a398ba2a /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_lxe.so+10914346
[ 30] 0x00007fb4a632aee0 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwm_interpreter.so+02445024 _Z44inCallFcnWithTrapInDesiredWSAndPublishEventsiPP11mxArray_tagiS1_PKcbP15inWorkSpace_tag+00000080
[ 31] 0x00007fb4a766a77a /usr/local/MATLAB/R2016b/bin/glnxa64/libmwiqm.so+00690042 _ZN3iqm15BaseFEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000522
[ 32] 0x00007fb4803cea3f /usr/local/MATLAB/R2016b/bin/glnxa64/libnativejmi.so+00862783 _ZN9nativejmi14JmiFEvalPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000319
[ 33] 0x00007fb4803f1bd5 /usr/local/MATLAB/R2016b/bin/glnxa64/libnativejmi.so+01006549 _ZN3mcr3mvm27McrSwappingIqmPluginAdapterIN9nativejmi14JmiFEvalPluginEE7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000741
[ 34] 0x00007fb4a7660a0a /usr/local/MATLAB/R2016b/bin/glnxa64/libmwiqm.so+00649738
[ 35] 0x00007fb4a764ceb2 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwiqm.so+00569010
[ 36] 0x00007fb4a5ea805a /usr/local/MATLAB/R2016b/bin/glnxa64/libmwbridge.so+00159834
[ 37] 0x00007fb4a5ea8617 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwbridge.so+00161303
[ 38] 0x00007fb4a5eaf519 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwbridge.so+00189721
[ 39] 0x00007fb4a5eaf614 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwbridge.so+00189972
[ 40] 0x00007fb4a5eaffa9 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwbridge.so+00192425 _Z8mnParserv+00000617
[ 41] 0x00007fb4a6ecc243 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwmcr.so+00537155
[ 42] 0x00007fb4a6ece1ce /usr/local/MATLAB/R2016b/bin/glnxa64/libmwmcr.so+00545230
[ 43] 0x00007fb4a6ece849 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwmcr.so+00546889 _ZN5boost6detail17task_shared_stateINS_3_bi6bind_tIvPFvRKNS_8functionIFvvEEEENS2_5list1INS2_5valueIS6_EEEEEEvE6do_runEv+00000025
[ 44] 0x00007fb4a6ecd236 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwmcr.so+00541238
[ 45] 0x00007fb4a7694b49 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwiqm.so+00863049
[ 46] 0x00007fb4a768151c /usr/local/MATLAB/R2016b/bin/glnxa64/libmwiqm.so+00783644 _ZN5boost6detail8function21function_obj_invoker0ISt8functionIFNS_3anyEvEES4_E6invokeERNS1_15function_bufferE+00000028
[ 47] 0x00007fb4a76811fc /usr/local/MATLAB/R2016b/bin/glnxa64/libmwiqm.so+00782844 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tagRN5boost10shared_ptrIN14cmddistributor17IIPCompletedEventEEE+00000428
[ 48] 0x00007fb4a7660a0a /usr/local/MATLAB/R2016b/bin/glnxa64/libmwiqm.so+00649738
[ 49] 0x00007fb4a764c690 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwiqm.so+00566928
[ 50] 0x00007fb4a764f048 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwiqm.so+00577608
[ 51] 0x00007fb4b895340a /usr/local/MATLAB/R2016b/bin/glnxa64/libmwservices.so+02634762
[ 52] 0x00007fb4b89549af /usr/local/MATLAB/R2016b/bin/glnxa64/libmwservices.so+02640303
[ 53] 0x00007fb4b89550e6 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwservices.so+02642150 _Z25svWS_ProcessPendingEventsiib+00000102
[ 54] 0x00007fb4a6ecc8c6 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwmcr.so+00538822
[ 55] 0x00007fb4a6eccc42 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwmcr.so+00539714
[ 56] 0x00007fb4a6eba8d6 /usr/local/MATLAB/R2016b/bin/glnxa64/libmwmcr.so+00465110
[ 57] 0x00007fb4b75856ba /lib/x86_64-linux-gnu/libpthread.so.0+00030394
[ 58] 0x00007fb4b72bb41d /lib/x86_64-linux-gnu/libc.so.6+01078301 clone+00000109
[ 59] 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.** This crash report has been saved to disk as /home/lly/matlab_crash_dump.23414-1 **
MATLAB is exiting because of fatal error
Killed
Here is my hardware information:
ubuntu 16.04
gtx1070
cdua8.0
cudnn5.1
NVIDIA Drivers: NVIDIA-Linux-x86_64-384.111.run
MATLAB2016b
Any idea on how to solve this? Thank you very much!
Here is my compile caffe process:
Because MATLAB library files and Ubuntu system library files conflict, first i backuped the MATLAB file, and then added the system files to the environment variables, so that the system will use the system's default dynamic file.
①Rename libstdc++.so.6 to libstdc++.so.6_back in the directory of /usr/local/MATLAB/R2016b/sys/os/glnxa64
②execute sudo make matcaffe -j8 which is successful.
③execute sudo make mattest -j8 get this wrong information:
Invalid MEX-file
'/home/lly/work/caffe/matlab/+caffe/private/caffe_.mexa64':
/home/lly/work/caffe/matlab/+caffe/private/caffe_.mexa64: undefined
symbol:
_ZN2cv8imencodeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_11_InputArrayERSt6vectorIhSaIhEERKSB_IiSaIiEE.
Error in caffe.set_mode_cpu (line 5)
caffe_('set_mode_cpu');
Error in caffe.run_tests (line 6)
caffe.set_mode_cpu();
④Then, I deleted six MATLAB files in directory /usr/local/MATLAB/R2016b/bin/glnxa64, in order to solve this problem.But finally got the matlab crash problem.
sudo mv libopencv_core.so.2.4 libopencv_core.so.2.4.bak
sudo mv libopencv_core.so.2.4.9 libopencv_core.so.2.4.9.bak
sudo mv libopencv_highgui.so.2.4 libopencv_highgui.so.2.4.bak
sudo mv libopencv_highgui.so.2.4.9 libopencv_highgui.so.2.4.9.bak
sudo mv libopencv_imgproc.so.2.4 libopencv_imgproc.so.2.4.bak
sudo mv libopencv_imgproc.so.2.4.9 libopencv_imgproc.so.2.4.9.bak
Look at the following two things in your log.
Current Graphics Driver: Unknown hardware
OpenGL : hardware
The first one needs to be populated by your graphics card driver information. That is not happening.
Perform the following test:
Put OpenGL to be Software. Check that it has been moved to software
by typing: h = opengl('info')
Check that the current graphics driver field is populated with whatever software driver you have.
Make sure to save these settings.
Restart the Matlab.
Reconfirm the settings and make sure opengl is to software.
Replicate the crash.
Share the Log.
After this you can try running the memory diagnostic on your System Memory and Graphics Card.
I had faced a similar issue and it turned out that there was a problem in my System Memory and Graphics card.
But that you will come to know after the log report is generated.
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
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