Bug 419648 - Discover is unable to update plasma addons and even crashes
Summary: Discover is unable to update plasma addons and even crashes
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.18.4
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-04 19:43 UTC by Andres
Modified: 2021-03-05 15:44 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: Plasma 5.20 and Frameworks 5.75


Attachments
discover log (662.24 KB, text/x-log)
2020-04-04 19:43 UTC, Andres
Details
gdb output (88.84 KB, text/x-log)
2020-08-18 21:50 UTC, Andres
Details
gdb log with crash (111.19 KB, text/x-log)
2020-08-18 22:51 UTC, Andres
Details
gdb log with crash (111.19 KB, text/x-log)
2020-08-18 22:53 UTC, Andres
Details
Discover 5.20 backtrace (27.72 KB, text/vnd.kde.kcrash-report)
2020-10-14 08:53 UTC, Riccardo Robecchi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andres 2020-04-04 19:43:00 UTC
Created attachment 127276 [details]
discover log

SUMMARY
Discover is unable to update plasma addons

STEPS TO REPRODUCE
1. open discover
2. check for updates
3. try to install an update for a plasma addon

OBSERVED RESULT
 will not update and will even crash sometimes

EXPECTED RESULT

Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.2
Kernel Version: 5.6.2-5-tkg-pds
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 15.6 GiB of RAM


ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2020-05-09 21:00:49 UTC
Today I tried to update a global theme with Discover, it did not crash but got stuck at 0% and never finished the update process.

Operating System: Arch Linux 
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2
Comment 2 Aleix Pol 2020-06-21 01:38:00 UTC
Could you provide a backtrace, if possible with debug symbols?
Comment 3 Aleix Pol 2020-06-21 01:38:33 UTC
Please provide a backtrace.
Comment 4 Andres 2020-07-20 17:59:09 UTC
this still happening on my arch system ( I no longer have manjaro) 
Operating System: Arch Linux
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Kernel Version: 5.7.9-20-tkg-pds
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: GeForce GTX 1080/PCIe/SSE2

It's not crashing anymore though how do I provide a backtrace?
Comment 5 Andres 2020-08-07 21:00:55 UTC
I got a crash on the latest git with snap support
```
Application: Discover (plasma-discover), signal: Aborted

[KCrash Handler]
#4  0x00007f093b878355 in raise () at /usr/lib/libc.so.6
#5  0x00007f093b861853 in abort () at /usr/lib/libc.so.6
#6  0x00007f093b8bb878 in __libc_message () at /usr/lib/libc.so.6
#7  0x00007f093b8c2d3a in  () at /usr/lib/libc.so.6
#8  0x00007f093b8c3ef4 in _int_free () at /usr/lib/libc.so.6
#9  0x00007f092c4210dd in  () at /usr/lib/libKF5NewStuffCore.so.5
#10 0x00007f093bec21d2 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#11 0x00007f093ce56702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#12 0x00007f093be957ba in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#13 0x00007f093be982a3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#14 0x00007f093beeecf4 in  () at /usr/lib/libQt5Core.so.5
#15 0x00007f093a35043c in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#16 0x00007f093a39e1d9 in  () at /usr/lib/libglib-2.0.so.0
#17 0x00007f093a34f221 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#18 0x00007f093beee331 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#19 0x00007f093be9413c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#20 0x00007f093be9c5c4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#21 0x000055eec126aec8 in  ()
#22 0x00007f093b863002 in __libc_start_main () at /usr/lib/libc.so.6
#23 0x000055eec126b45e in _start ()
[Inferior 1 (process 10673) detached]
```
Comment 6 Andres 2020-08-07 21:19:43 UTC
I figured out how to reproduce the crash on my system if I have more than 15 updates selected at once it will crash. so i can update the whole list of pacakages by selecting 15 at a time, however they don't seem to be achtually installing and the updates will just come back when i check for updates
Comment 7 Aleix Pol 2020-08-11 00:36:33 UTC
This is super weird. I can't reproduce  and the backtrace doesn't really bring any information. Maybe you could bring the rest of the threads?
Comment 8 Andres 2020-08-18 21:50:54 UTC
Created attachment 130980 [details]
gdb output

here is a new log I got with GDB (was using drkonki before) I'm not too familiar with how to debug kde applications so, I apologize in advance if I make a mistake
Comment 9 Andres 2020-08-18 21:53:19 UTC
(In reply to andresdortiz from comment #8)
> Created attachment 130980 [details]
> gdb output
> 
> here is a new log I got with GDB (was using drkonki before) I'm not too
> familiar with how to debug kde applications so, I apologize in advance if I
> make a mistake

something I forgot to mention is I can no longer seem to get it to crash but it does hang when I do an update. also might be unrelated but I am unable to search for new applications/plasma addons in discover
Comment 10 Andres 2020-08-18 22:51:29 UTC
Created attachment 130985 [details]
gdb log with crash

I was able to get it to crash by searching and browsing for new themes and stuff while updates where running in discover
Comment 11 Andres 2020-08-18 22:53:07 UTC
Created attachment 130986 [details]
gdb log with crash

was able to produce a crash by searching/borowsing for new addons while updates are runing
Comment 12 Nate Graham 2020-10-01 18:04:30 UTC
Should be fixed by a combination of the fixes from Bug 427201 and Bug 426732!
Comment 13 Riccardo Robecchi 2020-10-14 08:53:11 UTC
(In reply to Nate Graham from comment #12)
> Should be fixed by a combination of the fixes from Bug 427201 and Bug 426732!

The bug is still there: Discover notified me of the presence of updates for add-ons, I tried to install them but it crashed. It is reproducible every time. Please see attached backtrace.
OS version: KDE neon Focal
Plasma version: 5.20.0
KDE Frameworks version: 5.75.0
Qt version: 5.15
Comment 14 Riccardo Robecchi 2020-10-14 08:53:38 UTC
Created attachment 132343 [details]
Discover 5.20 backtrace
Comment 15 Andres 2020-11-06 02:01:55 UTC
still get a crash 

Qt Version: 5.15.1
Frameworks Version: 5.75.0
Operating System: Linux 5.9.3-95-tkg-pds x86_64
Windowing system: X11
Distribution: "Arch Linux"

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x0000000057a56cd4 in  ()
#5  0x00007f9b00334e41 in  () at /usr/lib/libKF5NewStuffCore.so.5
#6  0x00007f9b1cb5b36e in QObjectPrivate::deleteChildren() () at /usr/lib/libQt5Core.so.5
#7  0x00007f9b1cb661d5 in QObject::~QObject() () at /usr/lib/libQt5Core.so.5
#8  0x00007f9b00334344 in  () at /usr/lib/libKF5NewStuffCore.so.5
#9  0x00007f9b1cb5d5a0 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#10 0x00007f9b1daec752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#11 0x00007f9b1cb30cda in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#12 0x00007f9b1cb337d3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#13 0x00007f9b1cb8a304 in  () at /usr/lib/libQt5Core.so.5
#14 0x00007f9b1afd3914 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#15 0x00007f9b1b0277d1 in  () at /usr/lib/libglib-2.0.so.0
#16 0x00007f9b1afd2121 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#17 0x00007f9b1cb89941 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#18 0x00007f9b1cb2f65c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#19 0x00007f9b1cb37af4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#20 0x000056511255883f in  ()
#21 0x00007f9b1c4fd152 in __libc_start_main () at /usr/lib/libc.so.6
#22 0x0000565112558dce in _start ()
[Inferior 1 (process 95059) detached]

Report to https://bugs.kde.org/
Comment 16 Riccardo Robecchi 2020-11-15 11:18:04 UTC
It is currently fixed for me.
Comment 17 Aleix Pol 2021-03-05 15:44:57 UTC
Let's close as fixed, there's been a lot of fixes since that date and the reporters cannot reproduce anymore.
Please reopen if you get it to crash on a supported release.