Bug 23503 - error when displaying empty window with bound larger than the displayed content
Summary: error when displaying empty window with bound larger than the displayed content
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: swing (show other bugs)
Version: 0.17
: P2 normal
Target Milestone: 0.20
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-20 22:21 UTC by Johan Mattsson
Modified: 2006-03-13 09:04 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Mattsson 2005-08-20 22:21:43 UTC
gij (GNU libgcj) version 4.0.2 20050816 (prerelease) (Debian 4.0.1-5)

on debian/cid this code:
javax.swing.JFrame gg = new javax.swing.JFrame();
gg.setBounds(200, 200, 200, 200);
gg.setVisible(true);

gives me:
** ERROR **: file
../../../src/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: line 572
(createRawData): assertion failed: (data_fid != 0)
aborting...
Comment 1 Johan Mattsson 2005-08-20 22:33:32 UTC
however this does not give an error:

javax.swing.JFrame gg = new javax.swing.JFrame();
gg.setBounds(10, 10, 10, 10);
gg.setVisible(true);
Comment 2 Thomas Fitzsimmons 2005-08-21 00:38:23 UTC
I can't reproduce this on GNU Classpath CVS HEAD.  Closing.
Comment 3 Patrick Brauch 2005-11-09 09:00:25 UTC
Shredder9 produces this error as well:

$ java -jar LinShredder.jar 

** ERROR **: file ../../../src/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: line 572 (createRawData): assertion failed: (data_fid != 0)
aborting...
Aborted
Comment 4 Newton 2006-02-25 23:51:25 UTC
(In reply to comment #0)
> gij (GNU libgcj) version 4.0.2 20050816 (prerelease) (Debian 4.0.1-5)
> 
> on debian/cid this code:
> javax.swing.JFrame gg = new javax.swing.JFrame();
> gg.setBounds(200, 200, 200, 200);
> gg.setVisible(true);
> 
> gives me:
> ** ERROR **: file
> ../../../src/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: line 572
> (createRawData): assertion failed: (data_fid != 0)
> aborting...

*** This bug isn't resolved a receive that in Debian Sid

newton@204127:~/trackeditor$ java Install

(.:13230): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
InstallMagic Installer, Copyright (c) 2003 Aswath Ayyala.


** ERROR **: file ../../../src/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: line 572 (createRawData): assertion failed: (data_fid != 0)
aborting...
Aborted
newton@204127:~/trackeditor$           

*** Someone can help me? It's has a workaround?
Comment 5 José Lecaros 2006-03-11 18:31:48 UTC
(In reply to comment #4)
> (In reply to comment #0)
> > gij (GNU libgcj) version 4.0.2 20050816 (prerelease) (Debian 4.0.1-5)
> > 
> > on debian/cid this code:
> > javax.swing.JFrame gg = new javax.swing.JFrame();
> > gg.setBounds(200, 200, 200, 200);
> > gg.setVisible(true);
> > 
> > gives me:
> > ** ERROR **: file
> > ../../../src/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: line 572
> > (createRawData): assertion failed: (data_fid != 0)
> > aborting...
> 
> *** This bug isn't resolved a receive that in Debian Sid
> 
> newton@204127:~/trackeditor$ java Install
> 
> (.:13230): Gtk-WARNING **: Locale not supported by C library.
>         Using the fallback 'C' locale.
> InstallMagic Installer, Copyright (c) 2003 Aswath Ayyala.
> 
> 
> ** ERROR **: file
> ../../../src/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c: line 572
> (createRawData): assertion failed: (data_fid != 0)
> aborting...
> Aborted
> newton@204127:~/trackeditor$           
> 
> *** Someone can help me? It's has a workaround?
> 

I have the same error message, but trying to run MT504(Mozilla Translator).
I installed the libgcj6-awt library to run .jar file of MT http://ftp.mozilla.org/pub/mozilla.org/l10n-kits/mt504.zip
I have Ubuntu Breezy correctly upgraded.

any idea?

Comment 6 Mark Wielaard 2006-03-13 09:04:08 UTC
(In reply to comment #5)
> I have the same error message, but trying to run MT504(Mozilla Translator).
> I installed the libgcj6-awt library to run .jar file of MT
> http://ftp.mozilla.org/pub/mozilla.org/l10n-kits/mt504.zip
> I have Ubuntu Breezy correctly upgraded.
> 
> any idea?

You need at least libgcj 4.1 installed. But only with the latest development version (4.2 from subversion with integrated GNU Classpath 0.90) does Mozilla Translator actually work (a bit). This would be a good program to get working fully. Could you open a new bug report for this program?