Bug 466955

Summary: Discover crashes on startup in ResultsStream::resourcesFound()
Product: [Applications] Discover Reporter: Jacob Skoog <jacob.skoog>
Component: Flatpak BackendAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: aleixpol, dimeptr, jgrulich, nate, travier
Priority: NOR Keywords: drkonqi
Version: 5.27.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jacob Skoog 2023-03-06 17:28:25 UTC
Application: plasma-discover (5.27.2)

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.2.2-arch1-1 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 5.27.2 [KCrashBackend]

-- Information about the crash:
My discover application is crashing on startup where it seems to get stuck in a refresh loop for a second before the process dies

The crash can be reproduced every time.

-- Backtrace:
Application: Discover (plasma-discover), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  doActivate<false>(QObject*, int, void**) (sender=0x55996fdbd950, signal_index=3, argv=0x7ffc7bdd3860) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:132
#7  0x00007ff42e7429d7 in ResultsStream::resourcesFound(QVector<AbstractResource*> const&) (this=<optimized out>, _t1=...) at /usr/src/debug/discover/build/libdiscover/DiscoverCommon_autogen/3YJK5W5UP7/moc_AbstractResourcesBackend.cpp:159
#8  0x00007ff3df975523 in operator() (__closure=<optimized out>) at /usr/src/debug/discover/discover-5.27.2/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp:1595
#9  QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, FlatpakBackend::search(const AbstractResourcesBackend::Filters&)::<lambda()> >::call (arg=<optimized out>, f=<optimized out>) at /usr/include/qt/QtCore/qobjectdefs_impl.h:146
#10 QtPrivate::Functor<FlatpakBackend::search(const AbstractResourcesBackend::Filters&)::<lambda()>, 0>::call<QtPrivate::List<>, void> (arg=<optimized out>, f=<optimized out>) at /usr/include/qt/QtCore/qobjectdefs_impl.h:256
#11 QtPrivate::QFunctorSlotObject<FlatpakBackend::search(const AbstractResourcesBackend::Filters&)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/qt/QtCore/qobjectdefs_impl.h:443
#12 0x00007ff42c6b1bb0 in QObject::event(QEvent*) (this=0x55996cd53f70, e=0x7ff3b4094080) at kernel/qobject.cpp:1347
#13 0x00007ff42e178b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x55996cd53f70, e=0x7ff3b4094080) at kernel/qapplication.cpp:3640
#14 0x00007ff42c68df48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55996cd53f70, event=0x7ff3b4094080) at kernel/qcoreapplication.cpp:1064
#15 0x00007ff42c68dfb3 in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#16 0x00007ff42c68ea53 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x55996c6efe10) at kernel/qcoreapplication.cpp:1821
#17 0x00007ff42c6d4e88 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x55996c7407b0) at kernel/qeventdispatcher_glib.cpp:277
#18 0x00007ff42af1682b in g_main_dispatch (context=0x7ff420005010) at ../glib/glib/gmain.c:3454
#19 g_main_context_dispatch (context=0x7ff420005010) at ../glib/glib/gmain.c:4172
#20 0x00007ff42af6dcc9 in g_main_context_iterate.constprop.0 (context=0x7ff420005010, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4248
#21 0x00007ff42af150e2 in g_main_context_iteration (context=0x7ff420005010, may_block=1) at ../glib/glib/gmain.c:4313
#22 0x00007ff42c6d8c6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55996c71eea0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#23 0x00007ff42c6866ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ffc7bdd3d70, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#24 0x00007ff42c691219 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#25 0x00007ff42cb39fe2 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#26 0x00007ff42e176f2a in QApplication::exec() () at kernel/qapplication.cpp:2832
#27 0x000055996c113947 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/discover/discover-5.27.2/discover/main.cpp:224
[Inferior 1 (process 416528) detached]

Reported using DrKonqi
Comment 1 Nate Graham 2023-03-13 17:04:59 UTC
*** Bug 467027 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2023-05-15 19:11:14 UTC

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