Bug 449771 - Discover doesn't remember list of installed add-ons after restarting. Trying to reinstall outputs: "Too few items to process"
Summary: Discover doesn't remember list of installed add-ons after restarting. Trying ...
Status: REOPENED
Alias: None
Product: Discover
Classification: Applications
Component: PackageKit (other bugs)
Version First Reported In: master
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-08 04:23 UTC by guimarcalsilva
Modified: 2023-02-16 02:52 UTC (History)
2 users (show)

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


Attachments
Incorrect list (306.92 KB, image/png)
2022-02-08 04:24 UTC, guimarcalsilva
Details
Installed packages (219.86 KB, image/png)
2022-02-08 04:25 UTC, guimarcalsilva
Details
Terminal output (19.55 KB, text/plain)
2022-02-08 04:42 UTC, guimarcalsilva
Details
Crash dump (50.12 KB, text/vnd.kde.kcrash-report)
2022-02-08 04:44 UTC, guimarcalsilva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description guimarcalsilva 2022-02-08 04:23:19 UTC
SUMMARY

This might be Neon specific, I haven't tested with other distros.

Basically installing Add-ons is broken. If you install add-ons to an application, like Dolphin, Gwenview, or Kdevelop, close Discover, and go back to the add-ons page, many entries will be incorrectly marked as not installed. Trying to install them again shows the error "Too few items to process". I made a video with the entire process. Please note that at around the 0:19 mark, on the sidebar to the left, the list item "Application Add-ons" is shown for a couple of seconds before disappearing. Here's the video (it was too big to attach here): https://www.youtube.com/watch?v=64sR0xWlUxI 

I didn't show it in the video, but I confirmed the add-ons got installed. I'll send a couple of screenshots of Dolphin showing that.

STEPS TO REPRODUCE
1. Search for an application that allows for the installation of plugins, like Dolphin, Gwenview or Kdevelop
2. Go to app page and click on "Addons"
3. Install the addons
4. Restart Discover
5. Go back to the page where you installed the addons

OBSERVED RESULT

Some entries will be marked as if they were never installed, but they are. Trying to install them again shows "Too few items to process"

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Kernel Version: 5.13.0-28-generic (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-9400F CPU @ 2.90GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Radeon RX 570 Series

ADDITIONAL INFORMATION
Comment 1 guimarcalsilva 2022-02-08 04:24:56 UTC
Created attachment 146418 [details]
Incorrect list

Both thumbnailers are shown to not be installed, however... (continues in the next attachment)
Comment 2 guimarcalsilva 2022-02-08 04:25:37 UTC
Created attachment 146419 [details]
Installed packages

...they were indeed installed by the system.
Comment 3 guimarcalsilva 2022-02-08 04:42:17 UTC
Created attachment 146420 [details]
Terminal output

In the first message, I said around 0:19 of the video that the menu entry for Application Add-ons was disappearing after trying to install those them (yes, I'm pretty sure I didn't have that problem before trying to install them). Even after restarting the computer and updating the repositories the same still happens. 

Clicking on it during the brief period it's visible makes Discover crash. There's some interesting info in the terminal output. I hope that's useful.
Comment 4 guimarcalsilva 2022-02-08 04:44:05 UTC
Created attachment 146421 [details]
Crash dump

I also have a crash dump. I'm attaching it just in case, but I don't think it's particularly relevant for this specific bug report.
Comment 5 Nate Graham 2022-02-08 17:06:11 UTC
Cannot reproduce on Fedora 35, FWIW.
Comment 6 guimarcalsilva 2023-02-16 02:41:25 UTC
Seems to not be happening anymore. There's another bug now where some extensions are shown as available but trying to install them does nothing, but that's a different bug.
Comment 7 guimarcalsilva 2023-02-16 02:52:08 UTC
> There's another bug now where some extensions are shown as available but trying to install them does nothing, but that's a different bug.

Oops, my bad.  It's actually the same bug. The extensions are indeed installed but they are not shown in the checked state on the addons page, which means the user can inadvertently try to install them while they're already installed. Curiously, now there's no message saying "too few items to process", instead, it shows the following in the terminal every time you try to install an addon that is already installed:

org.kde.plasma.libdiscover: transaction not part of the model PKTransaction(0x5593b5058b70)

Sorry for the confusion.