bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/29420] OutOfMemory in image handling


From: hendrich at informatik dot uni-hamburg dot de
Subject: [Bug awt/29420] OutOfMemory in image handling
Date: 6 Nov 2006 20:55:39 -0000


------- Comment #16 from hendrich at informatik dot uni-hamburg dot de  
2006-11-06 20:55 -------
Here is my attempt at a stacktrace. Running within gdb somehow makes the
application use somewhat less RSS memory, but it still crashed after
475 images:

gdb /opt/jamvm/bin/jamvm
run -Xmx300m niffler.Niffler <dirname>
[starting linear slideshow]
[slideshow interval 750 msec]
[thumbnails generation off, histogram off]
[normal image loading messages]
...
-I- getCairoBackedImage: took 7 msecs. for 488x749

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 442396 (LWP 18483)]
0x536d3173 in Java_gnu_java_awt_peer_gtk_CairoSurface_nativeGetPixels (
    env=0x806201c, obj=0x50620da8, bufferPointer=The value of variable
'bufferPo
inter' is distributed across several
locations, and GDB cannot access its value.

)
    at gnu_java_awt_peer_gtk_CairoSurface.c:138
138       memcpy (jpixdata, pixeldata, size * sizeof( jint ));

[ (gdb) thread 29 ]
(gdb) where
#0  0x536d3173 in Java_gnu_java_awt_peer_gtk_CairoSurface_nativeGetPixels (
    env=0x806201c, obj=0x50620da8, bufferPointer=The value of variable
'bufferPo
inter' is distributed across several
locations, and GDB cannot access its value.

)
    at gnu_java_awt_peer_gtk_CairoSurface.c:138
#1  0x0805eca2 in callJNIMethod (env=0x806201c, class=0x0, 
    sig=0x853d788 "(JI)[I", ret_type=4, ostack=0x8b34574, 
    f=0x536d30f0 "U\211å\203ì8\213E\020\213U\024\211]ôè\001þÿÿ\201ÃôB\002", 
    args=4) at dll_md.c:85
#2  0x0804f7a1 in callJNIWrapper (class=0x0, mb=0x8541780, ostack=0xfffefcff)
    at dll.c:322
#3  0x08052847 in executeJava () at interp.c:2229
#4  0x08050447 in executeMethodVaList (ob=Variable "ob" is not available.
) at execute.c:91
#5  0x080504e9 in executeMethodArgs (ob=0xfffefcff, class=0xfffefcff, 
    mb=0xfffefcff) at execute.c:63
#6  0x0805c441 in threadStart (arg=0x8b17d48) at thread.c:263
#7  0x40067c60 in pthread_start_thread () from /lib/libpthread.so.0
#8  0x40067cdf in pthread_start_thread_event () from /lib/libpthread.so.0
#9  0x40193b77 in clone () from /lib/libc.so.6




(gdb) thread 6
[Switching to thread 6 (Thread 65541 (LWP 18446))]#0  0x4006e576 in nanosleep
    () from /lib/libpthread.so.0
(gdb) where
#0  0x4006e576 in nanosleep () from /lib/libpthread.so.0
#1  0x00000001 in ?? ()
#2  0x4006a2b1 in __pthread_timedsuspend_new () from /lib/libpthread.so.0
#3  0x40066f33 in pthread_cond_timedwait_relative () from /lib/libpthread.so.0
#4  0x0805716b in monitorWait (mon=0x8063440, self=0x8075a20, ms=The value of
variable 'ms' is distributed across several
locations, and GDB cannot access its value.

)
    at lock.c:180
#5  0x0805b965 in threadSleep (thread=0x8075a20, ms=The value of variable 'ms'
is distributed across several
locations, and GDB cannot access its value.

) at thread.c:143
#6  0x0804b97d in asyncGCThreadLoop (self=0x8075a20) at alloc.c:1130
#7  0x0805bd20 in shell (args=0x8075768) at thread.c:470
#8  0x40067c60 in pthread_start_thread () from /lib/libpthread.so.0
#9  0x40067cdf in pthread_start_thread_event () from /lib/libpthread.so.0
#10 0x40193b77 in clone () from /lib/libc.so.6





(gdb) thread 10
[Switching to thread 10 (Thread 131081 (LWP 18451))]#0  0x4018b5e7 in poll ()
   from /lib/libc.so.6
(gdb) where
#0  0x4018b5e7 in poll () from /lib/libc.so.6
#1  0x53c309ac in g_main_context_iterate (context=0x8234678, block=1, 
    dispatch=1, self=0x851b7b0) at gmain.c:2867
#2  0x53c30e87 in IA__g_main_loop_run (loop=0x850a2c8) at gmain.c:2769
#3  0x53830411 in IA__gtk_main () at gtkmain.c:1003
#4  0x536e77bd in Java_gnu_java_awt_peer_gtk_GtkToolkit_gtkMain (
    env=0x806201c, obj=0x4050dc40) at gnu_java_awt_peer_gtk_GtkToolkit.c:338
#5  0x0805ecd5 in callJNIMethod (env=0x806201c, class=0x4050dc40, 
    sig=0x8089ce0 "()V", ret_type=0, ostack=0x850b72c, 
    f=0x536e7770 "U\211åSè\214·þÿ\201Ã\177ü", args=1) at dll_md.c:66
#6  0x0804f7a1 in callJNIWrapper (class=0x4050dc40, mb=0x81f0684, 
    ostack=0xfffffffc) at dll.c:322
#7  0x08052847 in executeJava () at interp.c:2229
#8  0x08050447 in executeMethodVaList (ob=Variable "ob" is not available.
) at execute.c:91
#9  0x080504e9 in executeMethodArgs (ob=0xfffffffc, class=0xfffffffc, 
    mb=0xfffffffc) at execute.c:63
#10 0x0805c441 in threadStart (arg=0x850b680) at thread.c:263
#11 0x40067c60 in pthread_start_thread () from /lib/libpthread.so.0
#12 0x40067cdf in pthread_start_thread_event () from /lib/libpthread.so.0
#13 0x40193b77 in clone () from /lib/libc.so.6

Hope that helps...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29420





reply via email to

[Prev in Thread] Current Thread [Next in Thread]