Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4130

GTK3 prints errors when window is reduced to minimum height.

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.0.0
    • gtk3
    • Normal
    • sst_desktop
    • ssg_desktop
    • 10
    • False
    • Hide

      None

      Show
      None
    • DESKTOP Cycle #1 10.beta phase, DESKTOP Cycle #3 10.beta phase, DESKTOP Cycle #2 10.beta phase
    • If docs needed, set a value

      Description of problem:

      Shrink the window to its minimum Height, observe multiple GTK errors on standard error:
      (TextScrollbarErrors:23242): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

      Follow up to bug
      https://bugzilla.redhat.com/show_bug.cgi?id=1873488
      Seems to be fixed through patch

      https://gitlab.gnome.org/GNOME/gtk/-/commit/25879ea37e8918a28187dd382e7704051a38f011#bfe7eff23cee77815e1073464071c3f535b7e6f1

      But issue is still seen if window is shrinked to minimum height.
      logs are filled if error is triggeredd once.

      Version-Release number of selected component (if applicable):

      RHEL RHEL 9 with GTK3 version:
      gtk3-3.24.31-2.el9.x86_64
      Dark Breeze theme

      How reproducible:
      Always

      Steps to Reproduce:

      1. g++ -g text_scrollbar_errors.cpp pkg-config --cflags --libs gtk+-3.0 -o TextScrollbarErrors && GTK_OVERLAY_SCROLLING=0 ./TextScrollbarErrors
      2. Shrink the window to minimum height.

      Actual results:
      (TextScrollbarErrors:23242): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

      Expected results:
      No errors
      Additional info:

      Eclipse uses a custom widget 'Swt-Fixed', I believe in some cases widgets are created "very small" and then they are expanded to window size or comparable size. Though its not uncommon to have a view that has the same height as the the scrollbar slider, at least for our theme (since the minimum scrollbar slider height is about 3 rows of text, reducing the height of a view with a text editor to about 5 rows of text already causes the issue).

            mclasen@redhat.com Matthias Clasen
            rhn-support-pbhoot Piyush Bhoot
            Matthias Clasen Matthias Clasen
            Desktop QE Desktop QE
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: