FS#76019 - [mesa] 22.2.0-1 rendering breakage

Attached to Project: Arch Linux
Opened by Hanabishi (Hanabishi) - Monday, 26 September 2022, 12:11 GMT
Last edited by Toolybird (Toolybird) - Friday, 05 May 2023, 20:39 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Laurent Carlier (lordheavy)
Felix Yan (felixonmars)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 20
Private No

Details

Description:
testing/mesa 22.2.0-1 issues the rendering breakage for me. GPU is AMD Radeon RX 580.

KDE kwin (X11) struggle to render windows, disabling the compositor helps.
But other apps which use GPU rendering also suffer, e.g. Alacritty can't render text, Chromium just crashes at startup.
More interesting that Firefox works totally fine, because of custom WebRender I guess.
So I suspect this may be OpenGL breakage.

Downgrading to 22.1 solves teh issue.
Unfortunately there are no any errors or suspicious entries in the journal.

I trying to investigate which configs/setups/tweaks can affect the issue, but nothing seems to work by now.
Please suggest what else I can try and which debug output can be helpful.

Additional info:
* package version(s):
mesa 22.2.0-1
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 05 May 2023, 20:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed since this commit: https://github.com/archlinux/svntogit-pa ckages/commit/d4916e35375eead09fdceb6505 b4229022309660
Comment by Hanabishi (Hanabishi) - Monday, 26 September 2022, 13:17 GMT
Similar report appeared in upstream: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7352
Comment by Celeste (Coelacanthus) - Monday, 26 September 2022, 13:29 GMT
Same issue here, it seems most Qt app happened, some characters disappear (i.e. not render and left space).
With AMD Renoir/Cezanne iGPU,
in KDE Plasma 5.25.90 (a.k.a. 5.26 beta) Waylan
Downgrading to 22.1.7 workaround the problem.
Comment by Frederic Bezies (fredbezies) - Monday, 26 September 2022, 13:30 GMT
Seeing this breakage with Gnome too. Downgrading mesa was the fix I had to apply.
Comment by Alex (BS86) - Monday, 26 September 2022, 13:44 GMT
just to add, Navi (OpenGL: renderer: AMD Radeon RX 6750 XT (navy_flounder)) is also affected with KDE X11 (wayland untested)
Comment by Siegfried Metz (NiceGuy) - Monday, 26 September 2022, 14:00 GMT
The stability issues / concerns have already been mentioned at phoronix [1] on Sept. 20th. It seems that mesa-22.2.0 is a bit rushed. The official release notes warn, although included in every major new mesa release, that one should wait for the minor point release, which means 22.2.1.

In case more issues arrive, it would be a good time to consider downgrading if officially. That's up to the maintainer of course, I just wanted to point out, that 22.2.0 is a bit special, because there was no more update in about a month in the 22.2 branch after rc3 and then out of a sudden a stable release. This was also discussed on the mesa mailing list [2].

So, just a heads up, there might even be more issues.


[1]: https://www.phoronix.com/news/Mesa-22.2-Released
[2]: https://lists.freedesktop.org/archives/mesa-dev/2022-September/225849.html
Comment by Mika Attila (solvedsnake) - Monday, 26 September 2022, 14:45 GMT
Just to add more data, I'm also getting rendering glitches on a RX 580. Reverting to extra/multilib mesa fixes the issues.
Comment by George Rawlinson (rawlinsong) - Tuesday, 27 September 2022, 02:56 GMT
I can confirm that testing/mesa 22.2.0 is a bit munted.

Downgrading to 22.1.7 resolves all graphical issues.
Comment by Magnus Boman (katt) - Tuesday, 27 September 2022, 08:27 GMT
Vega 56 user here, downgrading was a must since KDE (Wayland) was very much broken with 22.2.0.
Comment by Sefa Eyeoglu (Scrumplex) - Tuesday, 27 September 2022, 10:47 GMT
It seems like disabling LTO for mesa fixes these issues. This bug was reported a few weeks ago upstream: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6911


So setting

options=('debug' '!lto')

and adding

-D b_lto=false \

to the arch-meson call to disable LTO could be a temporary fix.
Comment by Abdullah Al-Hasani (abdukabda) - Tuesday, 27 September 2022, 12:45 GMT
Having the same issue on GNOME wayland running an RX 570, my GNOME shell and GNOME apps are almost entirely borked but other applications are running just fine.
Comment by Alex (BS86) - Tuesday, 27 September 2022, 16:14 GMT
I can confirm that the changes suggested by @scrumplex regarding lto lead to a working mesa 22.2 on my Navi GPU. Typing this while running a self-built non-lto mesa 22.2 based on the official PKGBUILD with only the 2 lto changes made.

If that can be a viable workaround for the packages is up to the maintainers to decide.
Comment by Matthew T. Hoare (Head_on_a_Stick) - Tuesday, 27 September 2022, 16:33 GMT
+1 under sway with a Ryzen 7 5850U/Cezanne. Foot (terminal) & Steam badly b0rked.
Comment by David Rubio Escares (Kodehawa) - Tuesday, 27 September 2022, 19:33 GMT
+1 under KDE. Everything is very borked, including the desktop environment itself and the rendering on VMs using virgl using an RX 480.
Comment by Curtis (foxcm2000) - Wednesday, 28 September 2022, 01:23 GMT
Running KDE on Wayland [not X11] with mesa 22.2 and AMD graphics (Radeon RX 6700) and I'm having the same bugs.
Comment by Andreas Radke (AndyRTR) - Wednesday, 28 September 2022, 15:20 GMT
I've disabled lto for a temporary fix in 22.2.0-2.
Comment by David Roth (V1del) - Wednesday, 28 September 2022, 15:35 GMT
The upstream bug report mentions that one can disable the d3d12 gallium driver as well, which might be a preferable approach?
Comment by Frederic Bezies (fredbezies) - Thursday, 06 October 2022, 15:32 GMT
No problem for me with version 22.2.0-2 using my Ryzen3 2200G GPU by default.
Comment by Rich (rlees85) - Monday, 17 October 2022, 20:29 GMT
Weirdly, Gnome (Wayland) seems fine for me on 22.2.1 however some games do not. StarCraft 2 in particular just flashes black and then insta-quits. 5700XT and rolling back to 22.1.7 fixes it.
Comment by Michael (michimussato) - Friday, 04 November 2022, 00:20 GMT
Hello. After upgrading mesa from 22.1.7-1 to 22.2.1-1, Houdini crashes. Downgrading back to 22.1.7-1 restores functionality.

Houdini crash report indicates mesa problems:


> [michael@pocket3 ~] $ cat /tmp/houdini_temp/crash.HFTNAII_START_v002_023_freestyle_010.michael_7016_log.txt
Crash report from michael; Houdini FX Version 19.5.303 [linux-x86_64-gcc9.3]
Uptime 92 seconds
Fri Nov 4 00:59:11 2022
Caught signal 6

Traceback from 7016 ThreadId=0x7f9774714ec0
AP_Interface::coreDumpChaser(UTsignalHandlerArg) <libHoudiniUI.so>
AP_Interface::si_CrashHandler::chaser(UTsignalHandlerArg) <libHoudiniUI.so>
signalCallback(UTsignalHandlerArg) <libHoudiniUT.so>
UT_Signal::UT_ComboSignalHandler::operator()(int, siginfo_t*, void*) const <libHoudiniUT.so>
UT_Signal::processSignal(int, siginfo_t*, void*) <libHoudiniUT.so>
__sigaction <libc.so.6>
pthread_key_delete <libc.so.6>
raise <libc.so.6>
abort <libc.so.6>
[0x98c1f] <iris_dri.so>
nouveau_drm_screen_create <iris_dri.so>
__driDriverGetExtensions_d3d12 <iris_dri.so>
__driDriverGetExtensions_d3d12 <iris_dri.so>
glPrimitiveBoundingBox <libGLX_mesa.so.0>
glAreTexturesResidentEXT <libGLX_mesa.so.0>
glIsTextureEXT <libGLX_mesa.so.0>
qt_plugin_instance <libqxcb-glx-integration.so>
QOpenGLContext::swapBuffers(QSurface*) <libQt5Gui.so.5>
RE_Server::GLSwapBuffers(RE_Window*) <libHoudiniUI.so>
UI_Window::swapBuffers() <libHoudiniUI.so>
UI_Window::doRedrawSubclass() <libHoudiniUI.so>
dm_ViewLayoutWindow::doRedrawSubclass() <libHoudiniAPPS3.so>
UI_Window::doRedraw() <libHoudiniUI.so>
UI_Queue::doWindowRedraws() <libHoudiniUI.so>
UI_Queue::processNextEvent() <libHoudiniUI.so>
UI_Queue::drain() <libHoudiniUI.so>
UI_Queue::eventLoop() <libHoudiniUI.so>
main <libHoudiniUI.so>
__libc_init_first <libc.so.6>
__libc_start_main <libc.so.6>
main <houdini-bin>
Comment by Rich (rlees85) - Tuesday, 08 November 2022, 12:36 GMT
22.2.2 fixes it for me!
Comment by Alex (BS86) - Thursday, 24 November 2022, 10:53 GMT
just a heads up @lordheavy @felixonmars @AndyRTR
I compiled mesa-22.3.0-rc4 against staging with lto re-enabled. The original issue of rendering breakage still happens. lto disabled and the issue does not appear. Seems like this needs to stay for longer.
Comment by David Heidelberg (okias) - Tuesday, 10 January 2023, 21:13 GMT
Hello! Thanks for testing Mesa3D with LTO; could you build some latest git (or at least 22.3.x) and try to find the smallest test on which it fails together with backtrace (with debug symbols)? I recently enabled LTO build testing in our CI, but it doesn't show any issue.
Comment by Alex (BS86) - Wednesday, 11 January 2023, 17:00 GMT
22.3.2 is still affected, even when build against llvm/clang 15.0.6 on staging.

I am not skilled enough to develop/look for tests or backtraces. I usually build the mesa-packages with modifying the PKGBUILD from the Arch repo, install the packages and reboot, if the issue still appears my DE looks like in the attached screenshot (distorted taskbar and missing/broken fonts) in which case I reinstall the packages without LTO and reboot again.

I don't have time to compile the git package at the moment, will report back when I had time.
Comment by Hanabishi (Hanabishi) - Wednesday, 11 January 2023, 18:11 GMT
I don't see the issue on mesa 22.3.2 compiled with LTO enabled. As well as with latest mesa-git.
Comment by Alex (BS86) - Thursday, 12 January 2023, 17:50 GMT
I found some time, mesa 22.3.3 against staging with LTO is still affected.

mesa-git with LTO is fixed at least when built against staging.
Comment by Alex (BS86) - Thursday, 23 February 2023, 16:43 GMT
@lordheavy @felixonmars @AndyRTR

I have compiled and used mesa23 since mesa23-rc2 with LTO reenabled, and have now used the PKGBUILD from testing with the 2 lines changed to reenable LTO and rebuild it for my systems: No rendering breakage occured, and no other issues appeared.

At least for what I can test, I'd say it's now safe to reenable LTO again.

Loading...