[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bugs #9484] JamVM/Classpath crashes with image loading prog
From: |
Mark Wielaard |
Subject: |
[commit-cp] [bugs #9484] JamVM/Classpath crashes with image loading programs |
Date: |
Thu, 29 Jul 2004 17:06:58 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Galeon/1.3.15 (Debian package 1.3.15-2) |
This mail is an automated notification from the bugs tracker
of the project: classpath.
/**************************************************************************/
[bugs #9484] Latest Modifications:
Changes by:
Mark Wielaard <address@hidden>
'Date:
Thu 07/29/04 at 21:03 (Europe/Amsterdam)
------------------ Additional Follow-up Comments ----------------------------
This bug is now also tracked in GCC AWT bugzilla as
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16824
/**************************************************************************/
[bugs #9484] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9484>
Project: classpath
Submitted by: Roman Kennke
On: Mon 06/28/04 at 20:49
Category: None
Severity: 5 - Average
Resolution: None
Assigned to: None
Status: Open
Platform Version: None
Summary: JamVM/Classpath crashes with image loading programs
Original Submission: 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
Follow-up Comments
------------------
-------------------------------------------------------
Date: Thu 07/29/04 at 21:03 By: mark
This bug is now also tracked in GCC AWT bugzilla as
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16824
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9484>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] [bugs #9484] JamVM/Classpath crashes with image loading programs,
Mark Wielaard <=