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 705527 - GtkPaned: critical message in _gtk_widget_get_preferred_size_for_size
GtkPaned: critical message in _gtk_widget_get_preferred_size_for_size
Status: RESOLVED DUPLICATE of bug 705624
Product: gtk+
Classification: Platform
Component: Widget: Other
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-08-05 17:10 UTC by Sébastien Wilmet
Modified: 2013-09-12 11:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2013-08-05 17:10:30 UTC
When running devhelp, we can see critical messages:

> Gtk-CRITICAL **: _gtk_widget_get_preferred_size_for_size: assertion 'size >= -1' failed

The problem comes from GtkPaned, in the gtk_paned_get_preferred_size_for_opposite_orientation() function. The for_child2 variable must be >= -1, but it can have a lower value:

> for_child2 = size - for_child1 - handle_size;

It can maybe be fixed simply as:

> for_child2 = MAX (-1, size - for_child1 - handle_size);

Here is the backtrace when running devhelp with G_DEBUG=all:

  • #0 g_logv
    at gmessages.c line 989
  • #1 g_log
    at gmessages.c line 1025
  • #2 g_return_if_fail_warning
    at gmessages.c line 1034
  • #3 _gtk_widget_get_preferred_size_for_size
    at gtksizerequest.c line 864
  • #4 gtk_paned_get_preferred_size_for_opposite_orientation
    at gtkpaned.c line 1025
  • #5 gtk_paned_get_preferred_size
    at gtkpaned.c line 1049
  • #6 gtk_paned_get_preferred_height_for_width
    at gtkpaned.c line 1083
  • #7 gtk_widget_query_size_for_orientation
    at gtksizerequest.c line 245
  • #8 gtk_widget_compute_size_for_orientation
    at gtksizerequest.c line 390
  • #9 gtk_widget_get_preferred_height_for_width
    at gtksizerequest.c line 599
  • #10 gtk_box_compute_size_for_orientation
    at gtkbox.c line 1465
  • #11 gtk_box_get_preferred_height_and_baseline_for_width
    at gtkbox.c line 1542
  • #12 gtk_widget_query_size_for_orientation
    at gtksizerequest.c line 241
  • #13 gtk_widget_compute_size_for_orientation
    at gtksizerequest.c line 390
  • #14 gtk_widget_get_preferred_height_for_width
    at gtksizerequest.c line 599
  • #15 gtk_window_get_preferred_height_for_width
  • #16 gtk_widget_query_size_for_orientation
    at gtksizerequest.c line 245
  • #17 gtk_widget_compute_size_for_orientation
    at gtksizerequest.c line 390
  • #18 gtk_widget_get_preferred_height_and_baseline_for_width
    at gtksizerequest.c line 640
  • #19 _gtk_widget_get_preferred_size_and_baseline
    at gtksizerequest.c line 688
  • #20 gtk_widget_get_preferred_size
    at gtksizerequest.c line 748
  • #21 gtk_window_compute_hints
    at gtkwindow.c line 8767
  • #22 gtk_window_compute_configure_request
  • #23 gtk_window_show
    at gtkwindow.c line 5322
  • #24 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 85
  • #25 g_type_class_meta_marshal
    at gclosure.c line 970
  • #26 g_closure_invoke
    at gclosure.c line 777
  • #27 signal_emit_unlocked_R
    at gsignal.c line 3512
  • #28 g_signal_emit_valist
    at gsignal.c line 3326
  • #29 g_signal_emit
    at gsignal.c line 3382
  • #30 gtk_widget_show
    at gtkwidget.c line 4327
  • #31 ??
  • #32 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 85
  • #33 g_closure_invoke
    at gclosure.c line 777
  • #34 signal_emit_unlocked_R
    at gsignal.c line 3582
  • #35 g_signal_emit_valist
    at gsignal.c line 3326
  • #36 g_signal_emit
    at gsignal.c line 3382
  • #37 g_application_activate
    at gapplication.c line 1414
  • #38 g_application_real_local_command_line
    at gapplication.c line 499
  • #39 g_application_run
    at gapplication.c line 1585
  • #40 ??
  • #41 __libc_start_main
    at libc-start.c line 260
  • #42 ??
  • #43 ??
  • #44 ??

Comment 1 Sébastien Wilmet 2013-09-12 11:44:27 UTC
Seems to be fixed.

*** This bug has been marked as a duplicate of bug 705624 ***