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 482841 - critical warnings on gdk_display_close after _gtk_tooltip_handle_event
critical warnings on gdk_display_close after _gtk_tooltip_handle_event
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.12.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-10-03 06:02 UTC by Karl Tomlinson
Modified: 2007-10-08 12:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
correct gtk_tooltip_display_closed and connect to display "closed" signal (1.86 KB, patch)
2007-10-03 06:04 UTC, Karl Tomlinson
committed Details | Review
test program (1.06 KB, text/plain)
2007-10-03 06:06 UTC, Karl Tomlinson
  Details

Description Karl Tomlinson 2007-10-03 06:02:33 UTC
Please describe the problem:
The problem seems to be that gtk_tooltip_finalize is run too late in the gdk_display_close process and gtk_widget_get_display on tooltip->window fails.


Steps to reproduce:
1. hover the mouse over the window (runs _gtk_tooltip_handle_event)
2. gtk_main_quit
3. gdk_display_close


Actual results:
Several warnings are emitted.  The first of which are:

(a.out:30780): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed

(a.out:30780): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(a.out:30780): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(a.out:30780): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

The rest are similar.

Expected results:
No warnings.

Does this happen every time?
Yes.

Other information:
Comment 1 Karl Tomlinson 2007-10-03 06:04:43 UTC
Created attachment 96555 [details] [review]
correct gtk_tooltip_display_closed and connect to display "closed" signal
Comment 2 Karl Tomlinson 2007-10-03 06:06:14 UTC
Created attachment 96556 [details]
test program
Comment 3 Matthias Clasen 2007-10-04 04:54:53 UTC
Patch looks correct to me. Kris ?
Comment 4 Kristian Rietveld 2007-10-08 12:40:13 UTC
Committed r18890.