[Bug awt/16824] GdkPixbufDecoder crashes with image loading programs

mark at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Aug 21 11:06:00 GMT 2005


------- Additional Comments From mark at gcc dot gnu dot org  2005-08-21 11:06 -------
It showed up as random crashes in some mauve tests.
Such as gnu.testlet.java.awt.image.PixelGrabber.SimpleGrabber

Fixed by:

2004-08-08  Mark Wielaard  <mark@klomp.org>

        * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c:
        #include gdk.h, not gtk.h. #include jni.h, native_state.h, string.h
        and stdlib.h, not gtkpeer.h.
        (*vm): New static variable.
        (areaPreparedID): Make static.
        (areaUpdatedID): Likewise.
        (area_prepared): Get and use JNIEnv through stored JavaVM *vm.
        (area_prepared): Likewise.
        (area_updated): Likewise.
        (closed): Likewise.
        (initStaticState): Initialize *vm javaVM.
        (pumpBytes): Use given env, not global gdk_env.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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



More information about the Java-prs mailing list