Summary: | KWin Crash in KWin::OutputInterface::handle() after closing and opening laptop lid | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Bharadwaj Raju <bharadwaj.raju777> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | nate |
Priority: | NOR | Keywords: | qt6 |
Version: | master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Bharadwaj Raju
2023-11-21 12:18:39 UTC
> In KWin::SurfaceInterface::takePresentationFeedback, neither output nor d->primaryOutput are nullptrs, yet memory accesses on them are invalid. Possibly we're deleting them somewhere but not setting them to nullptr?
Trying to call d->primaryOutput->isRemoved() also segfaults
What if primaryOutput is wrapped in a QPointer, i.e. OutputInterface *primaryOutput = nullptr; -> QPointer<OutputInterface> primaryOutput; A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4689 Git commit a01a11fc35e32a3719edc91e98e11b6e60d6509f by Vlad Zahorodnii. Committed on 22/11/2023 at 15:42. Pushed by vladz into branch 'master'. wayland: Reset SurfaceInterface::primaryOutput when the output is removed M +1 -1 src/wayland/surface_p.h https://invent.kde.org/plasma/kwin/-/commit/a01a11fc35e32a3719edc91e98e11b6e60d6509f Did that fix it for you, Bharadwaj? Yeah, I haven't had a crash since. |