libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: line 572 (createRawData): assertion failed: (data_fid != 0)

Bug #20182 reported by sbodo
6
Affects Status Importance Assigned to Milestone
gcj-4.0 (Ubuntu)
Fix Released
Medium
Matthias Klose

Bug Description

Compiling to native and running some java demo code found on the site http://jroller.com/page/gfx
will result in the following error:

** ERROR **: file ../../../src/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: line 572
(createRawData): assertion failed: (data_fid != 0)
aborting...

This is with gcj-4.0.1-4ubuntu4.

I saw that Ubuntu apply the patch "classpath-20050618.dpatch" to the gcj code which has the
createRawData function:

+/* Store and get the pixbuf pointer */
+static void
+createRawData (JNIEnv * env, jobject obj, void *ptr)
+{
+ jclass cls;
+ jmethodID method;
+ jobject data;
+ jfieldID data_fid;
+
+ cls = (*env)->GetObjectClass (env, obj);
+ data_fid = (*env)->GetFieldID (env, cls, "pixmap",
+ "Lgnu/classpath/RawData;");
+ g_assert (data_fid != 0);

^^^^ this seems to trigger the bug

gnu.gcj.Rawdata does not looks like it would have a "pixmap" field (at least at a first glance - im
not familiar with the code) :

/** A type used to indicate special data used by native code that should not
    be marked by the garbage collector. */

public final class RawData
{
   private RawData() { }
}

Revision history for this message
sbodo (sbodomerle) wrote :

Please see Debian Bug#324502: libgcj6-awt: [GtkImage] assertion failed in
compiled code
Seems to be the same bug.

Revision history for this message
sbodo (sbodomerle) wrote :

(In reply to comment #1)
> Please see Debian Bug#324502: libgcj6-awt: [GtkImage] assertion failed in
> compiled code
> Seems to be the same bug.

The bug is still present in the latest debian gcj version:

gcc version 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)

Revision history for this message
Matthias Klose (doko) wrote :

fixing in gcj-4.1

Revision history for this message
Matthias Klose (doko) wrote :

fixing in gcj-4.1, closing the report

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.