Bug 484886 - Discover fails to find installed runtimes required by some flatpak apps
Summary: Discover fails to find installed runtimes required by some flatpak apps
Status: REOPENED
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (show other bugs)
Version: 6.0.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 19:21 UTC by Pongpeera Wongprasitthiporn
Modified: 2024-10-12 14:04 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pongpeera Wongprasitthiporn 2024-04-01 19:21:07 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
I'm trying to update the Flatpak version of An Anime Game Launcher, which requires org.gnome.Platform/x86_64/45. I already have that runtime installed but Discover did not find it and the update failed. Running `flatpak upgrade` in the terminal manually allowed me to update successfully.

STEPS TO REPRODUCE
1. Install org.gnome.Platform/x86_64/45
2. Install the Flatpak version of An Anime Game Launcher via the command line
3. When An Anime Game Launcher's updates show up in Discover, update it using the Updates section of Discover.

OBSERVED RESULT

An error message: The application moe.launcher.an-anime-game-launcher/x86_64/master requires the runtime org.gnome.Platform/x86_64/45 which was not found

EXPECTED RESULT

The update completes successfully

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  Fedora 40 Kinoite
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Harald Sitter 2024-04-17 08:56:32 UTC
I can't seem to reproduce this by upgrading from an ancient version. Also the error comes out of flatpak directly so I doubt we have anything to do with it. I don't suppose you have more details on how to reproduce this?

installed version is
    Commit: 97c48dd93e94f925ea7d097650e2dbd42320bf10a598c45837a1b6cd03df7ee1
   Subject: Export moe.launcher.an-anime-game-launcher
      Date: 2023-08-20 17:00:38 +0000

update target is
    Commit: 3ecc125225d0486d609f2d9108bdfb1433a04fda3ba915b57e38a8834a7ec1bf
   Subject: Export moe.launcher.an-anime-game-launcher
      Date: 2024-03-31 19:53:10 +0000

update executes correctly
Comment 2 Bug Janitor Service 2024-05-02 03:45:53 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2024-05-17 03:45:28 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 4 Pongpeera Wongprasitthiporn 2024-07-15 17:20:42 UTC
I'm trying to install Honkers Railway Launcher from launcher.moe flatpak repo, I got similar error:

The application moe.launcher.the-honkers-railway-launcher/x86_64/master requires the runtime org.gnome.Platform/x86_64/45 which was not found

I'm not sure if this is caused by org.gnome.Platform/x86_64/45 being a system installation but moe.launcher.the-honkers-railway-launcher/x86_64/master being a user installation and Discover tries to find org.gnome.Platform/x86_64/45 in the user installation.

Or maybe Discover was trying to look for org.gnome.Platform/x86_64/45 in launcher.moe repo? I'm not sure how can I gather information for this one though.
Comment 5 Pongpeera Wongprasitthiporn 2024-07-15 17:46:50 UTC
After adding Flathub and installing org.gnome.Platform/x86_64/45 from it with --user flag in the terminal, Discover successfully installed moe.launcher.the-honkers-railway-launcher/x86_64/master from launcher.moe flatpak repo.

So far, this means:
- At first, there was only a system-wide Flathub and org.gnome.Platform/x86_64/45 installed, nothing in the user installation.
- I added the launcher.moe repo in the user installation, following instructions on their GitHub repo.
- I installed An Anime Game Launcher from launcher.moe using Flatpak commandline, it detected the system-wide org.gnome.Platform/x86_64/45 and simply didn't installing anything extra.
- I tried to install The Honkers Railway Launcher from launcher.moe using Discover, it did not detect the existing system-wide org.gnome.Platform/x86_64/45 and tried to look for org.gnome.Platform/x86_64/45 in the user installation, did not found and complained.
- I added Flathub and installed org.gnome.Platform/x86_64/45 using Flatpak commandline with --user flag.
- I tried to install The Honkers Railway Launcher from launcher.moe using Discover, it found org.gnome.Platform/x86_64/45 in the user installation and successfully installed The Honkers Railway Launcher.

I think Discover probably should also look for existing system-wide runtimes when installing a Flatpak app in the user installation, like how Flatpak commandline currently handles it.
Comment 6 Talya 2024-08-25 11:31:17 UTC
I just had a similar experience.
I have org.signal.Signal installed from external repo https://signalflatpak.github.io/signal/signal.flatpakrepo. when I went to update it today, I got an error saying org.freedesktop.Platform/aarch64/23.08 was missing.
running in the command line
> flatpak install org.freedesktop.Platform/aarch64/23.08
results in
> Skipping: org.freedesktop.Platform/aarch64/23.08 is already installed
and updating org.signal.Signal in the command line worked perfectly fine.

Operating System: Fedora Linux Asahi Remix 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.6-401.asahi.fc40.aarch64+16k (64-bit)
Graphics Platform: Wayland
Comment 7 Talya 2024-08-29 21:17:47 UTC
Just happened again with the same app.
> The application org.signal.Signal/aarch64/master requires the runtime org.freedesktop.Platform/aarch64/23.08 which was not found

Updating via command line worked perfectly fine.
Comment 8 Talya 2024-10-12 14:04:28 UTC
now in plasma 6.2, there isn't even an error message, the app just flickers, then returns to the list of apps to be updated as if nothing happened. (and command line works as always)