flathub / com.valvesoftware.Steam

https://flathub.org/apps/details/com.valvesoftware.Steam
344 stars 69 forks source link

Some Environment variables like mangohud and obsvkcapture suddenly stopped working #1360

Closed openwick closed 1 week ago

openwick commented 1 week ago

Game information

All games have this issue.

Distribution name and version where applicable

Arch linux

Flatpak info

❯ flatpak --version
Flatpak 1.15.10
❯ flatpak --gl-drivers
default
host

Problem description

Suddenly mangohud and obsvkcapture are not working only for flatpak steam. They are working fine for other launchers like heroic and lutris.

As for logs I dont know what to put but here are the screenshots for proof

As u can see I set variables in both flatseal as well as in the game launch options but obs is not capturing game as well as mangohud not working

Screenshot_20241031_223506

Same case but heroic games are working fine with capture and mangohud even if mangohud is not enabled in heroic since its enables in flatseal it is still working and obs is capturing.

Screenshot_20241031_224502

Does this issue reproduce with native Steam

I dont know. I dont have native steam.

Edit: Ok I installed native steam and native obs and native steam dont have this issue. Attaching screenshot for reference

I also tried other env formats like obs-gamecapture mangohud %command% in flatpak like as I did in native screenshot below but still didnt work.

flatpak heroic and lutris dont have this issue.

Screenshot_20241031_232227

obsgamecapture commented 1 week ago

Can confirm. I wonder what is the issue here?

MithicSpirit commented 1 week ago

Can you post the output of flatpak list and flatpak info com.valvesoftware.Steam? I suspect that it's a version mismatch.

openwick commented 1 week ago

@MithicSpirit Here is the output

❯ flatpak info com.valvesoftware.Steam

Steam - Launcher for the Steam software distribution service

          ID: com.valvesoftware.Steam
         Ref: app/com.valvesoftware.Steam/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.0.0.81
     License: LicenseRef-proprietary
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 43.8 MB
     Runtime: org.freedesktop.Platform/x86_64/24.08
         Sdk: org.freedesktop.Sdk/x86_64/24.08

      Commit: e19b6cdee48b2c41e753f9abbe8e127b1f50f97547210c8da7771a51fcd96328
      Parent: 173cd565d98d4951bd858bad290e8481a9e72dbf5f7c9c980165a060666184b1
     Subject: usbutils: Convert to meson (9c91d2eb)
        Date: 2024-10-31 04:19:01 +0000
❯ flatpak list
Name                                        Application ID                                            Version                        Branch            Installation
Brave                                       com.brave.Browser                                         1.71.121                       stable            system
Protontricks                                com.github.Matoking.protontricks                          1.12.0                         stable            system
Flatseal                                    com.github.tchx84.Flatseal                                2.3.0                          stable            system
Xournal++                                   com.github.xournalpp.xournalpp                            1.2.4                          stable            system
Heroic Games Launcher                       com.heroicgameslauncher.hgl                               v2.15.2                        stable            system
Logseq                                      com.logseq.Logseq                                         0.10.9                         stable            system
Extension Manager                           com.mattjakeman.ExtensionManager                          0.5.1                          stable            system
Microsoft Edge                              com.microsoft.Edge                                        130.0.2849.56-1                stable            system
Notesnook                                   com.notesnook.Notesnook                                   3.0.19                         stable            system
OBS Studio                                  com.obsproject.Studio                                     30.2.3                         stable            system
GStreamer                                   com.obsproject.Studio.Plugin.Gstreamer                    0.4.1                          stable            system
OBS VkCapture                               com.obsproject.Studio.Plugin.OBSVkCapture                 1.5.0                          stable            system
Proton VPN                                  com.protonvpn.www                                         4.6.0                          stable            system
Bottles                                     com.usebottles.bottles                                    51.15                          stable            system
Steam                                       com.valvesoftware.Steam                                   1.0.0.81                       stable            system
Boxtron                                     com.valvesoftware.Steam.CompatibilityTool.Boxtron                                        stable            system
Proton-GE (community build)                 com.valvesoftware.Steam.CompatibilityTool.Proton-GE       9.16                           stable            system
protontricks translations                   com.valvesoftware.Steam.Utility.protontricks.Locale                                      stable            system
SteamTinkerLaunch                           com.valvesoftware.Steam.Utility.steamtinkerlaunch         14.0.20241025-1                stable            system
Steam Link                                  com.valvesoftware.SteamLink                               1.3.12.269                     stable            system
Cemu                                        info.cemu.Cemu                                            2.2                            stable            system
FreeTube                                    io.freetubeapp.FreeTube                                   0.22.0 Beta                    stable            system
HexChat                                     io.github.Hexchat                                         2.16.2                         stable            system
Shortcut                                    io.github.andreibachim.shortcut                           0.4.1                          stable            system
Simple Wireplumber GUI                      io.github.dyegoaurelio.simple-wireplumber-gui             0.1.4                          stable            system
Lime3DS                                     io.github.lime3ds.Lime3DS                                 2119                           stable            system
Footage                                     io.gitlab.adhami3310.Footage                              1.3.2                          stable            system
Minecraft Bedrock Launcher                  io.mrarm.mcpelauncher                                     v1.1.1                         stable            system
Gear Lever                                  it.mijorus.gearlever                                      2.1.0                          stable            system
ProtonUp-Qt                                 net.davidotek.pupgui2                                     2.10.0                         stable            system
Lutris                                      net.lutris.Lutris                                         0.5.17                         stable            system
PCSX2                                       net.pcsx2.PCSX2                                           v2.1.226                       stable            system
TAP-plugins                                 org.freedesktop.LinuxAudio.Plugins.TAP                    1.0.1                          23.08             system
SWH                                         org.freedesktop.LinuxAudio.Plugins.swh                    0.4.17                         22.08             system
SWH                                         org.freedesktop.LinuxAudio.Plugins.swh                    0.4.17                         23.08             system
Freedesktop Platform                        org.freedesktop.Platform                                  freedesktop-sdk-23.08.25       23.08             system
Freedesktop Platform                        org.freedesktop.Platform                                  freedesktop-sdk-24.08.5        24.08             system
i386                                        org.freedesktop.Platform.Compat.i386                                                     23.08             system
i386                                        org.freedesktop.Platform.Compat.i386                                                     24.08             system
Mesa                                        org.freedesktop.Platform.GL.default                       24.2.5                         23.08             system
Mesa (Extra)                                org.freedesktop.Platform.GL.default                       24.2.5                         23.08-extra       system
Mesa                                        org.freedesktop.Platform.GL.default                       24.2.5                         24.08             system
Mesa (Extra)                                org.freedesktop.Platform.GL.default                       24.2.5                         24.08extra        system
Mesa                                        org.freedesktop.Platform.GL32.default                     24.2.5                         23.08             system
Mesa (Extra)                                org.freedesktop.Platform.GL32.default                     24.2.5                         23.08-extra       system
Mesa                                        org.freedesktop.Platform.GL32.default                     24.2.5                         24.08             system
gstreamer-vaapi                             org.freedesktop.Platform.GStreamer.gstreamer-vaapi                                       21.08             system
gstreamer-vaapi                             org.freedesktop.Platform.GStreamer.gstreamer-vaapi                                       23.08             system
MangoHud                                    org.freedesktop.Platform.VulkanLayer.MangoHud             0.6.8                          21.08             system
MangoHud                                    org.freedesktop.Platform.VulkanLayer.MangoHud             0.7.0                          22.08             system
MangoHud                                    org.freedesktop.Platform.VulkanLayer.MangoHud             0.7.2                          23.08             system
OBS VkCapture tools                         org.freedesktop.Platform.VulkanLayer.OBSVkCapture         1.5.1                          21.08             system
OBS VkCapture tools                         org.freedesktop.Platform.VulkanLayer.OBSVkCapture         1.5.1                          22.08             system
OBS VkCapture tools                         org.freedesktop.Platform.VulkanLayer.OBSVkCapture         1.5.1                          23.08             system
gamescope                                   org.freedesktop.Platform.VulkanLayer.gamescope            3.14.2                         22.08             system
gamescope                                   org.freedesktop.Platform.VulkanLayer.gamescope            3.14.24                        23.08             system
gamescope                                   org.freedesktop.Platform.VulkanLayer.gamescope            3.14.24                        24.08             system
vkBasalt                                    org.freedesktop.Platform.VulkanLayer.vkBasalt             0.3.2.9                        21.08             system
vkBasalt                                    org.freedesktop.Platform.VulkanLayer.vkBasalt             0.3.2.10                       22.08             system
vkBasalt                                    org.freedesktop.Platform.VulkanLayer.vkBasalt             0.3.2.10                       23.08             system
vkBasalt                                    org.freedesktop.Platform.VulkanLayer.vkBasalt             0.3.2.4                        stable            system
FFmpeg extension with extra codecs          org.freedesktop.Platform.ffmpeg-full                                                     23.08             system
FFmpeg extension with extra codecs          org.freedesktop.Platform.ffmpeg-full                                                     24.08             system
i386                                        org.freedesktop.Platform.ffmpeg_full.i386                                                23.08             system
i386                                        org.freedesktop.Platform.ffmpeg_full.i386                                                24.08             system
openh264                                    org.freedesktop.Platform.openh264                         2.1.0                          2.2.0             system
openh264                                    org.freedesktop.Platform.openh264                         2.4.1                          2.4.1             system
Freedesktop SDK                             org.freedesktop.Sdk                                       freedesktop-sdk-23.08.25       23.08             system
Web                                         org.gnome.Epiphany                                        47.2                           stable            system
GNOME Application Platform version 45       org.gnome.Platform                                                                       45                system
GNOME Application Platform version 46       org.gnome.Platform                                                                       46                system
GNOME Application Platform version 47       org.gnome.Platform                                                                       47                system
i386                                        org.gnome.Platform.Compat.i386                                                           45                system
i386                                        org.gnome.Platform.Compat.i386                                                           47                system
Solanum                                     org.gnome.Solanum                                         5.0.0                          stable            system
Breeze GTK theme                            org.gtk.Gtk3theme.Breeze                                  6.2.0                          3.22              system
Adwaita theme                               org.kde.KStyle.Adwaita                                                                   5.15-23.08        system
Adwaita theme                               org.kde.KStyle.Adwaita                                                                   6.6               system
KDE Application Platform                    org.kde.Platform                                                                         5.15-23.08        system
KDE Application Platform                    org.kde.Platform                                                                         6.6               system
KDE Application Platform                    org.kde.Platform                                                                         6.7               system
QGnomePlatform                              org.kde.PlatformTheme.QGnomePlatform                                                     5.15-23.08        system
QGnomePlatform                              org.kde.PlatformTheme.QGnomePlatform                                                     6.6               system
QAdwaitaDecorations                         org.kde.WaylandDecoration.QAdwaitaDecorations                                            5.15-23.08        system
QAdwaitaDecorations                         org.kde.WaylandDecoration.QAdwaitaDecorations                                            6.6               system
QAdwaitaDecorations                         org.kde.WaylandDecoration.QAdwaitaDecorations                                            6.7               system
QGnomePlatform-decoration                   org.kde.WaylandDecoration.QGnomePlatform-decoration                                      5.15-23.08        system
Kdenlive                                    org.kde.kdenlive                                          24.08.2                        stable            system
Firefox                                     org.mozilla.firefox                                       132.0                          stable            system
PPSSPP                                      org.ppsspp.PPSSPP                                         1.17.1                         stable            system
Volume Control                              org.pulseaudio.pavucontrol                                6.1                            stable            system
qBittorrent                                 org.qbittorrent.qBittorrent                               5.0.1                          stable            system
Ryujinx                                     org.ryujinx.Ryujinx                                       1.1.1403                       stable            system
Shotcut                                     org.shotcut.Shotcut                                       24.10.29                       stable            system
Tenacity                                    org.tenacityaudio.Tenacity                                1.3.3                          stable            system
Tor Browser Launcher                        org.torproject.torbrowser-launcher                        0.3.7                          stable            system
DXVK                                        org.winehq.Wine.DLLs.dxvk                                 2.4.1                          stable-23.08      system
Gecko                                       org.winehq.Wine.gecko                                                                    stable-23.08      system
gecko                                       org.winehq.Wine.gecko                                                                    stable-24.08      system
Mono                                        org.winehq.Wine.mono                                                                     stable-23.08      system
mono                                        org.winehq.Wine.mono                                                                     stable-24.08      system
Main Menu                                   page.codeberg.libre_menu_editor.LibreMenuEditor           1.7.2                          stable            system
MithicSpirit commented 1 week ago

Ah yes, as expected. Your steam is using version 24.08, but mangohud and vkcapture are only available for 21.08, 22.08, and 23.08. Try installing org.freedesktop.Platform.VulkanLayer.MangoHud//24.08 and org.freedesktop.Platform.VulkanLayer.OBSVkCapture//24.08 to get the compatible versions.

openwick commented 1 week ago

@MithicSpirit thanks but just a question.

I tried flatpak update to see if it fixes the issue before posting this issue. I never showed these updated versions of mangohud and obsvkcapture and says Nothing to do. When I normally typed flatpak install flathub org.freedesktop.Platform.VulkanLayer.MangoHud it showed me option to install 24.08 version.

Why flatpak didn't install these dependencies or version updates automatically when I did flatpak update ? Why do I have to manually install them ?

If this is the case with mangohud and obsvkcapture how should I know how many old packages are there and not the latest versions in my flatpak list.

Is there a way to make sure flatpak can install these updated versions of these dependencies automatically cause I specifically installed flatpaks cause to save myself from this dependency hell and reliability.

MithicSpirit commented 1 week ago

Why flatpak didn't install these dependencies or version updates automatically when I did flatpak update ? Why do I have to manually install them ?

From my understanding, they're not "dependencies" nor "updates". com.valevesoftware.Steam is the one that updated, with dependency changed to org.freedesktop.Platform//24.08 (from //23.08). org.freedesktop.Platform.VulkanLayer.MangoHud (and obsvkcapture) are mere add-ons to org.freedesktop.Platform, but must be installed separately for each branch (this is just a design choice in flatpak).

If this is the case with mangohud and obsvkcapture how should I know how many old packages are there and not the latest versions in my flatpak list.

You can uninstall unneeded packages with flatpak uninstall --unused. This will also list out pinned runtimes, for which you'll have to manually verify if they're still needed or not. Not sure if there's a way to list reverse dependencies.

Is there a way to make sure flatpak can install these updated versions of these dependencies automatically cause I specifically installed flatpaks cause to save myself from this dependency hell and reliability.

For true dependencies (like org.freedesktop.Platform), flatpak will automatically take care of those for you. For these optional dependencies (the aforementioned add-ons), I don't think that's possible. What I recommend is that whenever you notice a new branch of org.freedesktop.Platform is out, you install the corresponding branch of the add-ons.

openwick commented 1 week ago

Thanks @MithicSpirit I l'll keep that in mind.