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

GTK3 prints errors when window is reduced to minimum height.

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.7
    • rhel-9.0.0
    • gtk3
    • gtk3-3.24.31-7.el9
    • None
    • Moderate
    • 7
    • rhel-display-desktop-foundation
    • ssg_display
    • 12
    • 18
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • DESKTOP Cycle #1 10.beta phase, DESKTOP Cycle #3 10.beta phase, DESKTOP Cycle #4 10.beta phase, DESKTOP Cycle #5 10.beta phase, DESKTOP Cycle #2 10.beta phase, Display - Sprint 3/2025, Display - Sprint 4/2025
    • If docs needed, set a value
    • None
    • 57,005

      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
              Radek Duda Radek Duda
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: