Clear Filters
Clear Filters

URGENT... Matlab System::Fa​talExcepti​on!!!

4 views (last 30 days)
Tanya
Tanya on 19 May 2014
Answered: Malcolm Lidierth on 19 May 2014
Hi all,, I have SERIOUS problem with my Matlab. I m going to do classification by using SIFT featrues (vl_sift function from VLFEAT and LIBSVM library).
I have 2000 Images for training. But everytime I tried to extract the SIFT features from that 2000 images, I always get errors and matlab will force to be closed (Exit)..
And the wierd things is that, when I extract the SIFT features for 200 images, I didnt get any errors.
Then I tried to extract only for 500 images, but I still get that errors..
I had setup the mex by using
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2013a\sys\lcc
[2] Microsoft Visual C++ 2008 SP1 in C:\Program Files\Microsoft Visual Studio 9.0
[0] None
Compiler: 2
Before this problems appear, I was able to do feat extraction for 2000 images..
Here is the error mssgs:
------------------------------------------------------------------------
Segmentation violation detected at Mon May 19 15:55:25 2014
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Default Encoding : windows-1252
MATLAB Architecture: win32
MATLAB Root : C:\Program Files\MATLAB\R2013a
MATLAB Version : 8.1.0.604 (R2013a)
Operating System : Microsoft Windows 7
Processor ID : x86 Family 6 Model 37 Stepping 5, GenuineIntel
Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Window System : Version 6.1 (Build 7601: Service Pack 1)
Fault Count: 1
Abnormal termination:
Segmentation violation
Register State (from fault):
EAX = 00c2b3b0 EBX = 2816bbe0
ECX = 0000000c EDX = 024c06b0
ESP = 00c2b32c EBP = 00c2b484
ESI = 00000000 EDI = 00c2b3b0
EIP = 06525d31 EFL = 00210212
CS = 0000001b DS = 00000023 SS = 00000023
ES = 00000023 FS = 0000003b GS = 00000000
Stack Trace (from fault):
[ 0] 0x06525d31 E:\Master_Thesis_UB_TSR\vlfeat-0.9.18-bin_TSR\vlfeat-0.9.18\toolbox\mex\mexw32\vl.dll+00154929 vl_scalespace_get_geometry+00000017
[ 1] 0x064e2279 E:\Master_Thesis_UB_TSR\vlfeat-0.9.18-bin_TSR\vlfeat-0.9.18\toolbox\mex\mexw32\vl_covdet.mexw32+00008825 mexFunction+00002521
[ 2] 0x73dcdd4e C:\Program Files\MATLAB\R2013a\bin\win32\libmex.dll+00056654 mexRunMexFile+00000126
[ 3] 0x73dcc489 C:\Program Files\MATLAB\R2013a\bin\win32\libmex.dll+00050313 inSwapMexfileReader+00000201
[ 4] 0x73dcd5cd C:\Program Files\MATLAB\R2013a\bin\win32\libmex.dll+00054733 _constructor_lm_mexmaci64+00001885
[ 5] 0x7f63c939 C:\Program Files\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00051513 Mfh_file::dispatch_fh+00000505
[ 6] 0x7f63d139 C:\Program Files\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053561 Mfunction_handle::dispatch+00000745
[ 7] 0x7b995884 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00481412 inDestroyWS+00203364
[ 8] 0x7b997ae7 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00490215 inDestroyWS+00212167
[ 9] 0x7b9a9ce7 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00564455 inDestroyWS+00286407
[ 10] 0x7b9a9e02 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00564738 inDestroyWS+00286690
[ 11] 0x7b98ee57 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00454231 inDestroyWS+00176183
[ 12] 0x7b9944e8 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00476392 inDestroyWS+00198344
[ 13] 0x7b9a7abe C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00555710 inDestroyWS+00277662
[ 14] 0x7f63c939 C:\Program Files\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00051513 Mfh_file::dispatch_fh+00000505
[ 15] 0x7f63d139 C:\Program Files\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053561 Mfunction_handle::dispatch+00000745
[ 16] 0x7b9b5a57 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00612951 inDestroyWS+00334903
[ 17] 0x7b9a643d C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00549949 inDestroyWS+00271901
[ 18] 0x7b991192 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00463250 inDestroyWS+00185202
[ 19] 0x7bca5283 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+03691139 inCallFcnWithTrapInDesiredWS+00003719
[ 20] 0x7b9a2f89 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00536457 inDestroyWS+00258409
[ 21] 0x7b99a350 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00500560 inDestroyWS+00222512
[ 22] 0x7b98edbf C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00454079 inDestroyWS+00176031
[ 23] 0x7b9944e8 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00476392 inDestroyWS+00198344
[ 24] 0x7b9a7abe C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00555710 inDestroyWS+00277662
[ 25] 0x7f63c939 C:\Program Files\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00051513 Mfh_file::dispatch_fh+00000505
[ 26] 0x7f63d139 C:\Program Files\MATLAB\R2013a\bin\win32\m_dispatcher.dll+00053561 Mfunction_handle::dispatch+00000745
[ 27] 0x7b9ff80c C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00915468 inMainLoopIdle+00002572
[ 28] 0x7ba06b0f C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00944911 inInitializeParser+00005887
[ 29] 0x7ba0aa79 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00961145 MathWorks::MException::MExceptionEnvelope::Copy+00006953
[ 30] 0x7ba0aa55 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00961109 MathWorks::MException::MExceptionEnvelope::Copy+00006917
[ 31] 0x7ba0aa10 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00961040 MathWorks::MException::MExceptionEnvelope::Copy+00006848
[ 32] 0x7b9367ae C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00092078 inClearArraysInDesiredWS+00001854
[ 33] 0x7ba02c10 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00928784 inEvalCmdWithLocalReturn+00000224
[ 34] 0x7ba02bb9 C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00928697 inEvalCmdWithLocalReturn+00000137
[ 35] 0x7ba02b4e C:\Program Files\MATLAB\R2013a\bin\win32\m_interpreter.dll+00928590 inEvalCmdWithLocalReturn+00000030
[ 36] 0x7e1cba83 C:\Program Files\MATLAB\R2013a\bin\win32\libmwbridge.dll+00047747 mnDebugPrompt+00000163
[ 37] 0x7e1cc9ff C:\Program Files\MATLAB\R2013a\bin\win32\libmwbridge.dll+00051711 mnParser+00000799
[ 38] 0x7f29b273 C:\Program Files\MATLAB\R2013a\bin\win32\mcr.dll+00176755 mcrInstance::mnParser_on_interpreter_thread+00000051
[ 39] 0x7f28112a C:\Program Files\MATLAB\R2013a\bin\win32\mcr.dll+00069930 mcr::setInterpreterThreadToCurrent+00029274
[ 40] 0x7f2811e6 C:\Program Files\MATLAB\R2013a\bin\win32\mcr.dll+00070118 mcr::setInterpreterThreadToCurrent+00029462
[ 41] 0x03c62da9 C:\Program Files\MATLAB\R2013a\bin\win32\uiw.dll+00339369 UIW_IsUserMessage+00000121
[ 42] 0x03c63358 C:\Program Files\MATLAB\R2013a\bin\win32\uiw.dll+00340824 UIW_SetGLIMUserMsg+00000104
[ 43] 0x755a6d80 C:\Windows\system32\USER32.dll+00224640 SetWindowsHookExA+00000116
[ 44] 0x7557e1a9 C:\Windows\system32\USER32.dll+00057769 SystemParametersInfoW+00000271
[ 45] 0x7558248f C:\Windows\system32\USER32.dll+00074895 PtInRect+00000253
[ 46] 0x77a8702e C:\Windows\SYSTEM32\ntdll.dll+00290862 KiUserCallbackDispatcher+00000046
[ 47] 0x75582b1b C:\Windows\system32\USER32.dll+00076571 GetAncestor+00000126
[ 48] 0x03c4238d C:\Program Files\MATLAB\R2013a\bin\win32\uiw.dll+00205709 UIW_SetCurrentDialog+00000637
[ 49] 0x03c64504 C:\Program Files\MATLAB\R2013a\bin\win32\uiw.dll+00345348 ws_FreeSystemFont+00000452
[ 50] 0x023b3254 C:\Program Files\MATLAB\R2013a\bin\win32\libmwservices.dll+00864852 services::system_events::PpeDispatchHook::~PpeDispatchHook+00055668
[ 51] 0x023b3a6a C:\Program Files\MATLAB\R2013a\bin\win32\libmwservices.dll+00866922 services::system_events::PpeDispatchHook::~PpeDispatchHook+00057738
[ 52] 0x023b23ff C:\Program Files\MATLAB\R2013a\bin\win32\libmwservices.dll+00861183 services::system_events::PpeDispatchHook::~PpeDispatchHook+00051999
[ 53] 0x023b4724 C:\Program Files\MATLAB\R2013a\bin\win32\libmwservices.dll+00870180 services::system_events::PpeDispatchHook::~PpeDispatchHook+00060996
[ 54] 0x023bcb01 C:\Program Files\MATLAB\R2013a\bin\win32\libmwservices.dll+00903937 svWS_ProcessPendingEvents+00000897
[ 55] 0x023bcc92 C:\Program Files\MATLAB\R2013a\bin\win32\libmwservices.dll+00904338 svWS_ProcessPendingEvents+00000018
[ 56] 0x7f282053 C:\Program Files\MATLAB\R2013a\bin\win32\mcr.dll+00073811 mcr::setInterpreterThreadToCurrent+00033155
[ 57] 0x7f28230c C:\Program Files\MATLAB\R2013a\bin\win32\mcr.dll+00074508 mcr::setInterpreterThreadToCurrent+00033852
[ 58] 0x7f27655f C:\Program Files\MATLAB\R2013a\bin\win32\mcr.dll+00025951 mcrInstantiationError::operator=+00003647
[ 59] 0x7f2795fc C:\Program Files\MATLAB\R2013a\bin\win32\mcr.dll+00038396 mcr_invoke_on_interpreter_thread+00001772
[ 60] 0x004051a5 C:\Program Files\MATLAB\R2013a\bin\win32\MATLAB.exe+00020901
[ 61] 0x004057ee C:\Program Files\MATLAB\R2013a\bin\win32\MATLAB.exe+00022510
[ 62] 0x00405c1d C:\Program Files\MATLAB\R2013a\bin\win32\MATLAB.exe+00023581
[ 63] 0x766ded5c C:\Windows\system32\kernel32.dll+00322908 BaseThreadInitThunk+00000018
[ 64] 0x77aa37eb C:\Windows\SYSTEM32\ntdll.dll+00407531 RtlInitializeExceptionChain+00000239
[ 65] 0x77aa37be C:\Windows\SYSTEM32\ntdll.dll+00407486 RtlInitializeExceptionChain+00000194
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.** This crash report has been saved to disk as C:\Users\Farhana\AppData\Local\Temp\matlab_crash_dump.8180-1 **
Caught MathWorks::System::FatalException
[Please exit and restart MATLAB]>>
PLEASE HELP ME,,, ANY IDEA WHAT'S HAPPENING AND HOW TO SOLVE IT??
BTW, I have 3 partition in my windows 7 32 bits, with the free memory size
*C: 57.1 gb
D: 12.6 gb
E: 32.3 gb
My Matlab is 2013a
and Im using Microsoft Visual C++ 2008*

Answers (1)

Malcolm Lidierth
Malcolm Lidierth on 19 May 2014
MATLAB uses lazy memory allocation. That means that if your code accesses a memory area that it should not (e.g. by incrementing a pointer beyond an allocated array) you may or may not see a segmentation fault (and you will not always see it immediately). If you run your code on 200 images 1000 times in a loop - do you see the error after a variable number of iterations? If so, this may be the explanation.

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!