ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.73k stars 267 forks source link

Steam for Linux sniper runtime environment crash #1388

Open joyeli opened 6 months ago

joyeli commented 6 months ago

I am about to launch the Linux version of Counter-Strike 2, but I encountered a fatal error message that refers to the Steam for Linux runtime environment.

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 USCAT FLAGM PageSize:4096 Running on Cortex-A78C Cortex-X1C with 8 Cores
Will use Hardware counter measured at 19.2 MHz emulating 614 MHz
Params database has 61 entries
Box64 with Dynarec v0.2.7 1dca97b4 built on Mar 25 2024 15:48:58
BOX64: Detected 48bits at least of address space
Counted 127 Env var
BOX64 LIB PATH: /media/joyel/Steam/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper/pressure-vessel/bin/../../sniper_platform_0.20240307.80401/files/lib/x86_64-linux-gnu/:/media/joyel/Steam/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper/pressure-vessel/bin/../../sniper_platform_0.20240307.80401/files/lib/i386-linux-gnu/:/media/joyel/Steam/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper/pressure-vessel/bin/../../sniper_platform_0.20240307.80401/files/lib/:/media/joyel/Steam/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper/pressure-vessel/bin/../../sniper_platform_0.20240307.80401/files/lib64/:/lib/aarch64-linux-gnu/:/lib/arm-linux-gnueabihf/:/usr/lib/aarch64-linux-gnu/libfakeroot/:/usr/local/lib/:/lib/:/media/joyel/Steam/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/:./:lib/:lib64/:x86_64/:bin64/:libs64/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/
BOX64 BIN PATH: ./:bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/usr/bin/:/sbin/:/bin/:/usr/games/:/usr/local/games/:/snap/bin/:/snap/bin/
Looking for /media/joyel/Steam/SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper/pressure-vessel/bin/steam-runtime-launcher-interface-0
argv[1]="container-runtime"
argv[2]="/media/joyel/Steam/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh"
argv[3]="-steam"
Rename process to "steam-runtime-launcher-interface-0"
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) libdl.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libbsd.so.0

FATAL: It appears CS2 was not launched within the Steam for Linux sniper runtime environment.
FATAL: Please consult documentation to ensure correct configuration, aborting.

I went to the folder containing the Steam Linux Runtime, tried to launch it, and encountered a segmentation fault.

Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 USCAT FLAGM PageSize:4096 Running on Cortex-A78C Cortex-X1C with 8 Cores
Will use Hardware counter measured at 19.2 MHz emulating 614 MHz
Params database has 61 entries
Box64 with Dynarec v0.2.7 1dca97b4 built on Mar 25 2024 15:48:58
BOX64: pressure-vessel-wrap detected
[1]    6594 segmentation fault (core dumped)
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS SHA1 SHA2 USCAT FLAGM PageSize:4096 Running on Cortex-A78C Cortex-X1C with 8 Cores
Will use Hardware counter measured at 19.2 MHz emulating 614 MHz
Params database has 61 entries
Box64 with Dynarec v0.2.7 1dca97b4 built on Mar 25 2024 15:48:58
BOX64: pressure-vessel-wrap detected
[1]    6623 segmentation fault (core dumped)

Both "run" and "run-in-sniper" are located under SteamLibrary/steamapps/common/SteamLinuxRuntime_sniper/

By the way, running CS2 with Steam-Proton under Box64 is okay but has poor performance. I am now attempting to run CS2 using the native Linux method.