Bug 429970

Summary: Crash when enabling compositing after GL context loss
Product: [Plasma] kwin Reporter: Gabriel Souza Franco <gabrielfrancosouza>
Component: scene-openglAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Gabriel Souza Franco 2020-12-03 14:01:51 UTC
SUMMARY
On the nvidia binary driver, some events cause the GL context to become invalid.
KWin already handles this case when the context loss happens while compositing is enabled. However, if compositing is paused for some reason (full-screen media player, games, etc.) it won't recover from the GL error.

STEPS TO REPRODUCE
1. Stop compositing
2. Switch VTs and back
3. Start compositing

OBSERVED RESULT
KWin crashes and compositing has to be manually re-enabled in settings.

EXPECTED RESULT
Compositing starts as usual.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.20.4 / git master
KDE Frameworks Version: 5.76
Qt Version: 5.15.2
Comment 1 David Edmundson 2024-02-21 14:22:06 UTC
This is now outdated and kwin and the nvidia driver have both changed meantime. Please reopen if there is still an issue.