public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug AWT/16824] New: GdkPixbufDecoder crashes with image loading programs
@ 2004-07-29 21:02 mark at gcc dot gnu dot org
2004-08-02 19:10 ` [Bug AWT/16824] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-07-29 21:02 UTC (permalink / raw)
To: java-prs
I found a strange segfault issue in programs that try to load/display images
(GIF/JPEG).
Mark and I have located the segfault to occur in
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c Line 226. Here is
gdk_env used (which probably should be env instead). The real problem seems to
be, that GTKToolkit is not yet initialized properly.
The following workaround seems to work though:
--- gnu/java/awt/peer/gtk/GdkPixbufDecoder.java 26 Jun 2004 16:06:47 -0000 1.5
+++ gnu/java/awt/peer/gtk/GdkPixbufDecoder.java 28 Jun 2004 20:34:49 -0000
@@ -57,6 +57,8 @@
System.loadLibrary("gtkpeer");
}
initStaticState ();
+ java.awt.Toolkit.getDefaultToolkit();
+ try { Thread.sleep(500); } catch (InterruptedException ignored) { }
}
native static void initStaticState ();
private final int native_state = GtkGenericPeer.getUniqueInteger ();
this means, if we wait long enough for GTKToolkit to initialize, the segfault
does not occur.
Any ideas how to fix this? Maybe I should add that I tried that with JamVM 1.1.4
/Roman
This bug report comes from GNU Classpath:
https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=9484
--
Summary: GdkPixbufDecoder crashes with image loading programs
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: AWT
AssignedTo: fitzsim at redhat dot com
ReportedBy: mark at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16824
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug AWT/16824] GdkPixbufDecoder crashes with image loading programs
2004-07-29 21:02 [Bug AWT/16824] New: GdkPixbufDecoder crashes with image loading programs mark at gcc dot gnu dot org
@ 2004-08-02 19:10 ` pinskia at gcc dot gnu dot org
2005-08-21 5:35 ` [Bug awt/16824] " fitzsim at redhat dot com
2005-08-21 11:06 ` mark at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-02 19:10 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-08-02 19:10:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16824
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug awt/16824] GdkPixbufDecoder crashes with image loading programs
2004-07-29 21:02 [Bug AWT/16824] New: GdkPixbufDecoder crashes with image loading programs mark at gcc dot gnu dot org
2004-08-02 19:10 ` [Bug AWT/16824] " pinskia at gcc dot gnu dot org
@ 2005-08-21 5:35 ` fitzsim at redhat dot com
2005-08-21 11:06 ` mark at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: fitzsim at redhat dot com @ 2005-08-21 5:35 UTC (permalink / raw)
To: java-prs
------- Additional Comments From fitzsim at redhat dot com 2005-08-21 05:35 -------
Do you have an example program for this? I suspect this was fixed by Sven's
image work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16824
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug awt/16824] GdkPixbufDecoder crashes with image loading programs
2004-07-29 21:02 [Bug AWT/16824] New: GdkPixbufDecoder crashes with image loading programs mark at gcc dot gnu dot org
2004-08-02 19:10 ` [Bug AWT/16824] " pinskia at gcc dot gnu dot org
2005-08-21 5:35 ` [Bug awt/16824] " fitzsim at redhat dot com
@ 2005-08-21 11:06 ` mark at gcc dot gnu dot org
2 siblings, 0 replies; 5+ messages in thread
From: mark at gcc dot gnu dot org @ 2005-08-21 11:06 UTC (permalink / raw)
To: java-prs
------- 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug awt/16824] GdkPixbufDecoder crashes with image loading programs
[not found] <bug-16824-3639@http.gcc.gnu.org/bugzilla/>
@ 2005-10-16 1:48 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-16 1:48 UTC (permalink / raw)
To: java-prs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |0.18
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16824
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-10-16 1:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-29 21:02 [Bug AWT/16824] New: GdkPixbufDecoder crashes with image loading programs mark at gcc dot gnu dot org
2004-08-02 19:10 ` [Bug AWT/16824] " pinskia at gcc dot gnu dot org
2005-08-21 5:35 ` [Bug awt/16824] " fitzsim at redhat dot com
2005-08-21 11:06 ` mark at gcc dot gnu dot org
[not found] <bug-16824-3639@http.gcc.gnu.org/bugzilla/>
2005-10-16 1:48 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).