Bug 467020

Summary: Discover repeat crashes on start
Product: [Applications] Discover Reporter: benmordecai
Component: PackageKitAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: aboriginal-guidance, aleixpol, mechauj, nate
Priority: NOR Keywords: drkonqi
Version First Reported In: 5.27.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description benmordecai 2023-03-07 18:40:46 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: X11
Distribution: "Arch Linux"
DrKonqi: 5.27.2 [KCrashBackend]

-- Information about the crash:
Sometimes the crash can be prevented by updating flatpaks from the command line but not always.

The crash can be reproduced every time.

-- Backtrace:
Application: Discover (plasma-discover), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f443ca8e512 in QCoreApplication::postEvent(QObject*, QEvent*, int) () at /usr/lib/libQt5Core.so.5
#5  0x00007f44202a40d3 in  () at /usr/lib/qt/plugins/discover/packagekit-backend.so
#6  0x00007f44202a85be in  () at /usr/lib/qt/plugins/discover/packagekit-backend.so
#7  0x00007f443cab1bb0 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#8  0x00007f443e578b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#9  0x00007f443ca8df48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#10 0x00007f443ca8ea53 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#11 0x00007f443cad4e88 in  () at /usr/lib/libQt5Core.so.5
#12 0x00007f443b71682b in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#13 0x00007f443b76dcc9 in  () at /usr/lib/libglib-2.0.so.0
#14 0x00007f443b7150e2 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#15 0x00007f443cad8c6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#16 0x00007f443ca866ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#17 0x00007f443ca91219 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#18 0x000055f1c3b0b947 in  ()
#19 0x00007f443c23c790 in  () at /usr/lib/libc.so.6
#20 0x00007f443c23c84a in __libc_start_main () at /usr/lib/libc.so.6
#21 0x000055f1c3b0c365 in  ()
[Inferior 1 (process 5676) detached]

The reporter indicates this bug may be a duplicate of or related to bug 463446, bug 463736, bug 463768, bug 465398, bug 466955.

Reported using DrKonqi
Comment 1 Nate Graham 2023-03-13 17:03:14 UTC
Thank you for the bug report! Unfortunately I can't reproduce the crash myself in Plasma 5.27.3, and the backtrace is incomplete and missing debug symbols for the following lines that we need to figure out exactly what's going wrong:

> #5  0x00007f44202a40d3 in  () at /usr/lib/qt/plugins/discover/packagekit-backend.so
> #6  0x00007f44202a85be in  () at /usr/lib/qt/plugins/discover/packagekit-backend.so

Could you please install debug symbols for Discover's PackageKit backend, reproduce the crash, and attach a new symbolicated backtrace? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Thanks again!
Comment 2 benmordecai 2023-03-14 14:32:19 UTC
It appears that my system is set up to use debuginfod, but whatever was causing the problem with plasma-discover has also caused Dr konqui to crash at the same time. That being said, the crashing has disappeared sine then. I found that if I very quickly navigated to a new tab in the program as it was launching I could sometimes prevent the crash. Additionally, it seems to be related sometimes to the state of updates needed, so in some cases updating system software and flatpaks from the command line would let me start fresh with Discover. 

I can no longer reproduce the crashes. If you want we can close this report and reopen it if the problem returns.
Comment 3 Nate Graham 2023-03-15 14:47:13 UTC
Sounds good.
Comment 4 Randy Robinson 2024-03-13 02:37:42 UTC
Created attachment 167078 [details]
New crash information added by DrKonqi

plasma-discover (5.27.7) using Qt 5.15.10

After clicking on the 'Discover' icon, the progam opened and began to synchronise.  But within about 5 second of opening, the program crashed.  Then, without any additional effort from myself, 'Discover' crashed repeatedly. (About 2 times.)

-- Backtrace (Reduced):
#4  0x00007f1ed3099030 in QMutex::lock() () from /lib64/libQt5Core.so.5
#5  0x00007f1ed32cddda in QCoreApplication::postEvent(QObject*, QEvent*, int) () from /lib64/libQt5Core.so.5
#6  0x00007f1eb003c6fa in std::_Function_handler<void (), PackageKitBackend::search(AbstractResourcesBackend::Filters const&)::$_3>::_M_invoke(std::_Any_data const&) () from /usr/lib64/qt5/plugins/discover/packagekit-backend.so
#7  0x00007f1ed32fee3a in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#8  0x00007f1ed4ebafaf in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
Comment 5 Nate Graham 2024-08-05 17:51:35 UTC
*** Bug 491304 has been marked as a duplicate of this bug. ***