Bug 477202 - Discover crashed in ResourcesProxyModel::sortedInsertion() after clicking on "Add exe games to Lutris library" in the "Applications addons" section
Summary: Discover crashed in ResourcesProxyModel::sortedInsertion() after clicking on ...
Status: RESOLVED DUPLICATE of bug 482095
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi, qt6
Depends on:
Blocks:
 
Reported: 2023-11-18 19:37 UTC by Patrick Silva
Modified: 2024-03-04 13:03 UTC (History)
4 users (show)

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


Attachments
New crash information added by DrKonqi (154.01 KB, text/plain)
2023-11-18 19:38 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2023-11-18 19:37:57 UTC
Application: plasma-discover (5.81.80)

Qt Version: 6.6.0
Frameworks Version: 5.245.0
Operating System: Linux 6.5.7-060507-generic x86_64
Windowing System: Wayland
Distribution: KDE neon Unstable Edition
DrKonqi: 5.81.80 [CoredumpBackend]

-- Information about the crash:
I clicked on "Applicatins addons" in the sidebar, clicked on the second addon and then Discover crashed.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140194234072256) at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (signo=6, threadid=140194234072256) at ./nptl/pthread_kill.c:78
#8  __GI___pthread_kill (threadid=140194234072256, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9  0x00007f8187842476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x00007f81878287f3 in __GI_abort () at ./stdlib/abort.c:79


Reported using DrKonqi
Comment 1 Patrick Silva 2023-11-18 19:38:01 UTC
Created attachment 163275 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Nicolas Fella 2023-11-18 19:46:10 UTC
#6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140194234072256) at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (signo=6, threadid=140194234072256) at ./nptl/pthread_kill.c:78
#8  __GI___pthread_kill (threadid=140194234072256, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9  0x00007f8187842476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x00007f81878287f3 in __GI_abort () at ./stdlib/abort.c:79
#11 0x00007f81884d6fb7 in qAbort() () at ./src/corelib/global/qglobal.cpp:161
#12 0x00007f81884d2465 in qt_message_fatal<QString&> (message=..., context=<optimized out>) at ./src/corelib/global/qlogging.cpp:2003
#13 qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, context=<optimized out>, msg=<optimized out>, ap=ap@entry=0x7ffd3c4d69f0) at ./src/corelib/global/qlogging.cpp:378
#14 0x00007f81884d79e3 in QMessageLogger::fatal(char const*, ...) const (this=<optimized out>, msg=<optimized out>) at ./src/corelib/global/qlogging.cpp:901
#15 0x00007f81884a5908 in qt_assert(char const*, char const*, int) (assertion=assertion@entry=0x7f818a9b2c78 "_res.size() == QSet(_res.constBegin(), _res.constEnd()).size()", file=file@entry=0x7f818a9b2648 "./libdiscover/resources/ResourcesProxyModel.cpp", line=line@entry=631) at ./src/corelib/global/qassert.cpp:68
#16 0x00007f818a93f7de in ResourcesProxyModel::sortedInsertion(QList<StreamResult> const&) (this=0x55c48ee22c10, _res=...) at ./libdiscover/resources/ResourcesProxyModel.cpp:631
#17 0x00007f818a98024f in ResourcesProxyModel::addResources(QList<StreamResult> const&) (this=0x55c48ee22c10, _res=<optimized out>) at ./libdiscover/resources/ResourcesProxyModel.cpp:277
#18 0x00007f8188426b9e in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd3c4d6cf0, r=0x55c48ee22c10, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ./src/corelib/kernel/qobjectdefs_impl.h:433
#19 doActivate<false>(QObject*, int, void**) (sender=0x55c48f378110, signal_index=3, argv=0x7ffd3c4d6cf0) at ./src/corelib/kernel/qobject.cpp:4021
#20 0x00007f818a9446f6 in ResultsStream::resourcesFound(QList<StreamResult> const&) (this=<optimized out>, _t1=<optimized out>) at ./obj-x86_64-linux-gnu/libdiscover/DiscoverCommon_autogen/3YJK5W5UP7/moc_AbstractResourcesBackend.cpp:187
#21 0x00007f818a9729f9 in AggregatedResultsStream::emitResults() (this=0x55c48f378110) at ./libdiscover/resources/ResourcesModel.cpp:341
#22 0x00007f818a972ac0 in AggregatedResultsStream::clear() (this=0x55c48f378110) at ./libdiscover/resources/ResourcesModel.cpp:367
#23 AggregatedResultsStream::clear() (this=0x55c48f378110) at ./libdiscover/resources/ResourcesModel.cpp:364
#24 0x00007f818a975248 in AggregatedResultsStream::streamDestruction(QObject*) (this=0x55c48f378110, obj=<optimized out>) at ./libdiscover/resources/ResourcesModel.cpp:361
#25 0x00007f8188426b9e in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffd3c4d6eb0, r=0x55c48f378110, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ./src/corelib/kernel/qobjectdefs_impl.h:433
#26 doActivate<false>(QObject*, int, void**) (sender=0x55c48f3781d0, signal_index=0, argv=0x7ffd3c4d6eb0) at ./src/corelib/kernel/qobject.cpp:4021
#27 0x00007f81883ce6c3 in QObject::destroyed(QObject*) (this=<optimized out>, _t1=<optimized out>) at ./obj-x86_64-linux-gnu/src/corelib/kernel/moc_qobject.cpp:272
#28 0x00007f81883cb33c in QObject::~QObject() (this=this@entry=0x55c48f3781d0, this=<optimized out>) at ./src/corelib/kernel/qobject.cpp:1061
#29 0x00007f818a98a147 in ResultsStream::~ResultsStream() (this=this@entry=0x55c48f3781d0, this=<optimized out>) at ./libdiscover/resources/AbstractResourcesBackend.cpp:63
#30 0x00007f81503a0887 in KNSResultsStream::~KNSResultsStream() (this=0x55c48f3781d0, this=<optimized out>) at ./libdiscover/backends/KNSBackend/KNSBackend.cpp:89
#31 KNSResultsStream::~KNSResultsStream() (this=0x55c48f3781d0, this=<optimized out>) at ./libdiscover/backends/KNSBackend/KNSBackend.cpp:89
#32 0x00007f81883c6eb3 in QObject::event(QEvent*) (this=0x55c48f3781d0, e=0x7f80a40e95f0) at ./src/corelib/kernel/qobject.cpp:1424
#33 0x00007f818a5f079b in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55c48f3781d0, e=0x7f80a40e95f0) at ./src/widgets/kernel/qapplication.cpp:3290
#34 0x00007f818845e828 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55c48f3781d0, event=event@entry=0x7f80a40e95f0) at ./src/corelib/kernel/qcoreapplication.cpp:1118
#35 0x00007f818845e86d in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=<optimized out>, event=event@entry=0x7f80a40e95f0) at ./src/corelib/kernel/qcoreapplication.cpp:1536
#36 0x00007f818845ef40 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x55c48c544e20) at ./src/corelib/kernel/qcoreapplication.cpp:1898
#37 0x00007f8188263087 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x55c48c549b10) at ./src/corelib/kernel/qeventdispatcher_glib.cpp:243
#38 0x00007f81873abd3b in g_main_dispatch (context=0x7f817c005040) at ../../../glib/gmain.c:3419
#39 g_main_context_dispatch (context=0x7f817c005040) at ../../../glib/gmain.c:4137
#40 0x00007f8187401258 in g_main_context_iterate.constprop.0 (context=context@entry=0x7f817c005040, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4213
#41 0x00007f81873a93e3 in g_main_context_iteration (context=0x7f817c005040, may_block=1) at ../../../glib/gmain.c:4278
#42 0x00007f818825de60 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55c48c500a40, flags=...) at ./src/corelib/kernel/qeventdispatcher_glib.cpp:393
#43 0x00007f8188460a5b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd3c4d7380, flags=..., flags@entry=...) at ./src/corelib/global/qflags.h:34
#44 0x00007f818846268c in QCoreApplication::exec() () at ./src/corelib/global/qflags.h:74
#45 0x00007f81888e9940 in QGuiApplication::exec() () at ./src/gui/kernel/qguiapplication.cpp:1921
#46 0x00007f818a5e8c89 in QApplication::exec() () at ./src/widgets/kernel/qapplication.cpp:2569
#47 0x000055c48b7d758f in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ./discover/main.cpp:225
Comment 3 Nate Graham 2023-11-26 16:30:34 UTC
Cannot reproduce. What was the exact thing you clicked on a second time that caused the crash?
Comment 4 Patrick Silva 2023-11-26 17:03:41 UTC
The clicked addon was "Add exe games to Lutris library".
Comment 5 Nate Graham 2023-11-29 19:24:15 UTC
Works for me. :/
Comment 6 Harald Sitter 2024-03-04 13:03:42 UTC

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