Bug 422583 - kwin_x11 crash on login
Summary: kwin_x11 crash on login
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.18.5
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-07 14:38 UTC by Lukas
Modified: 2021-11-09 12:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
journalctl output with backtrace (28.12 KB, text/plain)
2020-06-07 14:38 UTC, Lukas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas 2020-06-07 14:38:19 UTC
Created attachment 129124 [details]
journalctl output with backtrace

kwin sometimes crashes on login after a reboot. The plasma desktop stays black. I have 2 monitors, the secondary one stays completele blank. The main monitor shows some of the windows of programs that are auto-started. I have attached some info I could extract from the system journal including the backtrace of kwin's coredump and some info from kscreen.
Restarting the xserver using <Ctrl-Alt-Backspace> (sometimes, multiple restarts are necessary) eventually leaves me with a working desktop. This may be due to plasma/kwin disabling compositing.
In the compositor settings, the followin info is shown:
> OpenGL compositing (the default) has crashed KWin in the past.
> This was most likely due to a driver bug.
> If you think that you have meanwhile upgraded to a stable driver, you can reset this protection but be aware that this might result in an immediate crash!
> Alternatively, you might want to use the XRender backend instead.

Re-enabling OpenGL detection does not result in an immediate crash. It works just fine.

STEPS TO REPRODUCE
Not entirely sure. The crash does not happen on every reboot, but only after booting the system. When only logging out and in again, I could not reproduce the issue. 
No crashes happen when the compositor is disabled.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.6.15-arch1-1
OS Type: 64-bit
Processors: 12 × AMD Ryzen 5 2600X Six-Core Processor
Memory: 31,4 GiB
GPU: NVIDIA GTX970

ADDITIONAL INFORMATION
Compositor settings:
Scaling method: precise (note: german setting "Genau")
Rendering Engine: OpenGL 3.1
Noise Prevention (vsync): Automatic
Keep the window thumbnails: Only for visible windows
Allow applications to block the composition: no/false
Theme: Breeze

Possibly related: bug 418951
Comment 1 kde.org 2021-11-04 20:38:08 UTC
This bug report is quite old. Can you still reproduce this issue with KDE 5.23? If so, can you please install debugging packages following the info provided in  https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports, try to reproduce the bug and resubmit a backtrace with debugging information.
Comment 2 Lukas 2021-11-09 10:49:10 UTC
I can't reproduce the issue anymore. Feel free to close this report.
Comment 3 kde.org 2021-11-09 12:28:23 UTC
Thank you for your feedback!