Invalid memory access of location 00000000 rip=807f6b39
Posted by arnim.jenett on Nov 18, 2008; 11:39pm
URL: http://imagej.273.s1.nabble.com/Invalid-memory-access-of-location-00000000-rip-807f6b39-tp3694487.html
Hi,
I lately switched from ij1.38x to ij1.41o and from a 32bit a 64bit mac (MacOsx 10.5.4, java version "1.6.0_07", 32GB RAM).
Now I encounter frequent crashes when repetitively loading list of about 20 images (1024x1024, jpg) and arranging them on the screen using the code below:
for ([members of list]) {
open([member]);
DEFINE_NEXT_POSITION_AND_NUMBER(6);
}
function DEFINE_NEXT_POSITION_AND_NUMBER() {
wait(1);
if (nImages > 0) {
previousImage=getTitle();
selectWindow(previousImage);
getLocationAndSize(x, y, width, height);
numberOfImagesInX=floor(screenWidth/width)-1;
numberOfImagesInY=floor(screenHeight/height);
posX=x+width;
posY=y;
remX=(nImages)%numberOfImagesInX;
remY=(nImages)%numberOfImagesInY;
if (remX==0) {
posX=0;
posY=y+height;
}
}
}
I am starting ImageJ from a terminal using:
relPath=[predefined];
java -d64 -Xms2000M -Xmx24260m -Dj3d.noOffScreen=true -Dplugins.dir=$relPath/ImageJ/ -jar $relPath/ImageJ/ij41o.jar
Always I get:
"Invalid memory access of location 00000000 rip=807f6b39"
after a crash as feedback in the terminal.
The console gives me tons of more or less useless information. Here an except of the most informative ones:
Java Threads: ( => current thread )
0x00000001019f1000 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=310382592, stack(0x0000000712701000,0x0000000712801000)]
0x0000000101a0f000 JavaThread "Run$_GMR Data Loader [f2]_Macro$" [_thread_in_native, id=211308544, stack(0x000000070c885000,0x000000070c985000)]
0x0000000101801000 JavaThread "DestroyJavaVM" [_thread_blocked, id=4198400, stack(0x0000000100301000,0x0000000100401000)]
0x00000001018ee000 JavaThread "SocketListener" [_thread_in_native, id=311443456, stack(0x0000000712804000,0x0000000712904000)]
=>0x00000001018b4000 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=266342400, stack(0x000000070fd01000,0x000000070fe01000)]
0x0000000101896000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=241205248, stack(0x000000070e508000,0x000000070e608000)]
0x0000000101878000 JavaThread "AWT-Shutdown" [_thread_blocked, id=209887232, stack(0x000000070c72a000,0x000000070c82a000)]
0x0000000101877800 JavaThread "AWT-AppKit" daemon [_thread_in_native, id=1880026560, stack(0x00007fff5f400000,0x00007fff5fc00000)]
0x0000000101844800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=-66678784, stack(0x00000006fbf69000,0x00000006fc069000)]
0x0000000101843000 JavaThread "CompilerThread1" daemon [_thread_blocked, id=-67739648, stack(0x00000006fbe66000,0x00000006fbf66000)]
0x0000000101841800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=-68800512, stack(0x00000006fbd63000,0x00000006fbe63000)]
0x0000000101841000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=-69861376, stack(0x00000006fbc60000,0x00000006fbd60000)]
0x0000000101829800 JavaThread "Finalizer" daemon [_thread_blocked, id=-71016448, stack(0x00000006fbb46000,0x00000006fbc46000)]
0x0000000101828800 JavaThread "Reference Handler" daemon [_thread_blocked, id=-72101888, stack(0x00000006fba3d000,0x00000006fbb3d000)]
conclusion: something with thie window handeling gets completely wrong. Can I do something, to avoid this crash?
BTW: the same behavior I encaounter using Fiji(Dresden).
Thanks in advance,
aRnim