Bug 429970 - Crash when enabling compositing after GL context loss
Summary: Crash when enabling compositing after GL context loss
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: scene-opengl (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-03 14:01 UTC by Gabriel Souza Franco
Modified: 2024-02-21 14:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.