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 616851 - Gtk-CRITICAL **: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed
Gtk-CRITICAL **: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.20.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-04-26 14:28 UTC by Hernando Torque
Modified: 2010-05-06 01:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
backtrace of minimal_example (3.10 KB, text/plain)
2010-04-26 14:29 UTC, Hernando Torque
  Details
full backtrace of minimal_example (5.80 KB, text/plain)
2010-04-26 14:30 UTC, Hernando Torque
  Details
minimal_example.c (250 bytes, text/plain)
2010-04-26 14:32 UTC, Hernando Torque
  Details
Only a GtkMisc widget should be passed to gtk_tool_button_new() (1.29 KB, patch)
2010-04-26 18:08 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review
8 unique backtraces from starting Inkscape (38.46 KB, text/plain)
2010-04-26 19:58 UTC, Hernando Torque
  Details

Description Hernando Torque 2010-04-26 14:28:30 UTC
Getting those warnings when starting Yelp and Inkscape (which spams a lot of them). I took a look at Yelp's code and created a minimal example that triggers the warning. Source and backtrace attached.

Sorry if this is rather a problem with those applications than GTK.
Comment 1 Hernando Torque 2010-04-26 14:29:52 UTC
Created attachment 159602 [details]
backtrace of minimal_example
Comment 2 Hernando Torque 2010-04-26 14:30:28 UTC
Created attachment 159603 [details]
full backtrace of minimal_example
Comment 3 Hernando Torque 2010-04-26 14:32:25 UTC
Created attachment 159605 [details]
minimal_example.c
Comment 4 Javier Jardón (IRC: jjardon) 2010-04-26 18:08:59 UTC
Created attachment 159627 [details] [review]
Only a GtkMisc widget should be passed to gtk_tool_button_new()

gtktoolbutton code assumes that the GtkWidget passed to  gtk_tool_button_new() is a GtkMisc object.
Comment 5 Javier Jardón (IRC: jjardon) 2010-04-26 18:26:45 UTC
Comment on attachment 159627 [details] [review]
Only a GtkMisc widget should be passed to gtk_tool_button_new()

commit b8ec73a52fe3dc3012db78f45bfcafa2cb3e14ae
Comment 6 Javier Jardón (IRC: jjardon) 2010-04-26 18:27:18 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release.

Thanks Hernando for your detailed bug report.
Comment 7 Javier Jardón (IRC: jjardon) 2010-04-26 18:30:36 UTC
Also, committed to the stable 2.20 brach in commit 500b9dfe3adf996bf1c758a09358f72f5ff384ba
Comment 8 Hernando Torque 2010-04-26 19:15:11 UTC
Thanks for your quick response!

I'm afraid my report wasn't detailed enough. Just checked Inkscape backtraces (there are 284 of those warnings until the main window comes up) and they don't use gtk_tool_button_new(). Some use gtk_tool_button_set_icon_widget(). I'll try to dig through all backtraces and attach the unique ones.
Comment 9 Hernando Torque 2010-04-26 19:58:57 UTC
Created attachment 159638 [details]
8 unique backtraces from starting Inkscape
Comment 10 Javier Jardón (IRC: jjardon) 2010-04-27 02:32:46 UTC
Reopening for latest comments
Comment 11 Javier Jardón (IRC: jjardon) 2010-05-06 01:47:51 UTC
This commit should fix this issue:

http://git.gnome.org/browse/gtk+/commit/?id=ba3e997daea267b100988ecd7c6d0767c334dfbc

Thanks Hernando for your bug report.