Bug 452673 - kwin_x11 sometimes crashes with iris mesa drivers
Summary: kwin_x11 sometimes crashes with iris mesa drivers
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.24.4
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
: 451612 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-04-16 10:45 UTC by Murz
Modified: 2022-11-12 23:30 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (30.12 KB, text/plain)
2022-04-16 12:51 UTC, Murz
Details
New crash information added by DrKonqi (5.02 KB, text/plain)
2022-04-17 05:27 UTC, Murz
Details
New crash information added by DrKonqi (6.28 KB, text/plain)
2022-05-04 11:54 UTC, nicdex
Details
New crash information added by DrKonqi (5.68 KB, text/plain)
2022-05-11 20:31 UTC, nicdex
Details
New crash information added by DrKonqi (5.62 KB, text/plain)
2022-05-16 21:58 UTC, nicdex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Murz 2022-04-16 10:45:57 UTC
Application: kwin_x11 (5.24.4)

Qt Version: 5.15.3
Frameworks Version: 5.92.0
Operating System: Linux 5.15.0-25-generic x86_64
Windowing System: X11
Distribution: Ubuntu Jammy Jellyfish (development branch)
DrKonqi: 5.24.4 [KCrashBackend]

-- Information about the crash:
Most of the time kwin works well, but sometimes it crashes and restarts, at this time screen becomes black for several seconds and restores. This is not related to some manual actions, I just use the web browser or other app, and sometimes this happens in random time, about 3-5 time per day.
I've found a lot of crash reports with similar title:
```
Application: KWin (kwin_x11), signal: Aborted
```
But it is too general to decide is this crash a duplicate of other, or not.

Please describe me if I can give you some additional info to investigate the problem.

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=140023382934848) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=140023382934848) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=140023382934848, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007f59c0a47476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f59c0a2d7f3 in __GI_abort () at ./stdlib/abort.c:79
#9  0x00007f59b91f2144 in _iris_batch_flush (batch=0x558bd2b31fb8, file=<optimized out>, line=<optimized out>) at ../src/gallium/drivers/iris/iris_batch.c:1105
#10 0x00007f59b9e5b38f in iris_fence_flush (ctx=0x558bd2b31ab0, out_fence=0x558bd39734d0, flags=<optimized out>) at ../src/gallium/drivers/iris/iris_fence.c:267
#11 0x00007f59b9458782 in fence_sync (ctx=0x7f599c115010, condition=37143, flags=0) at ../src/mesa/main/syncobj.c:294
#12 0x00007f59c36a3264 in  () at /lib/x86_64-linux-gnu/libkwin.so.5
#13 0x00007f59c1bbf783 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffe5a63f460, r=0x558bd397ff00, this=0x558bd3967b30) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#14 doActivate<false>(QObject*, int, void**) (sender=0x558bd2a02520, signal_index=3, argv=0x7ffe5a63f460) at kernel/qobject.cpp:3886
#15 0x00007f59c367ab78 in KWin::Scene::paintScreen(QRegion const&, QRegion const&, QRegion*, QRegion*, KWin::RenderLoop*, QMatrix4x4 const&) () at /lib/x86_64-linux-gnu/libkwin.so.5
#16 0x00007f59c373d170 in KWin::SceneOpenGL::paint(KWin::AbstractOutput*, QRegion const&, QList<KWin::Toplevel*> const&, KWin::RenderLoop*) () at /lib/x86_64-linux-gnu/libkwin.so.5
#17 0x00007f59c35dd071 in KWin::Compositor::composite(KWin::RenderLoop*) () at /lib/x86_64-linux-gnu/libkwin.so.5
#18 0x00007f59c35e6a06 in KWin::X11Compositor::composite(KWin::RenderLoop*) () at /lib/x86_64-linux-gnu/libkwin.so.5
#19 0x00007f59c1bbf783 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffe5a63f900, r=0x558bd25edf60, this=0x558bd2a04eb0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#20 doActivate<false>(QObject*, int, void**) (sender=0x7f59b4001a20, signal_index=5, argv=0x7ffe5a63f900) at kernel/qobject.cpp:3886
#21 0x00007f59c359cb16 in KWin::RenderLoop::frameRequested(KWin::RenderLoop*) () at /lib/x86_64-linux-gnu/libkwin.so.5
#22 0x00007f59c3669177 in KWin::RenderLoopPrivate::dispatch() () at /lib/x86_64-linux-gnu/libkwin.so.5
#23 0x00007f59c1bbf783 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffe5a63fa20, r=0x7f59b4001a20, this=0x558bd289a120) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#24 doActivate<false>(QObject*, int, void**) (sender=0x558bd2894c38, signal_index=3, argv=0x7ffe5a63fa20) at kernel/qobject.cpp:3886
#25 0x00007f59c1bb8a97 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=<optimized out>, m=m@entry=0x7f59c1e26300 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe5a63fa20) at kernel/qobject.cpp:3946
#26 0x00007f59c1bc37ee in QTimer::timeout(QTimer::QPrivateSignal) (this=<optimized out>, _t1=...) at .moc/moc_qtimer.cpp:205
#27 0x00007f59c1bb532f in QObject::event(QEvent*) (this=0x558bd2894c38, e=0x7ffe5a63fba0) at kernel/qobject.cpp:1336
#28 0x00007f59c115e713 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f59c1b87e2a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x558bd2894c38, event=0x7ffe5a63fba0) at kernel/qcoreapplication.cpp:1064
#30 0x00007f59c1be03db in QTimerInfoList::activateTimers() (this=this@entry=0x558bd2622dd8) at kernel/qtimerinfo_unix.cpp:643
#31 0x00007f59c1bddb30 in QEventDispatcherUNIXPrivate::activateTimers() (this=this@entry=0x558bd2622d50) at kernel/qeventdispatcher_unix.cpp:249
#32 0x00007f59c1bde897 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:516
#33 0x00007f59bb960142 in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#34 0x00007f59c1b8674b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffe5a63fd40, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#35 0x00007f59c1b8ece4 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#36 0x0000558bd05ccbad in main(int, char**) (argc=<optimized out>, argv=0x7ffe5a640008) at ./src/main_x11.cpp:482
[Inferior 1 (process 1083828) detached]

Possible duplicates by query: bug 452583, bug 452310, bug 452256, bug 451649, bug 451612.

Reported using DrKonqi
Comment 1 Murz 2022-04-16 12:51:04 UTC
Created attachment 148187 [details]
New crash information added by DrKonqi

kwin_x11 (5.24.4) using Qt 5.15.3

Next crash with similar crash report, I'd been doing nothing special when crash happened.

-- Backtrace (Reduced):
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140362190181952) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=140362190181952) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=140362190181952, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007fa8dc84f476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007fa8dc8357f3 in __GI_abort () at ./stdlib/abort.c:79
Comment 2 Murz 2022-04-17 05:27:40 UTC
Created attachment 148200 [details]
New crash information added by DrKonqi

kwin_x11 (5.24.4) using Qt 5.15.3

One more crash report related to the issue.

-- Backtrace (Reduced):
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140659434542400) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=140659434542400) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=140659434542400, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007fedd845c476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007fedd84427f3 in __GI_abort () at ./stdlib/abort.c:79
Comment 3 Nate Graham 2022-04-18 15:46:50 UTC
This'll be a bug in the Mesa drivers and the Mesa developers will want to know about it. Can you report a bug for them? See https://docs.mesa3d.org/bugs.html
Comment 4 Murz 2022-04-18 16:40:08 UTC
Thank your for pointing out to right place, I've submitted the issue there: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6341
Comment 5 nicdex 2022-05-04 11:54:48 UTC
Created attachment 148555 [details]
New crash information added by DrKonqi

kwin_x11 (5.24.4) using Qt 5.15.3

Simply using Jetbrains IDEA and kwin crashes out of nowhere. Not doing anything in particular, maybe a layover popup was about to be displayed, not 100% sure.

-- Backtrace (Reduced):
#6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140042779658688) at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (signo=6, threadid=140042779658688) at ./nptl/pthread_kill.c:78
#8  __GI___pthread_kill (threadid=140042779658688, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9  0x00007f5e44c71476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x00007f5e44c577f3 in __GI_abort () at ./stdlib/abort.c:79
Comment 6 nicdex 2022-05-11 20:31:09 UTC
Created attachment 148745 [details]
New crash information added by DrKonqi

kwin_x11 (5.24.5) using Qt 5.15.3

wasn't doing anything in particular.
context:
- was using jetbrains IDEA
- there is also a firefox floating video playing
- was moving the mouse when the crash occured, might have had some window popup occuring, not sure

-- Backtrace (Reduced):
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140231240309184) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=140231240309184) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=140231240309184, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007f8a25e92476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f8a25e787f3 in __GI_abort () at ./stdlib/abort.c:79
Comment 7 Murz 2022-05-12 04:12:04 UTC
 nicdex@yahoo.com  - do you have any error records in dmesg, syslog or .xsession-errors file together with that crash? Can you also report this issue to the upstream issue https://gitlab.freedesktop.org/mesa/mesa/-/issues/6341 ?
Comment 8 nicdex 2022-05-13 11:25:54 UTC
(In reply to Murz from comment #7)
>  nicdex@yahoo.com  - do you have any error records in dmesg, syslog or
> .xsession-errors file together with that crash? Can you also report this
> issue to the upstream issue
> https://gitlab.freedesktop.org/mesa/mesa/-/issues/6341 ?

I don't but I will next time it occurs.
Comment 9 nicdex 2022-05-16 21:58:10 UTC
Created attachment 148899 [details]
New crash information added by DrKonqi

kwin_x11 (5.24.5) using Qt 5.15.3

- What I was doing when the application crashed:
Was working in Jetbrains IDEA (typing), wasn't switching/moving/touching any other window.

-- Backtrace (Reduced):
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=139693025831360) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=139693025831360) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=139693025831360, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007f0cd5d4c476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f0cd5d327f3 in __GI_abort () at ./stdlib/abort.c:79
Comment 10 Vlad Zahorodnii 2022-09-13 07:19:00 UTC
*** Bug 451612 has been marked as a duplicate of this bug. ***