Bug 446779

Summary: Random OpenGL freeze causes KWin to disable compositing
Product: [Plasma] kwin Reporter: Samuel Bernardo <samuelbernardo.mail>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: me, nate, p.r.worrall, sheedy
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Journal boot logs until KWin crash

Description Samuel Bernardo 2021-12-10 12:12:22 UTC
Created attachment 144429 [details]
Journal boot logs until KWin crash

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Sometimes at boot kwin_x11 throws "Freeze in OpenGL initialization detected"
and disables compositing (with OpenGL x.y compositing enabled in
systemsettings). This happens apparently in a random fashion. I am using the
default user configuration files in /home. I put the journalctl log in the
attachment. This error never happened to me before, but I can't recall which
change triggered the error. I recently updated Plasma, though. Clicking
"Re-enable OpenGL compositing" in systemsettings and relaunching kwin
effectively re-enables compositing.


STEPS TO REPRODUCE
1. Enable OpenGL (whatever version) compositing under System Settings > Composer
2. Restart
3. Launch a Plasma X11 session in sddm

OBSERVED RESULT

No compositing, sometimes kwin_x11 doesn't even start remaining a blank screen.

EXPECTED RESULT
Compositing working

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.10.76 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION

Processors: Intel Core i7-6850k
Memory: 128GB
Graphics Processor: Nvidia GeForce GTX1060 6GB
Nvidia Drivers: 495.44
Comment 1 Paul Worrall 2021-12-10 13:03:29 UTC
Reassigning to product KWin (product bugs.kde.org is for bugs with the bug tracker itself)
Comment 2 Iyán Méndez Veiga 2021-12-10 17:00:26 UTC
I can confirm this issue with a GTX 1070. This only happens with the latest "new feature branch" nvidia driver (495.44). With the current "production branch" version (470.86), it never fails.
Comment 3 Iyán Méndez Veiga 2021-12-10 17:01:27 UTC
Here are the details of my system:

Operating System: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.6-arch2-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2
Comment 4 Iyán Méndez Veiga 2022-02-02 10:49:48 UTC
I don't have this issue anymore with latest nvidia driver (510.47.03) and Plasma 5.23.90.
Comment 5 Nate Graham 2022-04-06 19:11:49 UTC
See Bug 452344.
Comment 6 Nate Graham 2022-04-06 19:12:38 UTC

*** This bug has been marked as a duplicate of bug 452344 ***