Graphical issues for GtKGL in software rendering

Bug #1960947 reported by Sebastien Bacher
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gtk+3.0 (Ubuntu)
Fix Released
High
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

* Issue

GTK applications using GL graphic show corruption problems under software rendering

* Test case

1. install gtk-3-examples
2. $ LIBGL_ALWAYS_SOFTWARE=1 gtk3-demo
3. select the gl example, it should render without issues

* Regression potentiel

The change is in the GL backend so check for rendering issues in GTK softwares using GL, including flutter applications

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue has been fixed in GTK since 20.10

Changed in gtk+3.0 (Ubuntu):
status: New → Fix Released
importance: Undecided → High
Revision history for this message
Robie Basak (racb) wrote : Please test proposed package

Hello Sebastien, or anyone else affected,

Accepted gtk+3.0 into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gtk+3.0/3.24.20-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in gtk+3.0 (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
J-P Nurmi (jpnurmi) wrote :

Hi all. The conditions for reproducing the issue: CSD + OpenGL + swrast.

Notice that the GTK GL example doesn't use CSD i.e. it doesn't set a custom GtkWindow titlebar. I have attached a small test case that reproduces the issue.

Revision history for this message
J-P Nurmi (jpnurmi) wrote :

I can confirm that libgtk-3-0 3.24.20-0ubuntu1.1 from focal-proposed fixes the rendering issue.

I have tested with:

1) the attached minimal test case:

gcc -o testcase testcase.c `pkg-config --cflags --libs gtk+-3.0`
./testcase

2) a full-blown flutter app:

snap install --classic flutter
flutter config --enable-linux-desktop
flutter create test_app
cd test_app
flutter run

tags: added: verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (gtk+3.0/3.24.20-0ubuntu1.1)

All autopkgtests for the newly accepted gtk+3.0 (3.24.20-0ubuntu1.1) for focal have finished running.
The following regressions have been reported in tests triggered by the package:

aptdaemon/1.1.1+bzr982-0ubuntu32.3 (arm64)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/focal/update_excuses.html#gtk+3.0

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Sebastien Bacher (seb128) wrote :

The aptdaemon autopkgtest is flaky which isnt due to this update so that should be ignored

Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for gtk+3.0 has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk+3.0 - 3.24.20-0ubuntu1.1

---------------
gtk+3.0 (3.24.20-0ubuntu1.1) focal; urgency=medium

  * debian/patches/git_rendering_issues.patch:
    - cherry pick an upstream fix for opengl display issues when using
      software rendering (lp: #1960947)
  * debian/patches/git_newglib_symbols.patch:
    - backport patch to fix the build with the current libglib version

 -- Sebastien Bacher <email address hidden> Tue, 15 Feb 2022 18:50:52 +0100

Changed in gtk+3.0 (Ubuntu Focal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.