This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug AWT/16764] New: gtk assertion failures in kaffe's WidgetsDemo
- From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jul 2004 00:39:15 -0000
- Subject: [Bug AWT/16764] New: gtk assertion failures in kaffe's WidgetsDemo
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
>From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2)
Gecko/20040301
Description of problem:
These assertion failures are printed when WidgetsDemo is run:
(:17604): Gtk-CRITICAL **: file gtkwidget.c: line 4561
(gtk_widget_modify_fg): assertion `GTK_IS_WIDGET (widget)' failed
(:17604): Gtk-CRITICAL **: file gtkwidget.c: line 4561
(gtk_widget_modify_fg): assertion `GTK_IS_WIDGET (widget)' failed
(:17604): Gtk-CRITICAL **: file gtkwidget.c: line 4561
(gtk_widget_modify_fg): assertion `GTK_IS_WIDGET (widget)' failed
(:17604): Gtk-CRITICAL **: file gtkwidget.c: line 5581
(gtk_widget_set_size_request): assertion `width >= -1' failed
(:17604): Gtk-CRITICAL **: file gtkwidget.c: line 5582
(gtk_widget_set_size_request): assertion `height >= -1' failed
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1.run WidgetDemo
Additional info:
------- Additional Comments From fitzsim at redhat dot com 2004-05-26 17:42 -------
The gtk_widget_modify_fg assertion failures are caused when trying to
set the Choice's foreground color. I'm adding a dependency on the
Choice upgrade bug.
------- Additional Comments From fitzsim at redhat dot com 2004-05-26 18:19 -------
The size assertion failures are caused by the window not being big
enough when it is first shown. I'm adding a dependency for this.
------- Additional Comments From fitzsim at redhat dot com 2004-05-26 22:50 -------
The colour assertion failures were caused by find_fg_color_widget not
handling GtkOptionMenus properly.
The size assertion failures also occurred when the window was resized
to less than its natural size request. Then
GtkComponentPeer.setNativeBounds was being called with negative
values. I solved this by clamping width and height values there to >= 0.
Removing dependency on GtkChoicePeer update and closing.
--
Summary: gtk assertion failures in kaffe's WidgetsDemo
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P1
Component: AWT
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fitzsim at redhat dot com
CC: fitzsim at redhat dot com,gcc-bugs at gcc dot gnu dot
org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16764