FS#71298 - [mesa-21.1.2-1] Frequent system freezes in X.org (SysRq works)

Attached to Project: Arch Linux
Opened by Ville Aakko (Wild_Penguin) - Saturday, 19 June 2021, 13:21 GMT
Last edited by Toolybird (Toolybird) - Friday, 26 May 2023, 05:49 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Laurent Carlier (lordheavy)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

After upgrading mesa to 21.1.2-1, I get system freezes just by regular usage in X.org.

One sure way to get a freeze, is to open a new window (in addition to the first one) in Firefox (CTRL+N). Also starting a download will cause a hang, as the download dialog counts as a new window (if one has configured Firefox so that it asks the download location).

Downgrading to mesa-21.1.1-1 makes my system usable again.

I'm observing different kind of frequent instabilities on my other amdgpu system, which may or may not be related. However on the amdgpu system I can open new windows in Firefox - instabilities have to do with 3D acceleration (gaming).

Additional info:
* package version(s)
mesa-21.1.2-1
plasma-meta-5.22-1
xf86-video-nouveau-1.0.17-1
NVIDIA Corporation C79 [GeForce 9400M]

* config and/or log files etc.
When the freeze happens, I get this kind of lines in the journal:
kesä 19 15:51:05 VillesPortableAntergos kwin_x11[553]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 7744, resource id: 14680778, major code: 3 (GetWindowAttributes), minor code: 0
kesä 19 15:51:05 VillesPortableAntergos kwin_x11[553]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 7745, resource id: 14680778, major code: 14 (GetGeometry), minor code: 0

Not sure what is the relation of these messages to this bug.

* link to upstream bug report, if any

Possibly related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4866
https://gitlab.freedesktop.org/mesa/mesa/-/issues/4812

Steps to reproduce:
1) Upgrade to problematic version of mesa
2) Use a desktop environment (KDE Plasma) in X.org, observe freezes
2.1) one sureway to trigger a freeze is to open Firefox and press CTRL+N
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 26 May 2023, 05:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  This looks old and stale..so assuming fixed. If not, please report upstream.
Comment by Ville Aakko (Wild_Penguin) - Saturday, 19 June 2021, 13:23 GMT
About the log snippet: despite the system showing *Antergos in my hostname, the laptop is running plain Arch these days. It started on Antergos (hence the hostname) but is a plain Arch installation currently.
Comment by Ville Aakko (Wild_Penguin) - Tuesday, 17 August 2021, 10:59 GMT
I'm still having this problem with up to and including mesa-21.1.6. I've noticed that CTRL+ALT+F[2-X] also work, but with a very long delay.

Any suggestions I could do to help finding the actual cause and fixing this? I could try bisecting...
Comment by Moritz Bunkus (mbunkus) - Wednesday, 17 November 2021, 09:34 GMT
I seem to have run into these kinds of freezes today, too, after a full system upgrade, though in my case the working MESA version is a bit higher (21.2.3 works). I tried hard to downgrade MESA, but that went nowhere as I had to downgrade clang, LLVM, libffi, various others — that took too much time as this is my daily driver, and I have work to do. So I rolled back to before the upgrade.

Symptoms in my case are that each time Plasma tries to open an overlay window (e.g. a desktop notification, or the task bar's preview windows when clicking on a task bar icon) the desktop freezes. Other symptoms are that opening some of plasmas applications (e.g. the volume control or even the full-blown "system settings") yields a window whose decorations are drawn correctly, but whose content is never drawn — it remains a frozen image of what was beneath the newly created window. Funnily enough those programs to seem to be interactive, meaning I can actually interact with controls if I know where they are.

For me switching via Ctrl+Alt+F2 etc. shows the same very long delays that Ville mentioned.

I'm on Intel with modeswitching, not on NVidia.

Xorg.0.log doesn't show any errors or warnings.

Potentially relevant upgrades from pacman.log:

[0 mosu@velvet /subvolumes/snapshots/bad-update-20211117085340/var/log] rg '2021-11-16.*(xorg|xf86|mesa|qt5|plasma)' pacman.log
87686:[2021-11-16T18:22:14+0100] [ALPM] upgraded mesa (21.2.3-1 -> 21.2.5-1)
87698:[2021-11-16T18:22:14+0100] [ALPM] upgraded qt5-base (5.15.2+kde+r243-1 -> 5.15.2+kde+r256-1)
87716:[2021-11-16T18:22:15+0100] [ALPM] upgraded qt5-declarative (5.15.2+kde+r33-1 -> 5.15.2+kde+r40-1)
87717:[2021-11-16T18:22:15+0100] [ALPM] upgraded qt5-wayland (5.15.2+kde+r34-1 -> 5.15.2+kde+r36-1)
87727:[2021-11-16T18:22:15+0100] [ALPM] upgraded libdbusmenu-qt5 (0.9.3+16.04.20160218-5 -> 0.9.3+16.04.20160218-6)
87748:[2021-11-16T18:22:16+0100] [ALPM] upgraded qt5-webengine (5.15.6-2 -> 5.15.7-1)
87763:[2021-11-16T18:22:16+0100] [ALPM] upgraded qtkeychain-qt5 (0.12.0-1 -> 0.13.1-1)
87783:[2021-11-16T18:22:16+0100] [ALPM] upgraded plasma-framework (5.87.0-1 -> 5.88.0-1)
87820:[2021-11-16T18:22:22+0100] [ALPM] upgraded poppler-qt5 (21.10.0-1 -> 21.11.0-1)
87855:[2021-11-16T18:22:23+0100] [ALPM] upgraded python-pyqt5 (5.15.4-1 -> 5.15.6-2)
87856:[2021-11-16T18:22:23+0100] [ALPM] upgraded python-pyqt5-webengine (5.15.4-1 -> 5.15.5-1)
87862:[2021-11-16T18:22:24+0100] [ALPM] upgraded qt5-tools (5.15.2+kde+r17-3 -> 5.15.2+kde+r17-4)
87965:[2021-11-16T18:22:29+0100] [ALPM] upgraded qt5-script (5.15.6-1 -> 5.15.7-1)
87967:[2021-11-16T18:22:30+0100] [ALPM] installed avogadrolibs-qt5 (1.95.1-6)
88009:[2021-11-16T18:22:32+0100] [ALPM] upgraded plasma-integration (5.22.5-1 -> 5.23.3-1)
88013:[2021-11-16T18:22:33+0100] [ALPM] upgraded plasma-workspace (5.22.5-2 -> 5.23.3-1)
88014:[2021-11-16T18:22:33+0100] [ALPM] upgraded kdeplasma-addons (5.22.5-1 -> 5.23.3-1)
88093:[2021-11-16T18:22:35+0100] [ALPM] upgraded qt5-websockets (5.15.2-1 -> 5.15.2+kde+r4-1)
88120:[2021-11-16T18:22:37+0100] [ALPM] upgraded lib32-mesa (21.2.3-1 -> 21.2.5-1)
88167:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-browser-integration (5.22.5-1 -> 5.23.3-1)
88169:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-desktop (5.22.5-1 -> 5.23.3-1)
88170:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-disks (5.22.5-1 -> 5.23.3-1)
88171:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-firewall (5.22.5-1 -> 5.23.3-1)
88172:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-nm (5.22.5-1 -> 5.23.3-1)
88173:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-workspace-wallpapers (5.22.5-1 -> 5.23.3-1)
88174:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-pa (5.22.5-1 -> 5.23.3-1)
88175:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-sdk (5.22.5-1 -> 5.23.3-1)
88176:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-systemmonitor (5.22.5-1 -> 5.23.3-1)
88177:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-thunderbolt (5.22.5-1 -> 5.23.3-1)
88178:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-vault (5.22.5-1 -> 5.23.3-1)
88179:[2021-11-16T18:22:54+0100] [ALPM] upgraded xf86-input-libinput (1.2.0-1 -> 1.2.0-2)
88180:[2021-11-16T18:22:54+0100] [ALPM] upgraded xorg-server-common (1.20.13-2 -> 21.1.1-3)
88182:[2021-11-16T18:22:54+0100] [ALPM] upgraded xorg-server (1.20.13-2 -> 21.1.1-3)
88186:[2021-11-16T18:22:54+0100] [ALPM] upgraded plasma-meta (5.22-1 -> 5.23-1)
88205:[2021-11-16T18:22:56+0100] [ALPM] upgraded qt5-doc (5.15.2-1 -> 5.15.2-2)
88237:[2021-11-16T18:23:02+0100] [ALPM] upgraded xorg-server-xephyr (1.20.13-2 -> 21.1.1-3)

I know this is probably not all that enlightening — sorry for the lack of info.
Comment by Moritz Bunkus (mbunkus) - Wednesday, 17 November 2021, 09:36 GMT
Addendum: I also upgraded the kernel, which I forgot to include in the logs above:

88138:[2021-11-16T18:22:45+0100] [ALPM] upgraded linux-zen (5.14.12.zen1-1 -> 5.15.2.zen1-1)
88139:[2021-11-16T18:22:46+0100] [ALPM] upgraded linux-zen-headers (5.14.12.zen1-1 -> 5.15.2.zen1-1)

Loading...