Bug 2175266

Summary: GTK3 prints errors when window is reduced to minimum height.
Product: Red Hat Enterprise Linux 9 Reporter: Piyush Bhoot <pbhoot>
Component: gtk3Assignee: Matthias Clasen <mclasen>
Status: CLOSED MIGRATED QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.0CC: otte, sbarcomb
Target Milestone: rcKeywords: MigratedToJIRA
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-15 17:32:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
reproducer to test on Dark Breeze theme none

Description Piyush Bhoot 2023-03-03 17:50:39 UTC
Created attachment 1947740 [details]
reproducer to test on Dark Breeze theme

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).

Comment 1 RHEL Program Management 2023-09-15 17:30:23 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 2 RHEL Program Management 2023-09-15 17:32:00 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.