Bug 399302 - Random OpenGL freeze causes KWin to disable compositing
Summary: Random OpenGL freeze causes KWin to disable compositing
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.13.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-02 09:10 UTC by davide.nicoli95
Modified: 2023-09-06 10:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
"journalctl -p 2 -b" output (15.58 KB, text/plain)
2018-10-02 09:10 UTC, davide.nicoli95
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davide.nicoli95 2018-10-02 09:10:59 UTC
Created attachment 115362 [details]
"journalctl -p 2 -b" output

SUMMARY
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.

EXPECTED RESULT
Compositing working

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.13.5
KDE Frameworks Version: 5.50.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
I am using up-to-date Arch Linux, kernel version 4.18.10-arch1-1-ARCH, 64 bit, xorg intel drivers version 2.99.917 and mesa 18.2.1-1
Comment 1 tildearrow 2021-08-12 01:12:01 UTC
Just reproduced this today. Seems like it is a 5% chance, and requires an HDD or slow storage medium to increase probability of reproduction.

It could be that the compositor indeed freezes because everything else is loading at the same time and it strains the disk that it causes KWin to issue a false-positive and disable compositing...
Comment 2 David Edmundson 2023-09-06 10:38:50 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.