nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
502 stars 24 forks source link

env: 'obs-gamecapture': No such file or directory #168

Closed deadmeu closed 9 months ago

deadmeu commented 9 months ago

Describe the bug Recently, trying to launch a game with obs-gamecapture throws the error env: 'obs-gamecapture': No such file or directory Setting OBS_VKCAPTURE=1 does not work either, as the game capture cannot be found in OBS.

I have everything installed through Flatpaks: Steam, VkCapture, and OBS.

I initially had issues a few days ago with trying to get Terraria to capture properly (different error - something to do with an issue with 32 bit gamecapture not being found), but today I am finding that none of my previously working games are working.

Could this potentially be due to the Steam Flatpak recently updating to Freedesktop runtime 23.08?

System (please complete the following information):

Game log:

/bin/sh\0-c\0gamemoderun obs-gamecapture /home/alex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=730 -- /home/alex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/media/EVO/data/Games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/csgo.sh' -steam -vulkan -nojoy -novid\0
chdir "/media/EVO/data/Games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive"
ERROR: ld.so: object '/home/alex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/alex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/alex/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
env: 'obs-gamecapture': No such file or directory
Uploaded AppInterfaceStats to Steam
nowrep commented 9 months ago

Could this potentially be due to the Steam Flatpak recently updating to Freedesktop runtime 23.08?

Yes, very likely.

@SuNNjek

SuNNjek commented 9 months ago

Could this potentially be due to the Steam Flatpak recently updating to Freedesktop runtime 23.08?

Yes, the runtime version needs to match. A 23.08 version of the Vulkan layer already exists, so if you just install it, it should work again.

deadmeu commented 9 months ago

Thanks for the quick replies - installing org.freedesktop.Platform.VulkanLayer.OBSVkCapture/x86_64/23.08 solved my issues :smiley:.

Is there a way this could have been avoided? It would be nice if flatpak update would have told me to update org.freedesktop.Platform.VulkanLayer.OBSVkCapture to 23.08 or maybe just automatically done it for me :thinking:

Either way, closing as this is no longer an issue.

SuNNjek commented 9 months ago

Is there a way this could have been avoided? It would be nice if flatpak update would have told me to update org.freedesktop.Platform.VulkanLayer.OBSVkCapture to 23.08 or maybe just automatically done it for me 🤔

Yeah, that would be really nice but as far as I know there's currently no way to automatically update the flatpak. Technically these are separate versions so it wouldn't really be an update because you can have both versions installed at the same time. Maybe that's why there's no automatic update

deadmeu commented 9 months ago

What I find interesting is when I run flatpak remove org.freedesktop.Platform.VulkanLayer.OBSVkCapture/x86_64/23.08 I get:

Info: applications using the extension org.freedesktop.Platform.VulkanLayer.OBSVkCapture branch 23.08:
   com.github.Matoking.protontricks, com.valvesoftware.Steam, ...

Do you know how Flatpak determines that relationship?