https://bugs.kde.org/show_bug.cgi?id=503935

            Bug ID: 503935
           Summary: Discover - Updates hangs for a long time after
                    clicking Update
    Classification: Applications
           Product: Discover
           Version: 5.27.12
          Platform: Kubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Updates (interactive)
          Assignee: plasma-b...@kde.org
          Reporter: andy...@mail.ru
                CC: aleix...@kde.org
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to