Bug 503935 - Discover - Updates hangs for a long time after clicking Update
Summary: Discover - Updates hangs for a long time after clicking Update
Status: RESOLVED LATER
Alias: None
Product: Discover
Classification: Applications
Component: Updates (other bugs)
Version First Reported In: 5.27.12
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-08 17:38 UTC by Lastique
Modified: 2025-09-23 18:57 UTC (History)
3 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 Lastique 2025-05-08 17:38:53 UTC
SUMMARY

When there are package updates available, I click on the Updater applet icon in the system tray and then the Update button in the Discover Updates app that opens. After that, Discover hangs with no apparent activity for a long period of time (sometimes seconds, sometimes minutes), after which a prompt to enter sudo password appears.

It looks like after clicking Update Discover starts downloading some package information, because when the password prompt is shown Discover also updates the list of packages with package versions to be installed. I believe, it is this network activity that can take arbitrary amount of time is what's causing the app to appear hanging. Note that this information only starts downloading *after* I press Update, at which point this information is already useless. If it is to be downloaded, it should have been presented to the user *before* he decided to proceed with the update.

So, my suggestions are:

1. Remove downloading of this extra package information, whatever it is.
2. Otherwise, if this information is somehow necessary or useful, download it before the user clicks Update so that it is possible to review it before starting the update.
3. Add a visual indication of the ongoing activity with a progress bar.
4. In no case this activity should block the user from proceeding with the update. If the user clicks on Update before the activity is complete, stop it immediately and proceed with the update.

STEPS TO REPRODUCE

1. Have package updates available.
2. Click on the Updater icon in the system tray.
3. In the Discover app, click on Update in the top right corner.

OBSERVED RESULT

After clicking Update, the Discover app hangs for some time (varying from time to time, likely dependent on network conditions and the number of packages to be updated) before showing the password prompt.

EXPECTED RESULT

There should be no delay. Preferably, there should be no useless network activity in the background. If there is some potentially long background process, a progress bar should be displayed.

SOFTWARE/OS VERSIONS

Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.11.0-1013-lowlatency (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4700HQ CPU @ 2.40GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4600
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: N550JV
System Version: 1.0
Comment 1 Nate Graham 2025-09-23 18:57:52 UTC
Thank you for the bug report, and I'm sorry we weren't able to look into it yet. A lot has changed since it Plasma 5.27 (it's two and a half years old!), and in particular, with Plasma 6.5, Discover will tell you which backends are still refreshing, so you can at least see which one is stuck. Let's use that information to guide any further developments here, as it'll be simpler to pinpoint where the issue lies.