After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 168966 - warnings on reparent with GtkMozEmbed
warnings on reparent with GtkMozEmbed
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.6.x
Other Linux
: High critical
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-03-02 13:35 UTC by Christian Persch
Modified: 2011-02-04 16:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase.c (895 bytes, patch)
2005-03-02 14:40 UTC, Christian Persch
none Details | Review

Description Christian Persch 2005-03-02 13:35:47 UTC
Steps to reproduce:
0) Tools->Page Info
1) Visit the Media tab
2) Close the dialogue

Warning on console:
(epiphany:16722): Gdk-CRITICAL **: gdk_window_get_children: assertion
`GDK_IS_WINDOW (window)' failed

  • #0 trap_handler
    at ../../lib/ephy-debug.c line 109
  • #1 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #2 g_log
    from /usr/lib/libglib-2.0.so.0
  • #3 g_return_if_fail_warning
    from /usr/lib/libglib-2.0.so.0
  • #4 IA__gdk_window_get_children
    at gdkwindow.c line 621
  • #5 gtk_widget_reparent_subwindows
    at gtkwidget.c line 3735
  • #6 IA__gtk_widget_reparent
    at gtkwidget.c line 3807
  • #7 EmbedPrivate::Unrealize
    from /opt/firefox-trunk/lib/firefox-1.0+/libgtkembedmoz.so
  • #8 gtk_moz_embed_unrealize
    from /opt/firefox-trunk/lib/firefox-1.0+/libgtkembedmoz.so

This is likely due to the fix for bug 167259. I'm going to look if this is due
to gtkmozembed doing something evil in unrealize, or if it's gtk+' fault.
Comment 1 Christian Persch 2005-03-02 14:39:03 UTC
Re-assigning to gtk+ and attaching testcase.

GtkMozEmbed is as GtkBin which reparents its child to an (offscreen) GtkFixed on
unrealize.
Comment 2 Christian Persch 2005-03-02 14:40:58 UTC
Created attachment 38153 [details] [review]
testcase.c

Compile with
gcc `pkg-config --libs --cflags gtk+-2.0 mozilla-gtkmozembed` -o test test.c
run with
LD_LIBRARY_PATH=`pkg-config --variable=libdir mozilla-gtkmozembed` ./test

Steps to reproduce:
0) Run the testcase
1) Click window border close button

Actual results:
(Gecko:19620): Gdk-CRITICAL **: gdk_window_get_children: assertion
`GDK_IS_WINDOW (window)' failed
Comment 3 Matthias Clasen 2005-03-03 06:41:00 UTC
2005-03-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_reparent_subwindows): 
	Avoid warnings if gtk_widget_reparent() is called at
	unusual times.  (#168966, Christian Persch)