Bug 426750 - Discover crashes when updating plasma themes
Summary: Discover crashes when updating plasma themes
Status: RESOLVED FIXED
Alias: None
Product: frameworks-knewstuff
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-19 20:40 UTC by Vlad Zahorodnii
Modified: 2020-10-06 08:48 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vlad Zahorodnii 2020-09-19 20:40:38 UTC
SUMMARY


STEPS TO REPRODUCE
1. Install a plasma theme that gets regular updates
2. Wait for updates
3. Try to update the plasma theme using Discover

OBSERVED RESULT
There is a 50/50 chance that Discover crashes during the update.

EXPECTED RESULT
No crash.

SOFTWARE/OS VERSIONS
Discover: a33a2e09019be5177d48507ba08c1d344c047865
KNewStuff: 28f254aa6bdf5336f9b4a280f33577d5397fdcf8
KPackage: ab765ba261c331007a85ddd5b559e566509c2e68


ADDITIONAL INFORMATION

Backtrace of the crash:

* thread #22, name = 'Thread (pooled)', stop reason = signal SIGABRT
  * frame #0: 0x00007ffff3e7a615 libc.so.6`raise + 325
    frame #1: 0x00007ffff3e63862 libc.so.6`abort + 278
    frame #2: 0x00007ffff3ebc5e8 libc.so.6`__libc_message + 616
    frame #3: 0x00007ffff3ec427a libc.so.6`malloc_printerr + 26
    frame #4: 0x00007ffff3ec5b0c libc.so.6`_int_free + 1996
    frame #5: 0x00007ffff4465140 libQt5Core.so.5`QArrayData::deallocate(data=0x00007fff880143a0, objectSize=2, alignment=8) at qarraydata.cpp:267:11
    frame #6: 0x00007fff9054b7f6 libKF5NewStuffCore.so.5`QTypedArrayData<unsigned short>::deallocate(data=0x00007fff880143a0) at qarraydata.h:239:31
    frame #7: 0x00007fff9054b261 libKF5NewStuffCore.so.5`QString::~QString(this=0x00007fff9176db98) at qstring.h:1302:67
    frame #8: 0x00007fff9059565e libKF5NewStuffCore.so.5`KPackageTask::run(this=0x000055555748c7a0) at kpackagejob.cpp:70:17
    frame #9: 0x00007ffff4455cad libQt5Core.so.5`QThreadPoolThread::run(this=0x00007fff8c03d5b0) at qthreadpool.cpp:100:27
    frame #10: 0x00007ffff444f85f libQt5Core.so.5`QThreadPrivate::start(arg=0x00007fff8c03d5b0) at qthread_unix.cpp:329:17
    frame #11: 0x00007ffff3b253e9 libpthread.so.0`start_thread + 233
    frame #12: 0x00007ffff3f3d293 libc.so.6`__clone + 67
Comment 1 Patrick Silva 2020-09-20 00:02:28 UTC
it seems related to bug 426732
Comment 2 Nate Graham 2020-09-23 18:46:53 UTC
Not the same; this is a crash in KNewStuff while your crash is in the graphics drivers. :)
Comment 3 James Cain 2020-10-03 02:14:11 UTC
This affects me as well. Frustratingly, the dbg system fails as well, so it's not of any use here with this bug. 

I ran Discover from a terminal, the output of which is here:
https://invent.kde.org/-/snippets/1249

By the way - it fails every time.
Comment 4 Dan Leinir Turthra Jensen 2020-10-06 08:48:30 UTC
If i'm reading the backtrace here correctly, this should be fixed in 5.75 through one or the other of https://invent.kde.org/frameworks/knewstuff/-/merge_requests/60 or https://invent.kde.org/frameworks/knewstuff/-/merge_requests/59 - if you're still able to reproduce the bug after upgrading to Frameworks 5.75, please reopen with a new backtrace (as the old one is now invalidated due to the changes in those two MRs). Thanks! :)