Summary: | kwin_wayland sometimes crashes in KWin::WindowScreenCastSource::textureSize() when hovering over Task Manager icons | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Nate Graham <nate> |
Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aleixpol, carl |
Priority: | NOR | ||
Version: | 5.27.4 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/709b3db17efc214bb6ae7e7ddf37e9697b287bc5 | Version Fixed In: | 5.27.5 |
Sentry Crash Report: |
Description
Nate Graham
2023-04-27 13:25:57 UTC
The second commit in this MR should address this problem: https://invent.kde.org/plasma/kwin/-/merge_requests/4023 It should happen when a window closes. I reproduced it today with a similar bt: #0 KWin::Window::clientGeometry() const (this=0x0) at /home/apol/devel/frameworks/kwin/src/window.h:2080 #1 0x0000559517d15e16 in KWin::WindowScreenCastSource::textureSize() const (this=0x55951bb29a10) at /home/apol/devel/frameworks/kwin/src/plugins/screencast/windowscreencastsource.cpp:40 #2 0x0000559517d09148 in KWin::ScreenCastStream::recordFrame(QRegion const&) (this=0x55951c05a820, _damagedRegion=...) at /home/apol/devel/frameworks/kwin/src/plugins/screencast/screencaststream.cpp:429 #3 0x0000559517d0f092 in KWin::ScreenCastStream::ScreenCastStream(KWin::ScreenCastSource*, QObject*)::$_0::operator()() const (this=0x55951bf93a70) at /home/apol/devel/frameworks/kwin/src/plugins/screencast/screencaststream.cpp:308 #4 0x0000559517d0f036 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KWin::ScreenCastStream::ScreenCastStream(KWin::ScreenCastSource*, QObject*)::$_0>::call(KWin::ScreenCastStream::ScreenCastStream(KWin::ScreenCastSource*, QObject*)::$_0&, void**) (f=..., arg=0x7ffd316e3130) at /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:146 #5 0x0000559517d0f001 in QtPrivate::Functor<KWin::ScreenCastStream::ScreenCastStream(KWin::ScreenCastSource*, QObject*)::$_0, 0>::call<QtPrivate::List<>, void>(KWin::ScreenCastStream::ScreenCastStream(KWin::ScreenCastSource*, QObject*)::$_0&, void*, void**) (f=..., arg=0x7ffd316e3130) at /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:256 #6 0x0000559517d0efa1 in QtPrivate::QFunctorSlotObject<KWin::ScreenCastStream::ScreenCastStream(KWin::ScreenCastSource*, QObject*)::$_0, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x55951bf93a60, r=0x55951c05a820, a=0x7ffd316e3130, ret=0x0) at /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:443 Git commit 660ad887ee3eec7374ef83a1d04d0cec9e8ebd19 by Aleix Pol Gonzalez, on behalf of Aleix Pol. Committed on 28/04/2023 at 14:03. Pushed by apol into branch 'master'. screencast: Disable screencasting when a window closes There were still some cases where we might have queried the window, leading to a crash. M +4 -1 src/plugins/screencast/screencaststream.cpp https://invent.kde.org/plasma/kwin/commit/660ad887ee3eec7374ef83a1d04d0cec9e8ebd19 Git commit 709b3db17efc214bb6ae7e7ddf37e9697b287bc5 by Aleix Pol. Committed on 28/04/2023 at 18:11. Pushed by apol into branch 'Plasma/5.27'. screencast: Disable screencasting when a window closes There were still some cases where we might have queried the window, leading to a crash. M +4 -1 src/plugins/screencast/screencaststream.cpp https://invent.kde.org/plasma/kwin/commit/709b3db17efc214bb6ae7e7ddf37e9697b287bc5 *** Bug 472797 has been marked as a duplicate of this bug. *** |