Summary: | kwin_wayland crashes on login with ASSERT: "m_pending.crtc" in file ./src/backends/drm/drm_pipeline.cpp, line 53 | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | John Schroeder <jschroed> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | VERIFIED FIXED | ||
Severity: | crash | CC: | info+kde, kde, malinowski7629, nate, voxelprismatic, xaver.hugl |
Priority: | NOR | ||
Version: | 6.3.2 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/e652bdd3118fa55563caf0125deb0999f5ebd503 | Version Fixed In: | 6.3.3 |
Sentry Crash Report: | |||
Attachments: |
~/.config/kwinoutputconfig.json
Output of drm_info list of packages that were upgraded before the issue started output of drm-info kwinoutputconfig.json output of journalctl -b -1 -p3 drm_info for HP Zbook 15u G5 |
Description
John Schroeder
2025-02-27 03:50:48 UTC
Please attach ~/.config/kwinoutputconfig.json and the output of drm_info Created attachment 178947 [details]
~/.config/kwinoutputconfig.json
Created attachment 178949 [details]
Output of drm_info
This is the thing that's supposed to be fixed in 6.3.2.1, right? Glad I'm not alone here. I thought I broke something after forcing everything onto my GPU with `DRI_PRIME=1` I also see the m_pending.crtc line: $ kwin_wayland No backend specified, automatically choosing drm Accepting client connections on sockets: QList("wayland-0") could not create a component for "klip.desktop" could not create a component for "proton-pass.desktop" could not create a component for "unixtime.desktop" kwin_core: Applying output config failed! ASSERT: "m_pending.crtc" in file ./src/backends/drm/drm_pipeline.cpp, line 53 KCrash: Application 'kwin_wayland' crashing... crashRecursionCounter = 2 > This is the thing that's supposed to be fixed in 6.3.2.1, right?
Maybe, but it isn't fixed for me. I have kwin version `4:6.3.2.1-0zneon+24.04+noble+release+build31` on KDE Neon 6.3. No amount of reinstalling resolved it.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7254 And for the sake of reproduction, here are my specs: Software OS KDE Neon 6.3 KDE Plasma Version 6.3.2 KDE Frameworks Version 6.11.0 Kernel Version 6.11.0-17-generic (64-bit) Hardware Processors 8x Intel i7-8550U @ 1.80GHz Memory 30.6 GiB of RAM Graphics Processor 1 Intel UHD Graphics 620 (integrated) Graphics Processor 2 AMD Radeon Pro WX 3100 (discrete) Manufacturer HP Product Name HP Zbook 15u G5 System Version SBKPF Serial Number 5CG9093Z1Y (I'm not alone in using an eight year old laptop! Guess I can hold off on upgrading for another year or two!) I'm seeing the same issue but with a twist: I have 2 screens connected: my main screen is using DP, second is on HDMI. After upgrading my packages today I'm no longer able to use wayland if my second screen is connected (login loop). Workaround is hopping to a terminal, logging in and using X11 to able to use the second screen. (so hardware is oke) I've provided drm_info, a list of the updated packages this morning and kwinoutputconfig.json. Created attachment 179086 [details]
list of packages that were upgraded before the issue started
list of packages that were upgraded before the issue started
Created attachment 179087 [details]
output of drm-info
Created attachment 179088 [details]
kwinoutputconfig.json
Created attachment 179089 [details]
output of journalctl -b -1 -p3
Git commit e652bdd3118fa55563caf0125deb0999f5ebd503 by Xaver Hugl. Committed on 03/03/2025 at 20:33. Pushed by zamundaaa into branch 'Plasma/6.3'. backends/drm: fix testing for more connectors than CRTCs The connectors may not actually be enabled, so the checks could sometimes result in wrongly returning Error::NotEnoughCrtcs. Related: bug 500819 (cherry picked from commit aa11d89a90bc4eb77bfe191a2cadede4d957d2a9) M +7 -7 src/backends/drm/drm_gpu.cpp https://invent.kde.org/plasma/kwin/-/commit/e652bdd3118fa55563caf0125deb0999f5ebd503 (In reply to Aleks from comment #9) > I'm seeing the same issue but with a twist: I have 2 screens connected: my > main screen is using DP, second is on HDMI. > After upgrading my packages today I'm no longer able to use wayland if my > second screen is connected (login loop). Workaround is hopping to a > terminal, logging in and using X11 to able to use the second screen. (so > hardware is oke) > I've provided drm_info, a list of the updated packages this morning and > kwinoutputconfig.json. The problem doesn't appear on some fixed number of screens, but it happens when you use the maximum number of displays the GPU is able to drive - in your case, that's two (only two CRTCs in the drm_info output). With that, I'm quite confident that the commit fixes it. Please test it, and reopen if necessary. *** Bug 500957 has been marked as a duplicate of this bug. *** *** Bug 501204 has been marked as a duplicate of this bug. *** I received the update in my Tumbleweed release and it indeed works again, thanks @Zamundaaa > but it happens when you use the maximum number of displays the GPU is able to drive
Curious, my drm-info says I have the following connectors:
0. eDP (Laptop display)
1. DisplayPort
2. HDMI-A
3. DisplayPort
4. HDMI-A
5. DisplayPort
6. DisplayPort
And three CRTCs. I am only using two of the four available DisplayPorts, along with the Laptop display, does that mean I'm using all available displays? If that's the case, why is my system reporting four DisplayPort connectors if one of them is utterly useless?
Created attachment 179265 [details]
drm_info for HP Zbook 15u G5
(In reply to Daniel Petrov from comment #19) > And three CRTCs. I am only using two of the four available DisplayPorts, > along with the Laptop display, does that mean I'm using all available > displays? Yes. > If that's the case, why is my system reporting four DisplayPort > connectors if one of them is utterly useless? Not sure, sometimes drivers do weird things. Theoretically (we don't support this) with display cloning a crtc could send the exact same image to multiple displays at once, might be for that. Verified fixed in KDE Neon Testing repo with version 6.3.3. I am able to login to the Wayland session using the maximum number of monitors (3 external monitors for the machine that was used when reporting the issue). Package: kwin-wayland Version: 4:6.3.3.1+p24.04+vstable+git20250312.1708-0 This probably isn't the right place for this comment but it would be nice to get some kind of test (if one hasn't been added already) for this scenario where the maximum number of monitors is used with a Wayland session. |