Bug 501669 - With Bitwarden installed, Kwin crashes the moment I type "bitw" into the overview search
Summary: With Bitwarden installed, Kwin crashes the moment I type "bitw" into the over...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (show other bugs)
Version: 6.3.3
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2025-03-18 01:41 UTC by Dashon
Modified: 2025-03-20 01:51 UTC (History)
3 users (show)

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


Attachments
New crash information added by DrKonqi (144.78 KB, text/plain)
2025-03-18 01:41 UTC, Dashon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dashon 2025-03-18 01:41:15 UTC
Application: kwin_wayland (6.3.3)

ApplicationNotResponding [ANR]: false
Qt Version: 6.8.2
Frameworks Version: 6.12.0
Operating System: Linux 6.13.7-zen1-1-zen x86_64
Windowing System: Wayland
Distribution: EndeavourOS
DrKonqi: 6.3.3 [CoredumpBackend]

-- Information about the crash:
The crash happens every time I type those 4 characters into the overview search. I have bitwarden installed via flatpak on endeavourOS / Arch. The bug started occuring after the update to 6.3 at the same time as this visual bug that I reported earlier. 
https://bugs.kde.org/show_bug.cgi?id=498448

I have been waiting on a Qt 6.9 to get back to that bug.

Hopefully the attached backtrace courtesy of dr konqi helps.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#6  0x00007179382a56d3 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:89
#7  0x000071793824bba0 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x0000717938233582 in __GI_abort () at abort.c:73
#9  0x00007179382343bf in __libc_message_impl (fmt=fmt@entry=0x7179383c131f "%s\n") at ../sysdeps/posix/libc_fatal.c:134


Reported using DrKonqi
Comment 1 Dashon 2025-03-18 01:41:17 UTC
Created attachment 179522 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 cwo 2025-03-18 11:13:30 UTC
For searchability:


#5  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#6  0x00007179382a56d3 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:89
#7  0x000071793824bba0 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x0000717938233582 in __GI_abort () at abort.c:73
#9  0x00007179382343bf in __libc_message_impl (fmt=fmt@entry=0x7179383c131f "%s\n") at ../sysdeps/posix/libc_fatal.c:134
#10 0x00007179382af765 in malloc_printerr (str=str@entry=0x7179383c4020 "munmap_chunk(): invalid pointer") at malloc.c:5829
#11 0x00007179382afabc in munmap_chunk (p=p@entry=0x63fc063798d0) at malloc.c:3042
#12 0x00007179382b4a08 in __GI___libc_free (mem=0x63fc063798e0) at malloc.c:3466
#13 0x00007179388fa316 in QArrayDataPointer<char>::~QArrayDataPointer (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qarraydatapointer.h:110
#14 QByteArray::~QByteArray (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/text/qbytearray.h:602
#15 QHashPrivate::Node<QByteArray, QHashDummyValue>::~Node (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qhash.h:97
#16 QHashPrivate::Span<QHashPrivate::Node<QByteArray, QHashDummyValue> >::freeData (this=0x63fc073fa6a8) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qhash.h:272
#17 QHashPrivate::Span<QHashPrivate::Node<QByteArray, QHashDummyValue> >::~Span (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qhash.h:264
#18 QHashPrivate::Data<QHashPrivate::Node<QByteArray, QHashDummyValue> >::~Data (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qhash.h:777
#19 QHash<QByteArray, QHashDummyValue>::~QHash (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qhash.h:862
#20 QHash<QByteArray, QHashDummyValue>::~QHash (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qhash.h:856
#21 QSet<QByteArray>::~QSet (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qset.h:18
#22 QOpenGLContextPrivate::~QOpenGLContextPrivate (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qopenglcontext.cpp:385
#23 QOpenGLContextPrivate::~QOpenGLContextPrivate (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qopenglcontext.cpp:385
#24 0x00007179388fb318 in QOpenGLContext::~QOpenGLContext (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qopenglcontext.cpp:493
#25 QOpenGLContext::~QOpenGLContext (this=<optimized out>, this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/gui/kernel/qopenglcontext.cpp:493
#26 0x000071793aa07c72 in std::default_delete<QOpenGLContext>::operator() (this=<optimized out>, __ptr=<optimized out>) at /usr/include/c++/14.2.1/bits/unique_ptr.h:87
#27 std::unique_ptr<QOpenGLContext, std::default_delete<QOpenGLContext> >::~unique_ptr (this=<optimized out>, this=<optimized out>) at /usr/include/c++/14.2.1/bits/unique_ptr.h:399
#28 KWin::OffscreenQuickView::Private::~Private (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kwin/kwin-6.3.3.1/src/effect/offscreenquickview.cpp:38
#29 std::default_delete<KWin::OffscreenQuickView::Private>::operator() (this=<optimized out>, __ptr=0x63fc062b6480) at /usr/include/c++/14.2.1/bits/unique_ptr.h:93
#30 std::default_delete<KWin::OffscreenQuickView::Private>::operator() (this=<optimized out>, __ptr=0x63fc062b6480) at /usr/include/c++/14.2.1/bits/unique_ptr.h:87
#31 std::unique_ptr<KWin::OffscreenQuickView::Private, std::default_delete<KWin::OffscreenQuickView::Private> >::~unique_ptr (this=<optimized out>, this=<optimized out>) at /usr/include/c++/14.2.1/bits/unique_ptr.h:399
#32 KWin::OffscreenQuickView::~OffscreenQuickView (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kwin/kwin-6.3.3.1/src/effect/offscreenquickview.cpp:168
#33 0x000071793ae1da8d in KWin::QuickSceneView::~QuickSceneView (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kwin/kwin-6.3.3.1/src/effect/quickeffect.cpp:103
#34 std::default_delete<KWin::QuickSceneView>::operator() (this=<optimized out>, __ptr=0x63fc062b63c0) at /usr/include/c++/14.2.1/bits/unique_ptr.h:93
#35 std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> >::~unique_ptr (this=<optimized out>, this=<optimized out>) at /usr/include/c++/14.2.1/bits/unique_ptr.h:399
#36 std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > >::~pair (this=<optimized out>, this=<optimized out>) at /usr/include/c++/14.2.1/bits/stl_pair.h:284
#37 std::destroy_at<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > > (__location=0x63fc0737fc20) at /usr/include/c++/14.2.1/bits/stl_construct.h:88
#38 std::allocator_traits<std::allocator<std::_Rb_tree_node<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > > > >::destroy<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > > (__a=..., __p=0x63fc0737fc20) at /usr/include/c++/14.2.1/bits/alloc_traits.h:599
#39 std::_Rb_tree<KWin::Output*, std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > >, std::_Select1st<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > >, std::less<KWin::Output*>, std::allocator<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > > >::_M_destroy_node (this=<optimized out>, __p=0x63fc0737fc00) at /usr/include/c++/14.2.1/bits/stl_tree.h:621
#40 std::_Rb_tree<KWin::Output*, std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > >, std::_Select1st<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > >, std::less<KWin::Output*>, std::allocator<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > > >::_M_drop_node (this=<optimized out>, __p=0x63fc0737fc00) at /usr/include/c++/14.2.1/bits/stl_tree.h:629
#41 std::_Rb_tree<KWin::Output*, std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > >, std::_Select1st<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > >, std::less<KWin::Output*>, std::allocator<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > > >::_M_erase(std::_Rb_tree_node<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > >*) [clone .isra.0] (__x=0x63fc0737fc00, this=<optimized out>) at /usr/include/c++/14.2.1/bits/stl_tree.h:1934
#42 0x000071793ae1da6a in std::_Rb_tree<KWin::Output*, std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > >, std::_Select1st<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > >, std::less<KWin::Output*>, std::allocator<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > > >::_M_erase(std::_Rb_tree_node<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > >*) [clone .isra.0] (__x=0x63fc060390a0, this=<optimized out>) at /usr/include/c++/14.2.1/bits/stl_tree.h:1932
#43 0x000071793aa0eae3 in std::_Rb_tree<KWin::Output*, std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > >, std::_Select1st<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > >, std::less<KWin::Output*>, std::allocator<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > > >::clear (this=0x63fc052c0618) at /usr/include/c++/14.2.1/bits/stl_tree.h:732
#44 std::map<KWin::Output*, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> >, std::less<KWin::Output*>, std::allocator<std::pair<KWin::Output* const, std::unique_ptr<KWin::QuickSceneView, std::default_delete<KWin::QuickSceneView> > > > >::clear (this=0x63fc052c0618) at /usr/include/c++/14.2.1/bits/stl_map.h:1183
#45 KWin::QuickSceneEffect::stopInternal (this=0x63fc0528d540) at /usr/src/debug/kwin/kwin-6.3.3.1/src/effect/quickeffect.cpp:533
#46 0x0000717937db1a49 in QtPrivate::QSlotObjectBase::call (this=<optimized out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:486
#47 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4115
#48 0x0000717937dbaa75 in QTimer::timeout (this=0x63fc052ccdb0, _t1=...) at /usr/src/debug/qt6-base/build/src/corelib/Core_autogen/include/moc_qtimer.cpp:223
#49 QTimer::timerEvent (e=<optimized out>, this=0x63fc052ccdb0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qtimer.cpp:285
#50 QTimer::timerEvent (this=0x63fc052ccdb0, e=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qtimer.cpp:279
#51 0x0000717937da2ef9 in QObject::event (this=0x63fc052ccdb0, e=0x7fffa1c013a0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1393
#52 0x00007179390ff0ca in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x63fc052ccdb0, e=0x7fffa1c013a0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3296
#53 0x0000717937d55b00 in QCoreApplication::notifyInternal2 (receiver=0x63fc052ccdb0, event=0x7fffa1c013a0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1172
#54 0x0000717937ed5aff in QCoreApplication::sendEvent (receiver=<optimized out>, event=0x7fffa1c013a0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1612
#55 QTimerInfoList::activateTimers (this=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qtimerinfo_unix.cpp:426
#56 0x0000717937ede408 in QEventDispatcherUNIXPrivate::activateTimers (this=0x63fc0490a970) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_unix.cpp:199
#57 QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=..., flags@entry=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_unix.cpp:475
#58 0x0000717938a61d93 in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at /usr/src/debug/qt6-base/qtbase/src/gui/platform/unix/qunixeventdispatcher.cpp:27
#59 0x0000717937d606a6 in QEventLoop::processEvents (this=0x7fffa1c015a0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:103
#60 QEventLoop::exec (this=0x7fffa1c015a0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:185
#61 0x0000717937d591d6 in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74
#62 0x00007179390faf9a in QApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2564
#63 0x000063fbc677006e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kwin/kwin-6.3.3.1/src/main_wayland.cpp:622
Comment 3 Nate Graham 2025-03-19 19:52:26 UTC
Seems to start in KWin::OffscreenQuickView::Private::~Private, when we try to delete it.

Do you hit enter after typing those four characters? or is simply typing them and then doing nothing else enough to make it happen?

And I'm assuming you have BitWarden installed and that's what you were searching for, right? If so, if you temporarily uninstall BitWarden and then try to reproduce the issue, does it still happen?
Comment 4 Dashon 2025-03-19 23:27:08 UTC
(In reply to Nate Graham from comment #3)
> Seems to start in KWin::OffscreenQuickView::Private::~Private, when we try
> to delete it.
> 
> Do you hit enter after typing those four characters? or is simply typing
> them and then doing nothing else enough to make it happen?
> 
> And I'm assuming you have BitWarden installed and that's what you were
> searching for, right? If so, if you temporarily uninstall BitWarden and then
> try to reproduce the issue, does it still happen?
No, I don't hit enter. Simply typing those four characters is enough to cause tge crash. 

U do have bitwarden installed via flatpack uninstalling it does indeed avoid the crash.
Comment 5 Nate Graham 2025-03-19 23:37:01 UTC
Thanks! How was it installed? Distro package, Flatpak, Snap, some other way...
Comment 6 Dashon 2025-03-19 23:41:41 UTC
(In reply to Nate Graham from comment #5)
> Thanks! How was it installed? Distro package, Flatpak, Snap, some other
> way...

Flatpak
Comment 7 Nate Graham 2025-03-19 23:44:46 UTC
Thanks. Unfortunately with today's git master, I cannot reproduce the crash when I install Bitwarden from Flathub and type "bitw" in the Overview effect's search field.

Or maybe fortunately, if that means it's fixed?
Comment 8 Dashon 2025-03-19 23:50:31 UTC
(In reply to Nate Graham from comment #7)
> Thanks. Unfortunately with today's git master, I cannot reproduce the crash
> when I install Bitwarden from Flathub and type "bitw" in the Overview
> effect's search field.
> 
> Or maybe fortunately, if that means it's fixed?

Hopfully, it will go away on its own then. For now, I'll test with a new user and see if that helps.
Comment 9 Dashon 2025-03-20 01:41:14 UTC
(In reply to Nate Graham from comment #7)
> Thanks. Unfortunately with today's git master, I cannot reproduce the crash
> when I install Bitwarden from Flathub and type "bitw" in the Overview
> effect's search field.
> 
> Or maybe fortunately, if that means it's fixed?

Neither this bug nor the visual bug that this started with are replicable with a new user. Any ideas? Caching issue? I'm gonna start nuking folders and see what happens.
Comment 10 Dashon 2025-03-20 01:51:34 UTC
I ended up just rename the .config folder for a short time and it went away.