libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: line 572 (createRawData): assertion failed: (data_fid != 0)
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://
will result in the following error:
** ERROR **: file ../../.
(createRawData): assertion failed: (data_fid != 0)
aborting...
This is with gcj-4.0.1-4ubuntu4.
I saw that Ubuntu apply the patch "classpath-
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)-
+ data_fid = (*env)->GetFieldID (env, cls, "pixmap",
+ "Lgnu/classpath
+ 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() { }
}
Please see Debian Bug#324502: libgcj6-awt: [GtkImage] assertion failed in
compiled code
Seems to be the same bug.