An unexpected exception has been detected in native code outside the VM



Hi everybody:

I was using the image processing toolbox for visualizing some database
images, each one a time. Suddenly, MATLAB was closed itself and a log
file 'hs_err_pid312.log' was generated. My matlab function looks like:

for m=1:60
for n=1:8
close all;
path = sprintf('../fpDb/%s/%s/', fvc, dbname);
strfile = [path num2str(m) num2str(n)];
im = double(imread([strfile '.bmp'],'bmp'));
xc = arrLoc(i,2);
yc = arrLoc(i,3);
figure; imagesc(im); colormap gray; axis image; grid on;
hold on; plot(yc,xc,'ro');
disp(sprintf('%d%d => [%d %d]', m, n, xc, yc));
i = i + 1;
pause;
end
end

Does anybody has an idea why it happened? or what can I do to avoid
this error? The log file looks sth. like this:

An unexpected exception has been detected in native code outside the
VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred
at PC=0x783023CF
Function=Java_sun_awt_windows_WColor_getDefaultColor+0x2E0D
Library=C:\MATLAB7\sys\java\jre\win32\jre1.4.2\bin\awt.dll

Current Java thread:
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Heap at VM Abort:
Heap
def new generation total 4352K, used 2137K [0x1ffa0000, 0x20450000,
0x208c0000)
eden space 3904K, 43% used [0x1ffa0000, 0x20146758, 0x20370000)
from space 448K, 100% used [0x20370000, 0x203e0000, 0x203e0000)
to space 448K, 0% used [0x203e0000, 0x203e0000, 0x20450000)
tenured generation total 28144K, used 17968K [0x208c0000,
0x2243c000, 0x23fa0000)
the space 28144K, 63% used [0x208c0000, 0x21a4c188, 0x21a4c200,
0x2243c000)
compacting perm gen total 16384K, used 16140K [0x23fa0000,
0x24fa0000, 0x27fa0000)
the space 16384K, 98% used [0x23fa0000, 0x24f63038, 0x24f63200,
0x24fa0000)


I'm using an intel core 2 duo processor (T5600, 1.86GHz), RAM:2GB,
Operating system=Windows XP sp2.

Suggestions are always welcome ;-)

Javier

--
=================================================
Javier A. Montoya Zegarra - http://www.lis.ic.unicamp.br/~jmontoya
Institute of Computing, State University of Campinas, SP - Brazil
=================================================

.



Relevant Pages

  • Spatial Image Calibration, Image Processing Toolbox
    ... I'm rather new to Matlab and the Image Processing Toolbox and I`m ... rotation and cropping them? ... image and thus defining a vector. ...
    (comp.soft-sys.matlab)
  • Re: Image Types in Matlab
    ... Most MATLAB and Image Processing Toolbox routines make no particular assumptions about data ranges. ... Image Processing Toolbox routines have supported single precision, double precision, and all the common integer types since 2001, and MATLAB arithmetic has supported single precision and the integer types for a couple of years now. ...
    (sci.image.processing)
  • Re: Attempt to execute script radon as a function
    ... I am a novice Matlab user. ... processing job and am facing a curious problem. ... Radon function which is a part of image processing toolbox. ...
    (comp.soft-sys.matlab)
  • Re: matlabs qtdecomp with custom function.
    ... Your questions seem to have more to do with getting start in MATLAB than with image processing, so you might have more luck asking for help in comp.soft-sys.matlab. ... The Image Processing Toolbox documentation does assume some familiarity with MATLAB. ...
    (sci.image.processing)
  • error with surf function
    ... i have a problem with the surf function. ... When i execute it, i can ... When load Matlab again i can see a log file which has ... An unexpected exception has been detected in native code outside the ...
    (comp.soft-sys.matlab)

Loading