Summary: | kded5 crashes in KWin::EffectQuickView::EffectQuickView | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Heiko Becker <heiko.becker> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | nate, sokann, XA_Hydra |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=443142 | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/65675140ff61e8a6ec5b7ab78c772084ce243484 | Version Fixed In: | 5.23 |
Sentry Crash Report: |
Description
Heiko Becker
2021-08-26 19:36:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1448 *** Bug 442809 has been marked as a duplicate of this bug. *** Git commit 1b215e6c063f5bad18a09e247d2f18fade7dfdc8 by Vlad Zahorodnii. Committed on 23/09/2021 at 06:28. Pushed by vladz into branch 'master'. libkwineffects: Avoid accessing effects in EffectQuickView EffectQuickView is used by Aurorae. As long as Aurorae decorations are rendered by kwin, it's not a problem. However, kde-gtk-config kded module can also render them. This creates a problem. If effects object is not created, accessing any of its getters or setters will result in a segmentation fault. This change rewrites the share context check so the effects object is not accessed anymore. One could argue that kde-gtk-config has to provide a dummy EffectsHandler but it doesn't use effects and libkwineffects is not a dependency of KDecoration2. So, providing a dummy EffectsHandler makes no sense. In hindsight, we need to revisit the usage of EffectQuickView in Aurorae as accessing the EffectsHandler in EffectQuickView is a totally valid usecase and integration of QOpenGLContext. M +4 -3 src/libkwineffects/kwineffectquickview.cpp https://invent.kde.org/plasma/kwin/commit/1b215e6c063f5bad18a09e247d2f18fade7dfdc8 Git commit 65675140ff61e8a6ec5b7ab78c772084ce243484 by Vlad Zahorodnii. Committed on 23/09/2021 at 06:33. Pushed by vladz into branch 'Plasma/5.23'. libkwineffects: Avoid accessing effects in EffectQuickView EffectQuickView is used by Aurorae. As long as Aurorae decorations are rendered by kwin, it's not a problem. However, kde-gtk-config kded module can also render them. This creates a problem. If effects object is not created, accessing any of its getters or setters will result in a segmentation fault. This change rewrites the share context check so the effects object is not accessed anymore. One could argue that kde-gtk-config has to provide a dummy EffectsHandler but it doesn't use effects and libkwineffects is not a dependency of KDecoration2. So, providing a dummy EffectsHandler makes no sense. In hindsight, we need to revisit the usage of EffectQuickView in Aurorae as accessing the EffectsHandler in EffectQuickView is a totally valid usecase and integration of QOpenGLContext. (cherry picked from commit 1b215e6c063f5bad18a09e247d2f18fade7dfdc8) M +4 -3 src/libkwineffects/kwineffectquickview.cpp https://invent.kde.org/plasma/kwin/commit/65675140ff61e8a6ec5b7ab78c772084ce243484 |