Bug 420867 - New crash on start in 5.12 from Skrooge knsrc files
Summary: New crash on start in 5.12 from Skrooge knsrc files
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.12.8
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-01 18:09 UTC by Kon
Modified: 2021-02-25 15:59 UTC (History)
1 user (show)

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


Attachments
DrKonqi backtrace - 3 stars! (46.72 KB, text/plain)
2020-05-01 18:09 UTC, Kon
Details
Problematic knsrc file (143 bytes, text/plain)
2020-05-01 18:10 UTC, Kon
Details
skrooge_monthly.knsrc (143 bytes, text/plain)
2020-05-01 18:11 UTC, Kon
Details
skrooge_unit.knsrc (142 bytes, text/plain)
2020-05-01 18:11 UTC, Kon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kon 2020-05-01 18:09:22 UTC
Created attachment 128066 [details]
DrKonqi backtrace - 3 stars!

New crash during Discover's update check. No major changes to old Kubuntu 18.04 installation. Fixed by removing knsrc files installed by Skrooge.

Best guess to reproduce:

Install Skrooge 2.11.0 from Ubuntu 18.04 repository
Start Discover normally without any flags

I don't know why this happened now as neither Discover nor Skrooge had any updates.

The crash did NOT occur when running with flags:

plasma-discover --backends packagekit-backend kns-backend flatpak-backend

Those were all my listed backends. But reliably crashed every time with 'plasma-discover' or GUI launch.


Kubuntu 18.04
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5
-------------------------------------

Terminal output from running 'plasma-discover':

no packages for "org.cockpit_project.cockpit"
no packages for "com.obsproject.Studio"
no packages for "im.riot.webapp"
invalid kns backend! "/etc/xdg/ksysguard.knsrc" because: "Config group not found! Check your KNS3 installation."
invalid kns backend! "/etc/xdg/servicemenu.knsrc" because: "Config group not found! Check your KNS3 installation."
Discarding invalid backend "ksysguard.knsrc"
Discarding invalid backend "servicemenu.knsrc"
setting currentApplicationBackend PackageKitBackend(0x55d750150d90)
org.kde.knewstuff.core: Could not find category "Skrooge report template"
invalid kns backend! "/etc/xdg/skrooge_monthly.knsrc" because: "All categories are missing"
Discarding invalid backend "skrooge_monthly.knsrc"
kns error "/etc/xdg/skrooge_monthly.knsrc" "Invalid Skrooge_monthly backend, contact your distributor."
org.kde.knewstuff.core: Could not find category "Skrooge quote source"
invalid kns backend! "/etc/xdg/skrooge_unit.knsrc" because: "All categories are missing"
Discarding invalid backend "skrooge_unit.knsrc"
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasma-discover path = /usr/bin pid = 3308
KCrash: Arguments: /usr/bin/plasma-discover 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 46 and type 'Read', disabling...
QSocketNotifier: Invalid socket 44 and type 'Read', disabling...
QSocketNotifier: Invalid socket 153 and type 'Read', disabling...
QSocketNotifier: Invalid socket 121 and type 'Read', disabling...
QSocketNotifier: Invalid socket 122 and type 'Read', disabling...
QSocketNotifier: Invalid socket 62 and type 'Read', disabling...
QSocketNotifier: Invalid socket 68 and type 'Read', disabling...
QSocketNotifier: Invalid socket 80 and type 'Read', disabling...
QSocketNotifier: Invalid socket 61 and type 'Read', disabling...
QSocketNotifier: Invalid socket 45 and type 'Read', disabling...
QSocketNotifier: Invalid socket 154 and type 'Read', disabling...
QSocketNotifier: Invalid socket 41 and type 'Read', disabling...
QSocketNotifier: Invalid socket 69 and type 'Read', disabling...
QSocketNotifier: Invalid socket 53 and type 'Read', disabling...
QSocketNotifier: Invalid socket 67 and type 'Read', disabling...
QSocketNotifier: Invalid socket 43 and type 'Read', disabling...
QSocketNotifier: Invalid socket 81 and type 'Read', disabling...
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 18 and type 'Read', disabling...
QSocketNotifier: Invalid socket 14 and type 'Read', disabling...

[1]+  Stopped                 plasma-discover
Comment 1 Kon 2020-05-01 18:10:39 UTC
Created attachment 128067 [details]
Problematic knsrc file
Comment 2 Kon 2020-05-01 18:11:20 UTC
Created attachment 128068 [details]
skrooge_monthly.knsrc
Comment 3 Kon 2020-05-01 18:11:52 UTC
Created attachment 128069 [details]
skrooge_unit.knsrc
Comment 4 Kon 2020-05-03 14:43:04 UTC
After further testing, this crash could not be reproduced on Discover 5.18, even with the same knsrc files. In that case, Discover 5.18 seemed to simply ignore them. There was no terminal output regarding Skrooge.

In Discover 5.12, updating the Skrooge knsrc files to use the new, correct Provider URL resolved the crash.