MATLAB Answers

Matlab crashed with Caffe

15 views (last 30 days)
Unnikrishnan T A
Unnikrishnan T A on 30 Oct 2015
Commented: jiao wu on 14 Apr 2020
I was trying to run a code which uses Caffe matlab wrapper and running in GPU mode. But Matlab crashes everytime with the following crash dump
------------------------------------------------------------------------
abort() detected at Fri Oct 30 14:55:23 2015
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Current Visual : 0x21 (class 4, depth 24)
Default Encoding : UTF-8
GNU C Library : 2.19 stable
Host Name : unni-cvlab
MATLAB Architecture : glnxa64
MATLAB Root : /usr/local/MATLAB/R2015a
MATLAB Version : 8.5.0.197613 (R2015a)
OpenGL : hardware
Operating System : Linux 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64
Processor ID : x86 Family 6 Model 58 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 (11501000), display :0.0
Fault Count: 1
Abnormal termination:
abort()
Register State (from fault):
RAX = 0000000000000000 RBX = 00007f82d9ef3620
RCX = ffffffffffffffff RDX = 0000000000000006
RSP = 00007f838dd38008 RBP = 00007f838dd38140
RSI = 000000000000289a RDI = 000000000000286f
R8 = 000000000000ff08 R9 = 00007f83a2b40d40
R10 = 0000000000000008 R11 = 0000000000000206
R12 = 0000000442ac0000 R13 = 000000044bd00000
R14 = 000000044c060000 R15 = 00007f82fd866a30
RIP = 00007f83a2a26cc9 EFL = 0000000000000206
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f83a2a26cc9 /lib/x86_64-linux-gnu/libc.so.6+00224457 gsignal+00000057
[ 1] 0x00007f83a2a2a0d8 /lib/x86_64-linux-gnu/libc.so.6+00237784 abort+00000328
[ 2] 0x00007f82d9ccdd81 /usr/lib/x86_64-linux-gnu/libglog.so.0+00068993 _ZN6google22InstallFailureFunctionEPFvvE+00000000
[ 3] 0x00007f82d9ccddaa /usr/lib/x86_64-linux-gnu/libglog.so.0+00069034 _ZN6google10LogMessage10SendToSinkEv+00000000
[ 4] 0x00007f82d9ccdce4 /usr/lib/x86_64-linux-gnu/libglog.so.0+00068836 _ZN6google10LogMessage9SendToLogEv+00001224
[ 5] 0x00007f82d9ccd6e6 /usr/lib/x86_64-linux-gnu/libglog.so.0+00067302 _ZN6google10LogMessage5FlushEv+00000414
[ 6] 0x00007f82d9cd0687 /usr/lib/x86_64-linux-gnu/libglog.so.0+00079495 _ZN6google15LogMessageFatalD1Ev+00000025
[ 7] 0x00007f82df31806b /home/unni/MTPMain/LEGS/caffe/matlab/caffe/caffe.mexa64+00516203
[ 8] 0x00007f82df320e91 /home/unni/MTPMain/LEGS/caffe/matlab/caffe/caffe.mexa64+00552593
[ 9] 0x00007f82df395c18 /home/unni/MTPMain/LEGS/caffe/matlab/caffe/caffe.mexa64+01031192
[ 10] 0x00007f82df40b858 /home/unni/MTPMain/LEGS/caffe/matlab/caffe/caffe.mexa64+01513560
[ 11] 0x00007f82df3c74fc /home/unni/MTPMain/LEGS/caffe/matlab/caffe/caffe.mexa64+01234172
[ 12] 0x00007f82df3c77b5 /home/unni/MTPMain/LEGS/caffe/matlab/caffe/caffe.mexa64+01234869
[ 13] 0x00007f82df2ce274 /home/unni/MTPMain/LEGS/caffe/matlab/caffe/caffe.mexa64+00213620
[ 14] 0x00007f82df2c8e8b /home/unni/MTPMain/LEGS/caffe/matlab/caffe/caffe.mexa64+00192139 mexFunction+00000374
[ 15] 0x00007f8398613cea /usr/local/MATLAB/R2015a/bin/glnxa64/libmex.so+00150762 mexRunMexFile+00000090
[ 16] 0x00007f8398610a74 /usr/local/MATLAB/R2015a/bin/glnxa64/libmex.so+00137844
[ 17] 0x00007f8398611684 /usr/local/MATLAB/R2015a/bin/glnxa64/libmex.so+00140932
[ 18] 0x00007f8397949aea /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_dispatcher.so+00813802 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000762
[ 19] 0x00007f8397949fb0 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_dispatcher.so+00815024 _ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+00000032
[ 20] 0x00007f8396d93784 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+06129540
[ 21] 0x00007f8396d95099 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+06135961
[ 22] 0x00007f8396d958cc /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+06138060
[ 23] 0x00007f8396c09fd3 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04517843
[ 24] 0x00007f8396c1769e /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04572830
[ 25] 0x00007f8396c17783 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04573059
[ 26] 0x00007f8396d4eb54 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+05847892
[ 27] 0x00007f8396b6b9b9 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03869113
[ 28] 0x00007f8396b71597 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03892631
[ 29] 0x00007f8396b6ccff /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03874047
[ 30] 0x00007f8396b6d934 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03877172
[ 31] 0x00007f8396be32ce /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04358862
[ 32] 0x00007f8397949aea /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_dispatcher.so+00813802 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000762
[ 33] 0x00007f8397949fb0 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_dispatcher.so+00815024 _ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+00000032
[ 34] 0x00007f8396d93784 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+06129540
[ 35] 0x00007f8396d95099 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+06135961
[ 36] 0x00007f8396d958cc /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+06138060
[ 37] 0x00007f8396c09fd3 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04517843
[ 38] 0x00007f8396c1769e /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04572830
[ 39] 0x00007f8396c17783 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04573059
[ 40] 0x00007f8396d4eb54 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+05847892
[ 41] 0x00007f8396b6d86a /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03876970
[ 42] 0x00007f8396be32ce /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04358862
[ 43] 0x00007f8397949aea /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_dispatcher.so+00813802 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000762
[ 44] 0x00007f8397949fb0 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_dispatcher.so+00815024 _ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+00000032
[ 45] 0x00007f8396bb9d20 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04189472
[ 46] 0x00007f8396b69432 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03859506
[ 47] 0x00007f8396b6b612 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03868178
[ 48] 0x00007f8396b71597 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03892631
[ 49] 0x00007f8396b6ccff /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03874047
[ 50] 0x00007f8396b6d934 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03877172
[ 51] 0x00007f8396be32ce /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04358862
[ 52] 0x00007f8397949aea /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_dispatcher.so+00813802 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000762
[ 53] 0x00007f8397949fb0 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_dispatcher.so+00815024 _ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+00000032
[ 54] 0x00007f8396bb9d20 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04189472
[ 55] 0x00007f8396b3a4b3 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03667123
[ 56] 0x00007f8396b6a6ee /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03864302
[ 57] 0x00007f8396b71597 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03892631
[ 58] 0x00007f8396b6ccff /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03874047
[ 59] 0x00007f8396b6d934 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03877172
[ 60] 0x00007f8396be32ce /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04358862
[ 61] 0x00007f8397949c39 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_dispatcher.so+00814137 _ZN8Mfh_file16dispatch_fh_implEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00001097
[ 62] 0x00007f8397949fb0 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_dispatcher.so+00815024 _ZN8Mfh_file11dispatch_fhEiPP11mxArray_tagiS2_+00000032
[ 63] 0x00007f8396ba2495 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+04093077
[ 64] 0x00007f8396b62fb9 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03833785
[ 65] 0x00007f8396b5f3f5 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03818485
[ 66] 0x00007f8396b5fad3 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwm_interpreter.so+03820243
[ 67] 0x00007f8398855b6c /usr/local/MATLAB/R2015a/bin/glnxa64/libmwbridge.so+00228204
[ 68] 0x00007f8398856751 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwbridge.so+00231249 _Z8mnParserv+00000737
[ 69] 0x00007f83a3f5a3af /usr/local/MATLAB/R2015a/bin/glnxa64/libmwmcr.so+00799663 _ZN11mcrInstance30mnParser_on_interpreter_threadEv+00000031
[ 70] 0x00007f83a3f3a133 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwmcr.so+00667955
[ 71] 0x00007f83a3f3bfd9 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwmcr.so+00675801 _ZN5boost6detail11task_objectIvNS_3_bi6bind_tIvPFvRKNS_8functionIFvvEEEENS2_5list1INS2_5valueIS6_EEEEEEE6do_runEv+00000025
[ 72] 0x00007f83a3f3c9a7 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwmcr.so+00678311 _ZN5boost6detail9task_baseIvE3runEv+00000071
[ 73] 0x00007f83a3f3ca07 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwmcr.so+00678407
[ 74] 0x00007f83a3f37d8a /usr/local/MATLAB/R2015a/bin/glnxa64/libmwmcr.so+00658826
[ 75] 0x00007f8395ef5a56 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwuix.so+00334422
[ 76] 0x00007f8395edd3a2 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwuix.so+00234402
[ 77] 0x00007f83a4728f1f /usr/local/MATLAB/R2015a/bin/glnxa64/libmwservices.so+02621215
[ 78] 0x00007f83a472908c /usr/local/MATLAB/R2015a/bin/glnxa64/libmwservices.so+02621580
[ 79] 0x00007f83a472abdf /usr/local/MATLAB/R2015a/bin/glnxa64/libmwservices.so+02628575
[ 80] 0x00007f83a472b61c /usr/local/MATLAB/R2015a/bin/glnxa64/libmwservices.so+02631196 _Z25svWS_ProcessPendingEventsiib+00000092
[ 81] 0x00007f83a3f38408 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwmcr.so+00660488
[ 82] 0x00007f83a3f38724 /usr/local/MATLAB/R2015a/bin/glnxa64/libmwmcr.so+00661284
[ 83] 0x00007f83a3f24b0d /usr/local/MATLAB/R2015a/bin/glnxa64/libmwmcr.so+00580365
[ 84] 0x00007f83a2dbd182 /lib/x86_64-linux-gnu/libpthread.so.0+00033154
[ 85] 0x00007f83a2aea47d /lib/x86_64-linux-gnu/libc.so.6+01025149 clone+00000109
[ 86] 0x0000000000000000 <unknown-module>+00000000
This error was detected while a MEX-file was running. If the MEX-file
is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files.
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.
Please help me resolve this issue.

  3 Comments

snowball
snowball on 10 May 2016
Current Graphics Driver: Unknown hardware
Please make sure your Graphics Driver has been appropriately installed.
shanghuan liu
shanghuan liu on 15 May 2019
hey,have you solved this problems? I meet the same question.
jiao wu
jiao wu on 14 Apr 2020
hey,have you solved this problems? I meet the same question.thanks

Sign in to comment.

Answers (2)

qiuqiuyiner
qiuqiuyiner on 20 Nov 2017
Hello,is your qustion solved?I met the same question when I execute net=caffe.net(net_model,net_weight,phase) and quit.If you have sovled this question,can you share with me?

  0 Comments

Sign in to comment.


Kaipeng
Kaipeng on 26 Dec 2017
Edited: Kaipeng on 26 Dec 2017
I think you should set caffe's run_mode before you init caffe, i.e.
% this should be first
caffe.set_device(0);
caffe.set_mode_gpu();
% Init caffe solver
caffe_solver = caffe.Solver(solver_def_file);
caffe_solver.net.copy_from(net_file);
% ^_^

  0 Comments

Sign in to comment.


Translated by