Bug 457059 - KDE Discover crashes in FlatpakResource::FlatpakResource() when opening com.discordapp.Discord.flatpakref from Flathub
Summary: KDE Discover crashes in FlatpakResource::FlatpakResource() when opening com.d...
Status: RESOLVED WORKSFORME
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (other bugs)
Version First Reported In: 5.24.4
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-07-24 02:30 UTC by Jonathan Alfonso
Modified: 2025-11-07 03:48 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Alfonso 2022-07-24 02:30:43 UTC
Application: plasma-discover (5.24.4)

Qt Version: 5.15.2
Frameworks Version: 5.90.0
Operating System: Linux 5.14.21-150400.24.11-default x86_64
Windowing System: X11
Distribution: "openSUSE Leap 15.4"
DrKonqi: 5.24.4 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Trying to install Discord from Flathub. I was successful in installing Discord through the terminal; I only had issues when opening the .flatpakref file from Flathub. After installing Discord through the terminal using the command line flatpak command, the .flatpakref file opens properly with KDE Discover. I am unable to reproduce this issue once this was performed. My system was a fresh installation of OpenSUSE Leap 15.4 before this change.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  g_type_check_instance_is_fundamentally_a (type_instance=type_instance@entry=0x7faf608729b0, fundamental_type=fundamental_type@entry=80) at ../gobject/gtype.c:4093
#5  0x00007fafd7cad633 in g_object_ref (_object=0x7faf608729b0) at ../gobject/gobject.c:3443
#6  0x00007faf93dd5e29 in FlatpakResource::FlatpakResource (this=0x55bcfdba4e00, component=..., installation=0x7faf80012210, parent=<optimized out>) at /usr/src/debug/discover-5.24.4-bp154.1.44.x86_64/libdiscover/backends/FlatpakBackend/FlatpakResource.cpp:52
#7  0x00007faf93de253b in FlatpakBackend::addAppFromFlatpakRef (this=0x55bcf5121e90, url=..., stream=0x55bcf517c4f0) at /usr/src/debug/discover-5.24.4-bp154.1.44.x86_64/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp:730
#8  0x00007faf93dea9b2 in FlatpakFetchRemoteResourceJob::processFile (this=0x55bcf517c740, fileUrl=...) at /usr/src/debug/discover-5.24.4-bp154.1.44.x86_64/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp:297
#9  0x00007fafde0c8cfb in QObject::event (this=0x55bcf517c4f0, e=0x55bcf517cf20) at kernel/qobject.cpp:1314
#10 0x00007fafe05093ac in QApplicationPrivate::notify_helper (this=this@entry=0x55bcf4813400, receiver=receiver@entry=0x55bcf517c4f0, e=e@entry=0x55bcf517cf20) at kernel/qapplication.cpp:3632
#11 0x00007fafe05101a0 in QApplication::notify (this=0x7ffefd9b6e50, receiver=0x55bcf517c4f0, e=0x55bcf517cf20) at kernel/qapplication.cpp:3156
#12 0x00007fafde094ac3 in QCoreApplication::notifyInternal2 (receiver=0x55bcf517c4f0, event=0x55bcf517cf20) at kernel/qcoreapplication.cpp:1064
#13 0x00007fafde094c9e in QCoreApplication::sendEvent (receiver=receiver@entry=0x55bcf517c4f0, event=event@entry=0x55bcf517cf20) at kernel/qcoreapplication.cpp:1462
#14 0x00007fafde0974e1 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x55bcf481f580) at kernel/qcoreapplication.cpp:1821
#15 0x00007fafde097a68 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1680
#16 0x00007fafde0f7a33 in postEventSourceDispatch (s=0x55bcf48e6610) at kernel/qeventdispatcher_glib.cpp:277
#17 0x00007fafd89ab7fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#18 0x00007fafd89abba0 in ?? () from /usr/lib64/libglib-2.0.so.0
#19 0x00007fafd89abc2c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#20 0x00007fafde0f70dc in QEventDispatcherGlib::processEvents (this=0x55bcf48ea0c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#21 0x00007fafde09333a in QEventLoop::exec (this=this@entry=0x7ffefd9b6d70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:232
#22 0x00007fafde09cb37 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1375
#23 0x000055bcf4016c89 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/discover-5.24.4-bp154.1.44.x86_64/discover/main.cpp:217
[Inferior 1 (process 17176) detached]

The reporter indicates this bug may be a duplicate of or related to bug 442709.

Possible duplicates by query: bug 449277, bug 442709, bug 440877.

Reported using DrKonqi
Comment 1 Nate Graham 2022-07-27 02:31:46 UTC
Cannot reproduce with current git master. Possibly fixed recently.
Comment 2 Timothée Ravier 2022-07-27 09:48:15 UTC
Removing myself as I'm not responsible for OpenSUSE RPMs
Comment 3 john.liptrot 2025-10-08 18:17:06 UTC
Cannot reproduce.

Is this still an issue for you?

Thanks.
Comment 4 Bug Janitor Service 2025-10-23 03:47:13 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2025-11-07 03:48:33 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.