Bug 453309 - kwin_wayland crashed in KWin::ScreenCastStream::enqueue() when simultaneously activating Present Windows from a screen edge and showing a Task Manager thumbnail
Summary: kwin_wayland crashed in KWin::ScreenCastStream::enqueue() when simultaneously...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: git master
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-02 17:50 UTC by Nate Graham
Modified: 2022-06-13 15:51 UTC (History)
2 users (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 Nate Graham 2022-05-02 17:50:31 UTC
kwin_wayl;and crashed when I activated Present Windows (with https://invent.kde.org/plasma/kwin/-/merge_requests/2279 applied) from a screen edge with the mouse, on the same edge that a panel was on. A Task Manager thumbnail appeared at the moment the effect activated, and then kwin_wayland crashed.

#0  __pthread_kill_implementation
    (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007f866aa50603 in __pthread_kill_internal (signo=6, threadid=<optimized out>)
    at pthread_kill.c:78
#2  0x00007f866aa03d86 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007f866a9d6833 in __GI_abort () at abort.c:79
#4  0x00007f866cd22cba in egl_provider_resolver
    (name=name@entry=0x7f866cd48ba4 <entrypoint_strings+1060> "eglDestroySyncKHR", providers=providers@entry=0x7f866cd486e4 <providers.19.lto_priv>, entrypoints=entrypoints@entry=0x7f866cd486d8 <entrypoints.18.lto_priv>) at src/egl_generated_dispatch.c:3911
#5  0x00007f866cd2661a in epoxy_eglDestroySyncKHR_resolver () at src/egl_generated_dispatch.c:4312
#6  epoxy_eglDestroySyncKHR_global_rewrite_ptr (dpy=0xfa4d10, sync=0x1cd4820)
    at src/egl_generated_dispatch.c:5063
#7  0x000000000047024d in KWin::ScreenCastStream::enqueue() (this=0x2836750)
    at /home/nate/kde/src/kwin/src/plugins/screencast/screencaststream.cpp:547
#8  0x00007f866c30a3e9 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
    (a=0x7ffe94778a80, r=<optimized out>, this=0x2586180)
    at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#9  doActivate<false>(QObject*, int, void**)
    (sender=0x292a4f0, signal_index=3, argv=0x7ffe94778a80) at kernel/qobject.cpp:3886
#10 0x00007f866c305367 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
    (sender=sender@entry=0x292a4f0, m=m@entry=0x7f866c5af460 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe94778a80)
    at kernel/qobject.cpp:3946
#11 0x00007f866c30cb8a in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) (this=this@entry=0x292a4f0, _t1=..., _t2=<optimized out>, _t3=...)
    at .moc/moc_qsocketnotifier.cpp:178
#12 0x00007f866c30d3a3 in QSocketNotifier::event(QEvent*) (this=0x292a4f0, e=0x7ffe94778b80)
    at kernel/qsocketnotifier.cpp:302
#13 0x00007f866b156443 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    (this=<optimized out>, receiver=0x292a4f0, e=0x7ffe94778b80) at kernel/qapplication.cpp:3632
#14 0x00007f866c2d67d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
    (receiver=0x292a4f0, event=0x7ffe94778b80) at kernel/qcoreapplication.cpp:1064
#15 0x00007f866c324ffe in QEventDispatcherUNIXPrivate::activateSocketNotifiers() (this=0xcabc50)
    at kernel/qeventdispatcher_unix.cpp:304
#16 0x00007f866c325375 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:511
#17 0x000000000053ed41 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#18 0x00007f866c2d51e2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
    (this=this@entry=0x7ffe94778cf0, flags=..., flags@entry=...)
    at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#19 0x00007f866c2dd724 in QCoreApplication::exec() ()
    at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#20 0x00007f866c71cc40 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1860
#21 0x00007f866b1563b9 in QApplication::exec() () at kernel/qapplication.cpp:2824
#22 0x0000000000446ef3 in main(int, char**) (argc=<optimized out>, argv=<optimized out>)
    at /home/nate/kde/src/kwin/src/main_wayland.cpp:657
Comment 1 Vlad Zahorodnii 2022-05-24 06:58:42 UTC
It means that m_pendingBuffer got reset while m_pendingNotifier is valid. I can't reproduce the crash though. Can you?
Comment 2 Bug Janitor Service 2022-06-08 04:35:42 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Nate Graham 2022-06-13 15:51:29 UTC
No longer reproducible for me with current git master. Maybe fixed with the new QML effects.