ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
774 stars 69 forks source link

SEGFAULT on launch after shader compilation. #3436

Open telephrag opened 11 months ago

telephrag commented 11 months ago

Your system information

Please describe your issue in as much detail as possible:

I've launched the game from Steam and waited for shader compilation to complete. Then, the game just refused to launch while Steam logs were the following:

INFO:root:https://github.com/flathub/com.valvesoftware.Steam/wiki
INFO:root:Will set XDG dirs prefix to /home/telephrag/.var/app/com.valvesoftware.Steam
DEBUG:root:Checking input devices permissions
INFO:root:Overriding TZ to UTC
steam.sh[2]: Running Steam on org.freedesktop.platform 23.08 64-bit
steam.sh[2]: STEAM_RUNTIME is enabled automatically
setup.sh[74]: Steam runtime environment up-to-date!
steam.sh[2]: Steam client's requirements are satisfied
[2023-10-09 22:37:21] Startup - updater built Sep 29 2023 17:38:10
[2023-10-09 22:37:21] Startup - Steam Client launched with: '/home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam' '-no-cef-sandbox'
10/09 22:37:21 Init: Installing breakpad exception handler for appid(steam)/version(1696019606)/tid(131)
[2023-10-09 22:37:22] Loading cached metrics from disk (/home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/package/steam_client_metrics.bin)
[2023-10-09 22:37:22] Using the following download hosts for Public, Realm steamglobal
[2023-10-09 22:37:22] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2023-10-09 22:37:22] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2023-10-09 22:37:22] 3. https://cdn.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
[2023-10-09 22:37:22] Verifying installation...
[2023-10-09 22:37:22] Verification complete

Steam logging initialized: directory: /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/logs

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xee91d8f0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xee91c1c0
steamwebhelper.sh[155]: Runtime for steamwebhelper: defaulting to /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[155]: Running under Flatpak, disabling sandbox
steamwebhelper.sh[155]: CEF sandbox already disabled
CAppInfoCacheReadFromDiskThread took 147 milliseconds to initialize
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 231
steam-runtime-launcher-service[231]: E: Unable to acquire bus name "com.steampowered.PressureVessel.LaunchAlongsideSteam"
Steam Runtime Launch Service: steam-runtime-launcher-service pid 231 exited
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 333
steam-runtime-launcher-service[333]: E: Unable to acquire bus name "com.steampowered.PressureVessel.LaunchAlongsideSteam"
Steam Runtime Launch Service: steam-runtime-launcher-service pid 333 exited
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 365
steam-runtime-launcher-service[365]: E: Unable to acquire bus name "com.steampowered.PressureVessel.LaunchAlongsideSteam"
Steam Runtime Launch Service: steam-runtime-launcher-service pid 365 exited
Steam Runtime Launch Service: steam-runtime-launcher-service keeps crashing on startup, disabling
BRefreshApplicationsInLibrary 1: 1ms
BuildCompleteAppOverviewChange: 307 apps
RegisterForAppOverview 1: 12ms
RegisterForAppOverview 2: 13ms
Fossilize INFO: Setting autogroup scheduling.
/bin/sh\0-c\0/home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=730 -- /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- '/home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun --  '/home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh' -steam\0
chdir "/home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive"
ERROR: ld.so: object '/home/telephrag/.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/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/telephrag/.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/telephrag/.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/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/bin/bash: /usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/libtinfo.so.6: no version information available (required by /bin/bash)
pid 725 != 724, skipping destruction (fork without exec?)
pid 726 != 724, skipping destruction (fork without exec?)
Loaded /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libengine2.so, got 0x55c7a6d5b7b0
Using breakpad crash handler
[S_API] SteamAPI_Init(): Loaded '/home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 730
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
10/09 22:38:50 Init: Installing breakpad exception handler for appid(730)/version(8399471)/tid(728)
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198117799729 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561198117799729
Setting breakpad minidump AppID = 2347771
Loaded libSDL3.so.0, got 0x55c7a70af390
Loaded /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so, got 0x55c7a6d44d10
Loaded /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x55c7a70b7de0
Loaded /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libinputsystem.so, got 0x55c7a70b5cc0
Loaded /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/liblocalize.so, got 0x55c7a70f5b70
Loaded /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/librendersystemvulkan.so, got 0x55c7a70f2ff0
Loaded /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x55c7a7104730
Loaded /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libschemasystem.so, got 0x55c7a7104ca0
Fossilize INFO: Overriding serialization path: "/home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/shadercache/730/fozpipelinesv6/steamapprun_pipeline_cache".
zenity: symbol lookup error: /lib/x86_64-linux-gnu/libgtk-3.so.0: undefined symbol: pango_font_family_get_face
crash_20231009223851_2.dmp[752]: Uploading dump (out-of-process)
/tmp/dumps/crash_20231009223851_2.dmp
/home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh: line 118:   728 Segmentation fault      ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
crash_20231009223851_2.dmp[752]: Finished uploading minidump (out-of-process): success = yes
crash_20231009223851_2.dmp[752]: response: Discarded=1
crash_20231009223851_2.dmp[752]: file ''/tmp/dumps/crash_20231009223851_2.dmp'', upload yes: ''Discarded=1''

Edit: libgtk-3.so.0 that is mentioned in the log is located at /home/telephrag/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/SteamLinuxRuntime_sniper/sniper_platform_0.20230919.60634/files/lib/x86_64-linux-gnu on my system and called libgtk-3.so.0.2404.20.

Steps for reproducing this issue:

  1. Launch the game.
  2. Wait for shaders to compile or not, it wouldn't make a difference if you press "Skip"
  3. Observe the logs and lack of the game running on your computer.

Edit: Updated the log to be more complete.

gasbytes commented 11 months ago

any update on this? i'm having the same issue, and by playing around with the cs2.sh file i discoverd that the STEAM_RUNTIME_PREFIX at line 115 it's empty, and doesn't get set early in the script, and i thought it was what it was causing the segmentation fault

but even by forcing the value in the script it doesn't work, it just hangs for a couples seconds before crashing again

telephrag commented 11 months ago

any update on this? i'm having the same issue, and by playing around with the cs2.sh file i discoverd that the STEAM_RUNTIME_PREFIX at line 115 it's empty, and doesn't get set early in the script, and i thought it was what it was causing the segmentation fault

but even by forcing the value in the script it doesn't work, it just hangs for a couples seconds before crashing again

Nope

esiqveland commented 11 months ago

I am also seeing segfault in cs2 in loading screen, but seems to not affect all maps. I can play Vertigo and Dust2 just fine... All other maps I have tried segfault in loading screen. I am using amdgpu.

gasbytes commented 11 months ago

@telephrag have you figured out a quick fix?

i noticed that even after starting just the binary of cs (still using the steam runtime) that it says that i'm missing a dynamic library (libcurl.so), but even after adding it in the folder it still says it like nothing change :(

telephrag commented 11 months ago

@telephrag have you figured out a quick fix?

i noticed that even after starting just the binary of cs (still using the steam runtime) that it says that i'm missing a dynamic library (libcurl.so), but even after adding it in the folder it still says it like nothing change :(

Haven't tried anything yet. Gonna be trying to launch it with different main menu background map since, @esiqveland stated that the crash is map specific on his machine.

telephrag commented 11 months ago

@gasbytes @esiqveland I'm thinking that issue might be libc related. Is anyone of you running musl libc based distro like I do?

esiqveland commented 11 months ago

I do not run on musl libc. However, it seems to be working for me since the update on Thursday, but its a bit scary to try competitive while I am not sure it will segfault in loading screen again :smiley:

gasbytes commented 11 months ago

@telephrag nope, i run glibc, and yes the error it is libc related

the cs client doesn't even start in my case, it just goes straight to segmentation fault from the start, but it might be related to the background map who knows tbh since it's not easily debuggable

wsommers0 commented 10 months ago

@telephrag I have a similar setup (Alpine Linux + sway) and I got the game to launch by switching to XFCE. I'm not sure what part of the Wayland stack is to blame, but I'm guessing either Xwayland or wlroots since the issue affects both sway and river.