Bug 466702 - Discover crashes in PackageKitBackend::resolvePackages() at start after failed offline-update
Summary: Discover crashes in PackageKitBackend::resolvePackages() at start after faile...
Status: RESOLVED DUPLICATE of bug 467888
Alias: None
Product: Discover
Classification: Applications
Component: PackageKit (show other bugs)
Version: 5.27.2
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-02 09:49 UTC by Olaf Jan Schmidt
Modified: 2023-05-15 20:38 UTC (History)
3 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 Olaf Jan Schmidt 2023-03-02 09:49:54 UTC
Discover crashes during launch after installing an offline-update was interrupted because of an empty battery.
The system was installing a kernel update, which I then repaired by calling `sudo dpkg --configure -a`.

Qt Version: 5.15.8
Frameworks Version: 5.103.0

The crash might be related to bug 463768 (or not).

It is certainly related to a broken pkcon status:

> pkcon repair
                              [=========================]         
Testing changes               [=========================]         
Finished                      [=========================]         
                              [=========================]         
Waiting for authentication    [=========================]         
Loading cache                 [=========================]         
Running                       [=========================]         
Finished                      [=========================]

> pkcon offline-status
Status: Failed
ErrorCode:failed-initialization
ErrorDetails:The transaction did not complete

> sudo pkcon offline-trigger
Command failed: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_2dengine_2derror_2dquark.Code1: Prepared update not found: /var/lib/PackageKit/prepared-update

> pkcon refresh
Refreshing cache              [=========================]         
Loading cache                 [=========================]         
Downloading packages          [=========================]         
Running                       [=========================]         
Finished                      [=========================] 

> pkcon get-updates
Getting updates               [=========================]         
Loading cache                 [=========================]         
Finished                      [=========================]         
There are no updates available at this time.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007f21e4073ddc in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/packagekit-backend.so
#5  0x00007f21e4074390 in PackageKitBackend::resolvePackages(QStringList const&) () from /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/packagekit-backend.so
#6  0x00007f21e4077d3f in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/packagekit-backend.so
#7  0x00007f21e407c11d in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/packagekit-backend.so
#8  0x00007f22006e9ade in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f220216c793 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007f22006bc07a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f22006bf167 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f2200716487 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f21ff051d3b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007f21ff0a66c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007f21ff04f3e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007f2200715ad8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f22006ba99b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f22006c2f34 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x000055d03c6d5c63 in ?? ()
#20 0x00007f21ffc29d90 in __libc_start_call_main (main=main@entry=0x55d03c6d5340, argc=argc@entry=1, argv=argv@entry=0x7ffce96c0418) at ../sysdeps/nptl/libc_start_call_main.h:58
#21 0x00007f21ffc29e40 in __libc_start_main_impl (main=0x55d03c6d5340, argc=1, argv=0x7ffce96c0418, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffce96c0408) at ../csu/libc-start.c:392
#22 0x000055d03c6d66a5 in ?? ()
[Inferior 1 (process 5037) detached]
Comment 1 Olaf Jan Schmidt 2023-03-02 19:33:47 UTC
When the next updates were available, Discover was able to launch normally. After performing this next offline update, everything is back to normal again.
Comment 2 Nate Graham 2023-05-15 20:38:11 UTC

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