shkhln / linuxulator-steam-utils

Steam launcher for FreeBSD
MIT License
124 stars 12 forks source link

Dota 2 doesn't launch #129

Open nxjosephofficial opened 4 months ago

nxjosephofficial commented 4 months ago
/bin/sh\0-c\0/home/steam/.steam/steam/ubuntu12_32/reaper SteamLaunch AppId=570 -- /home/steam/.steam/steam/ubuntu12_32/steam-launch-wrapper -- '/home/steam/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun --  '/home/steam/.steam/steam/steamapps/common/dota 2 beta/game/dota.sh' +@panorama_min_comp_layer_dimension 0 -prewarm_panorama -vulkan\0
chdir "/home/steam/.steam/steam/steamapps/common/dota 2 beta"
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
steam-launch-wrapper: $XDG_RUNTIME_DIR not set.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/home/steam/.steam/steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
pressure-vessel-wrap[7546]: E: Cannot run /home/steam/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper/pressure-vessel/bin/pv-bwrap: wait status 256
pressure-vessel-wrap[7546]: E: Diagnostic output:
bwrap: Can't read /proc/sys/kernel/overflowuid: No such file or directory
shkhln commented 4 months ago

The Linux emulation is not advanced enough to run Linux container stuff (that includes pressure-vessel). As an alternative I provide an option to run Steam Runtime in an unprivileged (that is, non-superuser) chroot , but you have to specifically select it in the compatibility tab in the game settings.

nxjosephofficial commented 4 months ago

but you have to specifically select it in the compatibility tab in the game settings.

Which one is it ? 2024-03-05-220850_1366x768_scrot

nxjosephofficial commented 4 months ago

But now i am getting this error. I use amdgpu driver. 2024-03-05-221411_1366x768_scrot

shkhln commented 4 months ago

That's a tough one. I don't think Vulkan ever worked in that configuration. (Other similar reports: https://forums.freebsd.org/threads/linuxulator-vs-intel-amd-gpus.92445/.) Somebody would have to debug it.

nxjosephofficial commented 4 months ago

with FreeBSD wine (wine-proton) i could launch dota 2. 2024-03-05-223455_1366x768_scrot

nxjosephofficial commented 4 months ago

the game doesn't launch with -vulkan launch parameter. the game doesn't stop after exiting, forcing game to stop doesn't work by clicking stop button. also, the audio of the game is sizzling (i use oss). Sometimes the game crashes.

nxjosephofficial commented 3 months ago

I've upgraded to 14.0-STABLE and installed drm-61-kmod. Can vulkan run right now?

shkhln commented 3 months ago

The forum thread linked above contains Vulkan testing instructions. The proper complaint place is https://github.com/freebsd/drm-kmod.

nxjosephofficial commented 3 months ago

I tried the instructions but it doesn't run successfully. I run those commands from steam user.

$ ./linux-chroot /usr/bin/glxgears -info | grep RENDER
mount -o nocover -t tmpfs tmpfs /home/steam/umnt
mount: tmpfs: Device busy
Assuming /home/steam/umnt is already set up.
Authorization required, but no authorization protocol specified

$ ./linux-chroot /usr/bin/vkcube
mount -o nocover -t tmpfs tmpfs /home/steam/umnt
mount: tmpfs: Device busy
Assuming /home/steam/umnt is already set up.
Authorization required, but no authorization protocol specified
Cannot connect to XCB.
Exiting ...
shkhln commented 3 months ago

Something like this?

nxjosephofficial commented 3 months ago

Thanks. xhost + command fixed the problem. I see llvmpipe in the outputs of the commands. What does it mean?

shkhln commented 3 months ago

It means things are not going well for you. llvmpipe is a fallback CPU renderer, it's too slow for games.

nxjosephofficial commented 3 months ago

OK, thank you for all.

shkhln commented 3 months ago

Don't forget to complain in the proper place. The drm-kmod people don't react at all if you don't shove issues right in their face. (And even then they might not have time to address those issues.)

nxjosephofficial commented 2 months ago

I tried again. It launches but i just see weird thing on the screen and it closes immediately. 2024-04-11-010934_1366x768_scrot 2024-04-11-010938_1366x768_scrot 2024-04-11-011026_1366x768_scrot

shkhln commented 2 months ago

It will likely start with LD_PRELOAD=noepollexcl.so %command% in the launch options. Note that this is a rather crude hack, I would not recommend actually playing any multiplayer matches with it (might degrade performance too much, cause deadlocks or get you VAC banned).

nxjosephofficial commented 2 months ago

Yes, it launched successfully with that launch option.