Bug 458059 - Kwin abort
Summary: Kwin abort
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 5.24.4
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-19 10:20 UTC by Wojciech Waga
Modified: 2023-01-24 13:33 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wojciech Waga 2022-08-19 10:20:41 UTC
SUMMARY
KWin keeps crashing on my platform with signal 6. (stack below), this happens like 0 to 5 times a day. I noticed nothing particular about the activities at the time of the crash. For me it's usually while using chrome, but this is what I usually use.

I noticed one more thing related to the compositor, hope this helps. If the system is newly turned on I can observe tearing in chrome while scrolling. My settings: scale: smooth, latency: "prefer smoother animations", vsync: automatic. If I change latency to whatever tearing goes away, but bringing back the previous setting does not cause tearing. Looks like jiggling settings always helps. 

Application: kwin_x11 (5.24.4)

Qt Version: 5.15.3
Frameworks Version: 5.92.0
Operating System: Linux 5.17.0-1012-oem x86_64
Windowing System: X11
Distribution: Ubuntu 22.04 LTS
DrKonqi: 5.24.4 [KCrashBackend]

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

The crash can be reproduced sometimes.

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

[KCrash Handler]
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140261882082624) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=140261882082624) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=140261882082624, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007f91484ca476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f91484b07f3 in __GI_abort () at ./stdlib/abort.c:79
#9  0x00007f91401d0144 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#10 0x00007f9140e397ef in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#11 0x00007f9140436832 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#12 0x00007f914b126264 in ?? () from /lib/x86_64-linux-gnu/libkwin.so.5
#13 0x00007f9149642783 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f914b0fdb78 in KWin::Scene::paintScreen(QRegion const&, QRegion const&, QRegion*, QRegion*, KWin::RenderLoop*, QMatrix4x4 const&) () from /lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007f914b1c0170 in KWin::SceneOpenGL::paint(KWin::AbstractOutput*, QRegion const&, QList<KWin::Toplevel*> const&, KWin::RenderLoop*) () from /lib/x86_64-linux-gnu/libkwin.so.5
#16 0x00007f914b060071 in KWin::Compositor::composite(KWin::RenderLoop*) () from /lib/x86_64-linux-gnu/libkwin.so.5
#17 0x00007f914b069a06 in KWin::X11Compositor::composite(KWin::RenderLoop*) () from /lib/x86_64-linux-gnu/libkwin.so.5
#18 0x00007f9149642783 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f914b01fb16 in KWin::RenderLoop::frameRequested(KWin::RenderLoop*) () from /lib/x86_64-linux-gnu/libkwin.so.5
#20 0x00007f914b0ec177 in KWin::RenderLoopPrivate::dispatch() () from /lib/x86_64-linux-gnu/libkwin.so.5
#21 0x00007f9149642783 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f91496467ee in QTimer::timeout(QTimer::QPrivateSignal) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f914963832f in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f9148be1713 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f914960ae2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f91496633db in QTimerInfoList::activateTimers() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f9149661897 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f914316c142 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#29 0x00007f914960974b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f9149611ce4 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x0000563954435bad in ?? ()
#32 0x00007f91484b1d90 in __libc_start_call_main (main=main@entry=0x563954435770, argc=argc@entry=1, argv=argv@entry=0x7ffd1019bbe8) at ../sysdeps/nptl/libc_start_call_main.h:58
#33 0x00007f91484b1e40 in __libc_start_main_impl (main=0x563954435770, argc=1, argv=0x7ffd1019bbe8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd1019bbd8) at ../csu/libc-start.c:392
#34 0x0000563954436eb5 in ?? ()
[Inferior 1 (process 2525) detached]

STEPS TO REPRODUCE
1. Normal KDE use with chrome browser
2. 
3. 

OBSERVED RESULT
kwin_x11 gets abort signal and restarts with --crashes 1

EXPECTED RESULT
no crash

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04
KDE Plasma Version: 5.24.4 
KDE Frameworks Version: 5.92.0 
Qt Version: 5.13.15

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2022-08-19 11:05:40 UTC
The crash is happening inside the Intel graphics driver. It's hard to tell more without debug symbols though
Comment 2 Nate Graham 2022-08-23 12:41:29 UTC
#9  0x00007f91401d0144 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#10 0x00007f9140e397ef in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#11 0x00007f9140436832 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#12 0x00007f914b126264 in ?? () from /lib/x86_64-linux-gnu/libkwin.so.5
#13 0x00007f9149642783 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f914b0fdb78 in KWin::Scene::paintScreen(QRegion const&, QRegion const&, QRegion*, QRegion*, KWin::RenderLoop*, QMatrix4x4 const&) () from /lib/x86_64-linux-gnu/libkwin.so.5
Comment 3 Vlad Zahorodnii 2023-01-17 12:20:39 UTC
The backtrace lacks debug symbols. Can you install kwin debug package and provide us a new backtrace that include debug symbols?
Comment 4 Wojciech Waga 2023-01-24 12:59:12 UTC
Hey guys,

I have not seen this error for months now. I think the ticket can be closed.
Comment 5 Vlad Zahorodnii 2023-01-24 13:33:09 UTC
Thanks for the update