Bug 451649 - Kwin crashes from time to time
Summary: Kwin crashes from time to time
Status: RESOLVED DUPLICATE of bug 451612
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.24.3
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-18 09:34 UTC by tobias
Modified: 2022-04-03 17:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tobias 2022-03-18 09:34:20 UTC
SUMMARY
Kwin regularly crashes "out of the blue".

STEPS TO REPRODUCE
While doing no specific action, Kwin crashes.

OBSERVED RESULT
Kwin crash and automated restart.

EXPECTED RESULT
Kwin doesn't crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.24.3
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Application: kwin_x11 (5.24.3)

Qt Version: 5.15.3
Frameworks Version: 5.91.0
Operating System: Linux 5.16.14-arch1-1 x86_64
Windowing System: X11
Distribution: Arch Linux
DrKonqi: 5.24.3 [KCrashBackend]

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: KWin (kwin_x11), signal: Aborted

[KCrash Handler]
#4  0x00007f7dd16ee34c in __pthread_kill_implementation () at /usr/lib/libc.so.6
#5  0x00007f7dd16a14b8 in raise () at /usr/lib/libc.so.6
#6  0x00007f7dd168b534 in abort () at /usr/lib/libc.so.6
#7  0x00007f7dc9dcca89 in  () at /usr/lib/dri/iris_dri.so
#8  0x00007f7dcaa4ecc5 in  () at /usr/lib/dri/iris_dri.so
#9  0x00007f7dc9fd3849 in  () at /usr/lib/dri/iris_dri.so
#10 0x00007f7dd410cd48 in  () at /usr/lib/libkwin.so.5
#11 0x00007f7dd279ef63 in  () at /usr/lib/libQt5Core.so.5
#12 0x00007f7dd40e43a6 in KWin::Scene::paintScreen(QRegion const&, QRegion const&, QRegion*, QRegion*, KWin::RenderLoop*, QMatrix4x4 const&) () at /usr/lib/libkwin.so.5
#13 0x00007f7dd41aa2e7 in KWin::SceneOpenGL::paint(KWin::AbstractOutput*, QRegion const&, QList<KWin::Toplevel*> const&, KWin::RenderLoop*) () at /usr/lib/libkwin.so.5
#14 0x00007f7dd40467f4 in KWin::Compositor::composite(KWin::RenderLoop*) () at /usr/lib/libkwin.so.5
#15 0x00007f7dd4046d40 in KWin::X11Compositor::composite(KWin::RenderLoop*) () at /usr/lib/libkwin.so.5
#16 0x00007f7dd279ef63 in  () at /usr/lib/libQt5Core.so.5
#17 0x00007f7dd40047a7 in KWin::RenderLoop::frameRequested(KWin::RenderLoop*) () at /usr/lib/libkwin.so.5
#18 0x00007f7dd40d5bd8 in KWin::RenderLoopPrivate::dispatch() () at /usr/lib/libkwin.so.5
#19 0x00007f7dd279ef63 in  () at /usr/lib/libQt5Core.so.5
#20 0x00007f7dd27a119f in QTimer::timeout(QTimer::QPrivateSignal) () at /usr/lib/libQt5Core.so.5
#21 0x00007f7dd2792266 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#22 0x00007f7dd1d9d1c6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#23 0x00007f7dd276e0aa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#24 0x00007f7dd27b98e5 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#25 0x00007f7dd27b9d82 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#26 0x00007f7dcc72df83 in  () at /usr/lib/libQt5XcbQpa.so.5
#27 0x00007f7dd276639b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#28 0x00007f7dd2771ad7 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#29 0x000055949cdbce8c in  ()
#30 0x00007f7dd168c310 in __libc_start_call_main () at /usr/lib/libc.so.6
#31 0x00007f7dd168c3c1 in __libc_start_main_impl () at /usr/lib/libc.so.6
#32 0x000055949cdbe225 in  ()
[Inferior 1 (process 498439) detached]
Comment 1 Nate Graham 2022-03-26 03:00:34 UTC
Thank you for the bug report! Unfortunately the backtrace is incomplete and missing debug symbols for the following lines that we need to figure out exactly what's going wrong:

> #7  0x00007f7dc9dcca89 in  () at /usr/lib/dri/iris_dri.so
> #8  0x00007f7dcaa4ecc5 in  () at /usr/lib/dri/iris_dri.so
> #9  0x00007f7dc9fd3849 in  () at /usr/lib/dri/iris_dri.so
> #10 0x00007f7dd410cd48 in  () at /usr/lib/libkwin.so.5

Could you please install debug symbols for kwin and mesa, reproduce the crash, and attach a new symbolicated backtrace? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

The issue is very likely a duplicate of one of the ones reported here: https://bugs.kde.org/buglist.cgi?quicksearch=KWin%3A%3AScene%3A%3ApaintScreen&list_id=2013268

But without the above information, I can't be sure.

Thanks again!
Comment 2 tobias 2022-04-01 12:50:18 UTC
I was able to install the debug symbols for Kwin, but not for mesa. They seem to be missing in Arch Linux debug packages. Here is a stacktrace with Kwin debug symbols:

> Application: KWin (kwin_x11), signal: Aborted
> [KCrash Handler]
> #4  0x00007f34fe1f534c in __pthread_kill_implementation () at /usr/lib/libc.so.6
> #5  0x00007f34fe1a84b8 in raise () at /usr/lib/libc.so.6
> #6  0x00007f34fe192534 in abort () at /usr/lib/libc.so.6
> #7  0x00007f34f260e59b in  () at /usr/lib/dri/iris_dri.so
> #8  0x00007f34f324623f in  () at /usr/lib/dri/iris_dri.so
> #9  0x00007f34f288fea7 in  () at /usr/lib/dri/iris_dri.so
> #10 0x00007f3500c17d88 in KWin::WindowThumbnailItem::updateOffscreenTexture() (this=0x561e4d044ed0) at /usr/src/debug/kwin-5.24.4/src/scripting/thumbnailitem.cpp:432
> #11 0x00007f34ff2a9463 in  () at /usr/lib/libQt5Core.so.5
> #12 0x00007f3500bef3e6 in KWin::Scene::paintScreen(QRegion const&, QRegion const&, QRegion*, QRegion*, KWin::RenderLoop*, QMatrix4x4 const&) (this=0x561e4c2f90a0, damage=<optimized out>, repaint=..., updateRegion=0x7ffc97548ac0, validRegion=0x7ffc97548ab8, renderLoop=<optimized out>, projection=...) at /usr/src/debug/kwin-5.24.4/src/scene.cpp:282
> #13 0x00007f3500cb5297 in KWin::SceneOpenGL::paint(KWin::AbstractOutput*, QRegion const&, QList<KWin::Toplevel*> const&, KWin::RenderLoop*) (this=0x561e4c2f90a0, output=0x0, damage=..., toplevels=<optimized out>, renderLoop=0x561e4c033820) at /usr/src/debug/kwin-5.24.4/src/scenes/opengl/scene_opengl.cpp:259
> #14 0x00007f3500b517f4 in KWin::Compositor::composite(KWin::RenderLoop*) (this=0x561e4c01ba40, renderLoop=0x561e4c033820) at /usr/src/debug/kwin-5.24.4/src/composite.cpp:633
> #15 0x00007f3500b51d40 in KWin::X11Compositor::composite(KWin::RenderLoop*) (this=0x561e4c01ba40, renderLoop=<optimized out>) at /usr/src/debug/kwin-5.24.4/src/composite.cpp:844
> #16 0x00007f34ff2a9463 in  () at /usr/lib/libQt5Core.so.5
> #17 0x00007f3500b0f7a7 in KWin::RenderLoop::frameRequested(KWin::RenderLoop*) (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/build/src/kwin_autogen/EWIEGA46WW/moc_renderloop.cpp:206
> #18 0x00007f3500be0c18 in KWin::RenderLoopPrivate::dispatch() (this=0x561e4c01fe20) at /usr/src/debug/kwin-5.24.4/src/renderloop.cpp:150
> #19 0x00007f34ff2a9463 in  () at /usr/lib/libQt5Core.so.5
> #20 0x00007f34ff2ab69f in QTimer::timeout(QTimer::QPrivateSignal) () at /usr/lib/libQt5Core.so.5
> #21 0x00007f34ff29c766 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
> #22 0x00007f34fe8a61c6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
> #23 0x00007f34ff2785aa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
> #24 0x00007f34ff2c3dd5 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
> #25 0x00007f34ff2c4272 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
> #26 0x00007f34f917bf83 in  () at /usr/lib/libQt5XcbQpa.so.5
> #27 0x00007f34ff27088b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
> #28 0x00007f34ff27bfd7 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
> #29 0x0000561e4bb71e8c in main(int, char**) (argc=<optimized out>, argv=0x7ffc975494e8) at /usr/src/debug/kwin-5.24.4/src/main_x11.cpp:482
> [Inferior 1 (process 838) detached]
Comment 3 Nate Graham 2022-04-03 17:27:05 UTC
Thanks, that turns out to be good enough.

*** This bug has been marked as a duplicate of bug 451612 ***