Bug 464867

Summary: Entire desktop freezes when updating Flatpaks
Product: [Applications] Discover Reporter: poperigby
Component: Flatpak BackendAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, jgrulich, nate, tim, travier
Priority: NOR    
Version: 5.26.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description poperigby 2023-01-26 19:10:36 UTC
SUMMARY
When I update or install Flatpaks from Discover, Plasma will freeze for a couple of seconds near the end of the update or install task. I've tested this on my laptop and desktop, and it happens on both. People in the Fedora Kinoite Matrix room have also reported the same problem.

STEPS TO REPRODUCE
1. Open Discover
2. Try to perform an update, or install a Flatpak

OBSERVED RESULT
Plasma freezes for a few seconds near the end of the update or install task. 

EXPECTED RESULT
Plasma doesn't freeze for a few seconds.

SOFTWARE/OS VERSIONS
Operating System: Fedora Kinoite 37.20230126.0
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.7-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700 XT
Comment 1 Timothée Ravier 2023-01-27 10:58:49 UTC
I have the same issue from time to time. It looks like it does Flatpak updates heavily in parallel and that creates a lot of IO and thus the freeze.
Comment 2 Nate Graham 2023-01-27 19:54:55 UTC

*** This bug has been marked as a duplicate of bug 463353 ***
Comment 3 Aleix Pol 2023-01-28 01:14:11 UTC
@Timothée, can you maybe test this and see if it makes your life any better?
https://invent.kde.org/plasma/discover/-/merge_requests/281