Bug 427650

Summary: kactivitymanagerd crashes with segmentation fault
Product: [Plasma] kactivitymanagerd Reporter: Eridani Rodríguez <eridanired123>
Component: generalAssignee: Ivan Čukić <ivan.cukic>
Status: RESOLVED FIXED    
Severity: crash CC: anonish00, kdebugs.cmrck, nate, plasma-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.20.1
Attachments: Backtrace 01

Description Eridani Rodríguez 2020-10-13 18:31:00 UTC
Created attachment 132329 [details]
Backtrace 01

SUMMARY
Upon starting Plasma, kactivitymanagerd crashes then crashes again when using Dolphin or System settings.

STEPS TO REPRODUCE
1. Reboot and wait for Plasma
2. Crash

OBSERVED RESULT
kactivitymanagerd crashes rendering impossible to use Activities.

EXPECTED RESULT
It should not crash.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.0
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0
Kernel Version: 5.4.0-48-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-4670 CPU @ 3.40GHz
Memory: 15.6 GiB of RAM
Graphics Processor: GeForce GTX 1060 3GB/PCIe/SSE2

ADDITIONAL INFORMATION
Specific VERSION with this problem is 5.20.0-0xneon+20.04+focal+build10 downgrading to 5.19.5-0xneon+20.04+focal+build9 is a workaround to maintain activities working with no noticeable drawback.

Also, https://bugs.kde.org/show_bug.cgi?id=426963 Talks about a crash on version 5.20, but I don't know if its related or not. Their trace back is not a segmentation fault, so opted for opening this ticket.
Comment 1 Ivan Čukić 2020-10-14 08:44:39 UTC
Git commit 4e48431b0b4d9b8d73002d55ffb01d2a864f1b91 by Ivan Čukić.
Committed on 14/10/2020 at 08:43.
Pushed by ivan into branch 'ivan/fix-dangling-reference-crash-in-db-error-handling'.

Fix a dangling reference to the list of database files

M  +2    -1    src/service/plugins/sqlite/Database.cpp

https://invent.kde.org/plasma/kactivitymanagerd/commit/4e48431b0b4d9b8d73002d55ffb01d2a864f1b91
Comment 2 Albert 2020-10-14 23:27:59 UTC
that patch fixed it for me
Comment 3 Ivan Čukić 2020-10-15 06:46:50 UTC
Git commit 847c1dbed6b422211285fb19d7fd07d8112349ff by Ivan Čukić.
Committed on 15/10/2020 at 06:45.
Pushed by ivan into branch 'master'.

Fix a dangling reference to the list of database files

M  +2    -1    src/service/plugins/sqlite/Database.cpp

https://invent.kde.org/plasma/kactivitymanagerd/commit/847c1dbed6b422211285fb19d7fd07d8112349ff
Comment 4 Ivan Čukić 2020-10-15 06:49:51 UTC
Git commit 590778d6f105e11f4521d5bed65ac0e30b086132 by Ivan Čukić.
Committed on 15/10/2020 at 06:49.
Pushed by ivan into branch 'Plasma/5.20'.

Fix a dangling reference to the list of database files

M  +2    -1    src/service/plugins/sqlite/Database.cpp

https://invent.kde.org/plasma/kactivitymanagerd/commit/590778d6f105e11f4521d5bed65ac0e30b086132
Comment 5 Ivan Čukić 2020-10-15 06:51:00 UTC
@Albert

Great, thanks for testing!
Comment 6 Nate Graham 2021-03-20 20:23:57 UTC
*** Bug 434576 has been marked as a duplicate of this bug. ***