canonical / steam-snap

Steam as a snap
72 stars 10 forks source link

Rockstar Games Launcher is unable to locate game executable path. #38

Open DefaultX-od opened 2 years ago

DefaultX-od commented 2 years ago

Describe the bug When trying to play Grand Theft Auto IV, the Rockstar Games Launcher appears with an error message, and game never starts.

To Reproduce Steps to reproduce the behavior:

  1. Install Grand Theft Auto IV
  2. Click on 'play'
  3. During the first time setup, install Rockstar Games Launcher, by following installer instructions
  4. Wait for the first time setup to complete
  5. Rockstar Games Launcher appears with a dialog asking if you'd like to scan for installed games, and an error message with a code: 7002.1

Expected behavior When the Rockstar Games Launcher appears, it should ask you to scan your PC for old saves from Games for Windows Live. After that a dialog appears asking if you'd like to enable cloud saves. After that, the game window will appear.

Environment
Please provide the output of the following commands:

snap info steam

name:      steam
summary:   Launcher for the Steam software distribution service (Early Access)
publisher: Canonical✓
store-url: https://snapcraft.io/steam
contact:   https://github.com/canonical/steam-snap
license:   unset
description: |
  Steam is a software distribution service with an online store, automated
  installation, automatic updates, achievements, SteamCloud synchronized
  savegame and screenshot functionality, and many social features.
commands:
  - steam
snap-id:      NeoQngJVBf2wKC48bxnF2xqmfEFGdVnx
tracking:     latest/edge
refresh-date: yesterday at 19:14 MSK
channels:
  latest/stable:    –                              
  latest/candidate: –                              
  latest/beta:      1.0.0.74 2022-07-28 (39) 371MB -
  latest/edge:      1.0.0.74 2022-07-27 (39) 371MB -
installed:          1.0.0.74            (39) 371MB -

snap version

snap    2.56.3+git761.g293c48d
snapd   2.56.3+git761.g293c48d
series  16
ubuntu  22.04
kernel  5.15.0-43-generic
ashuntu commented 2 years ago

Is there any notable output to the console after you try to run the game?

DefaultX-od commented 2 years ago

Some pressure-vessel-WARNING. I'll attach 2 logs, the first one I ran the game through Snap'd Steam, and the second one is regular Steam from the repositories.

gta IV snap.txt gta IV deb.txt

ashuntu commented 2 years ago

I'm not seeing anything super unique to your logs that don't appear elsewhere.

What does the error message say, other than the 7002.1 code?

Also, could you post the output of sudo dmesg (run it after the game fails to launch)?

DefaultX-od commented 2 years ago

Error message: Снимок экрана от 2022-08-02 21-47-49

Снимок экрана от 2022-08-02 21-48-04

And the output of sudo dmesg

dmesg.txt

DefaultX-od commented 2 years ago

I ran GTA IV with the launch option PROTON_LOG=1 %command% and here are the logs:

steam-12210_SNAP.log

steam-12210_DEB.log

ashuntu commented 2 years ago

Seems to share some of the same Vulkan denials as #6 and #27

apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/etc/vulkan/explicit_layer.d/" pid=3537 comm="pressure-vessel" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/etc/vulkan/implicit_layer.d/" pid=3537 comm="pressure-vessel" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

and shared /var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu denials with #6 ...

apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/vdpau/" pid=145699 comm="x86_64-linux-gn" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/" pid=145701 comm="x86_64-linux-gn" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/" pid=145701 comm="x86_64-linux-gn" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/var/lib/snapd/hostfs/usr/lib/x86_64-linux-gnu/" pid=145701 comm="x86_64-linux-gn" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Could you try the workaround noted here: https://github.com/canonical/steam-snap/issues/6#issuecomment-1198842748 and post the results?

DefaultX-od commented 2 years ago

I think I am onto something. I looked up Rockstar Games Launcher logs for both snap and deb, here they are: launcher_SNAP.log launcher_DEB.log

And it seems like, for unknown reason to me, when running from snap, launcher is not running in steam mode

Also I was able to start the game by running this from terminal, not in the Steam shell:

STEAM_COMPAT_CLIENT_INSTALL_PATH="/home/defaultx-od/snap/steam/common/.local/share/Steam" STEAM_COMPAT_DATA_PATH="/home/defaultx-od/snap/steam/common/.local/share/Steam/steamapps/compatdata/12210" "/home/defaultx-od/snap/steam/common/.local/share/Steam/steamapps/common/Proton 7.0/proton" run "/home/defaultx-od/snap/steam/common/.local/share/Steam/steamapps/common/Grand Theft Auto IV/GTAIV/PlayGTAIV.exe" -useSteam -steamAppId=12210 -scCommerceProvider=4

iaminkoqnito commented 9 months ago

Hello, Have this been fixed? I tried to play Red dead redemption yesterday with the snap-package and i get the same error. It feels like it is an issue with permissions for the rockstar-launcher? I tried the debversion and it instantly worked.

ashuntu commented 1 month ago

If this is still an issue, you might want to try with 2.64 snapd. You can try by refreshing snapd with snap refresh snapd --edge (and restarting). Make sure to go back to stable after testing with snap refresh snapd --stable.