Bug 505077

Summary: Crash on Startup
Product: [Applications] Discover Reporter: Claire <accounts>
Component: KDE Linux backendAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED BACKTRACE    
Severity: crash CC: aleixpol, kde
Priority: NOR    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Claire 2025-05-31 21:42:23 UTC
SUMMARY
KDE Discover crashes on startup, with logs indicating a problem in the font backend. I was told to contact the distributor (Fedora), but others in the Matrix suggested reporting here as well just in case.

STEPS TO REPRODUCE
1. Launch KDE Discover

OBSERVED RESULT
KDE Discover hangs, and then crashes.

EXPECTED RESULT
Discover does not crash.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.8-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 7800 XT

ADDITIONAL INFORMATION
Here's the output when ran from terminal. I tried to generate a trace, but it took a very long time -- I believe it is quite large. That said, abrt did manage to generate a trace: https://retrace.fedoraproject.org/faf/reports/1214472/

org.kde.plasma.libdiscover: OdrsReviewsBackend: Fetch ratings: true
adding empty sources model QStandardItemModel(0x5620b56fec70)
qrc:/qt/qml/org/kde/discover/qml/BrowsingPage.qml:17:1: QML BrowsingPage: Created graphical object was not placed in the graphics scene.
org.kde.plasma.discover: couldn't open file "/home/claire/.cache/discover/featured-5.9.json" "No such file or directory"
kf.newstuff.core: "SSL handshake failed: The host name did not match any of the valid hosts for this certificate"
KNS error in "Fonts" : KNSCore::ErrorCode::ProviderError "Loading of providers from file: https://cdn.kde.org/khotnewstuff/v1/fonts-providers.xml failed" QVariant(QUrl, QUrl("https://cdn.kde.org/khotnewstuff/v1/fonts-providers.xml"))
invalid kns backend! "/usr/share/knsrcfiles/kfontinst.knsrc" because: "Invalid Fonts backend, contact your distributor."
Invalidated backend, deactivating "kfontinst.knsrc"
org.kde.plasma.libdiscover: Discarding invalid backend "kfontinst.knsrc"
org.kde.plasma.libdiscover: last stream isn't over yet Filters(category: Category(0x5620b573f470, name = "Games"),) ResourcesProxyModel(0x5620b6030050)
org.kde.plasma.libdiscover: last stream isn't over yet Filters(category: Category(0x5620b57330f0, name = "Developer Tools"),) ResourcesProxyModel(0x5620b630b410)
qrc:/qt/qml/org/kde/discover/qml/DiscoverDrawer.qml:185:13: Unable to assign [undefined] to bool
qrc:/qt/qml/org/kde/discover/qml/DiscoverDrawer.qml:185:13: Unable to assign [undefined] to bool
Invalidated backend, deactivating "kfontinst.knsrc"
kns error "/usr/share/knsrcfiles/kfontinst.knsrc" "Invalid Fonts backend, contact your distributor."
KCrash: Application 'plasma-discover' crashing... crashRecursionCounter = 2
kf.kio.core: Connection::send() called with connection not inited
kf.kio.core: An error occurred during write. The worker terminates now.
zsh: segmentation fault (core dumped)  plasma-discover

Following the link to https://cdn.kde.org/khotnewstuff/v1/fonts-providers.xml in my browser indicated that the certificate for cdn.kde.org is invalid as it is missing from SANs. I'm unsure why this crash doesn't seem to be effecting more users, however.
Comment 1 Claire 2025-05-31 22:08:56 UTC
Turned out the backend was a false positive, the real issue was packagekit. Running pkcon refresh force fixed the issue. HOWEVER, the SSL handshake does still fail, and definitely needs to be fixed.
Comment 2 David Edmundson 2025-06-01 13:44:19 UTC
Any crashes need a backtrace to be actionable by developers. 
Please see `coredumpctl gdb discover` and attach (or wait, and we'll fix it via Sentry reports)