ValveSoftware / csgo-osx-linux

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

CS2 crash on launch with Segmentation Fault #3653

Open zrion opened 7 months ago

zrion commented 7 months ago

Your system information

Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
CPU Family: 0x6
CPU Model: 0x9e
CPU Stepping: 0xa
CPU Type: 0x0
Speed: 4100 MHz
12 logical processors
6 physical processors
Hyper-threading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Unsupported
SSE41: Supported
SSE42: Supported
AES: Supported
AVX: Supported
AVX2: Supported
AVX512F: Unsupported
AVX512PF: Unsupported
AVX512ER: Unsupported
AVX512CD: Unsupported
AVX512VNNI: Unsupported
SHA: Unsupported
CMPXCHG16B: Supported
LAHF/SAHF: Supported
PrefetchW: Unsupported
Operating System Version:
Ubuntu 22.04.3 LTS (64 bit)
Kernel Name: Linux
Kernel Version: 6.3.2-060302-generic
X Server Vendor: The X.Org Foundation
X Server Release: 12101004
X Window Manager: GNOME Shell
Steam Runtime Version: steam-runtime_0.20231127.68515
Video Card:
Driver: NVIDIA Corporation NVIDIA GeForce GTX 1050 Ti with Max-Q Design/PCIe/SSE2
Driver Version: 4.6.0 NVIDIA 535.154.05
OpenGL Version: 4.6
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 165 Hz
VendorID: 0x10de
DeviceID: 0x1c8c
Revision Not Detected
Number of Monitors: 1
Number of Logical Video Cards: 1
Primary Display Resolution: 1920 x 1080
Desktop Resolution: 1920 x 1080
Primary Display Size: 20.75" x 11.65" (23.78" diag), 52.7cm x 29.6cm (60.4cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 4096 MB
Supported MSAA Modes: 2x 4x 8x 16x
Sound card:
Audio device: Realtek ALC3266
Memory:
RAM: 15595 Mb
VR Hardware:
VR Headset: None detected
Miscellaneous:
UI Language: English
LANG: en_US.UTF-8
Total Hard Disk Space Available: 479118 MB
Largest Free Hard Disk Block: 46935 MB
Storage:
Number of SSDs: 2
SSD sizes: 512G,0B
Number of HDDs: 0
Number of removable drives: 0

Please describe your issue in as much detail as possible:

A few days ago the game was running fine. Today after the update, I was unable to launch the game, it crashed immediately on launch.

I was able to pinpoint the error in the log:

XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf086e9c0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf086d1f0
/usr/share/themes/Yaru/gtk-2.0/main.rc:775: error: unexpected identifier 'direction', expected character '}'
/usr/share/themes/Yaru/gtk-2.0/hacks.rc:28: error: invalid string constant "normal_entry", expected valid string constant
steamwebhelper.sh[17382]: Runtime for steamwebhelper: defaulting to /home/kei/.steam/ubuntu12_64/steam-runtime-heavy
steamwebhelper.sh[17382]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
CAppInfoCacheReadFromDiskThread took 31 milliseconds to initialize
Steam Runtime Launch Service: starting steam-runtime-launcher-service
Steam Runtime Launch Service: steam-runtime-launcher-service is running pid 17473
bus_name=com.steampowered.PressureVessel.LaunchAlongsideSteam
BRefreshApplicationsInLibrary 1: 1ms
BuildCompleteAppOverviewChange: 178 apps
RegisterForAppOverview 1: 8ms
RegisterForAppOverview 2: 8ms
/bin/sh\0-c\0/home/kei/.steam/ubuntu12_32/reaper SteamLaunch AppId=730 -- /home/kei/.steam/ubuntu12_32/steam-launch-wrapper -- '/home/kei/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper'/_v2-entry-point --verb=waitforexitandrun --  '/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh' -steam -high -console -vulkan\0
chdir "/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive"
ERROR: ld.so: object '/home/kei/.steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/kei/.steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/kei/.steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/kei/.steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/kei/.steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 17726 != 17725, skipping destruction (fork without exec?)
pid 17727 != 17725, skipping destruction (fork without exec?)
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libengine2.so, got 0x55a986283210
Using breakpad crash handler
[S_API] SteamAPI_Init(): Loaded '/home/kei/.steam/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 730
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
02/08 21:18:01 Init: Installing breakpad exception handler for appid(730)/version(8686845)/tid(17729)
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198060846716 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561198060846716
Setting breakpad minidump AppID = 2347771
Loaded libSDL3.so.0, got 0x55a986398b10
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so, got 0x55a98626c840
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x55a986407ca0
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libinputsystem.so, got 0x55a9863b5840
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/liblocalize.so, got 0x55a986417390
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/librendersystemvulkan.so, got 0x55a98641de30
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x55a9863f0920
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libschemasystem.so, got 0x55a9863f0e50
Fossilize INFO: Overriding serialization path: "/home/kei/.steam/steam/steamapps/shadercache/730/fozpipelinesv6/steamapprun_pipeline_cache".
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libmaterialsystem2.so, got 0x55a988f67fb0
Loaded libpangoft2-1.0.so, got (nil)
 failed to dlopen "libpangoft2-1.0.so" error=libpangoft2-1.0.so: cannot open shared object file: No such file or directory
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libpanorama_text_pango.so, got 0x55a988f86040
Fontconfig warning: "/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/panorama/fonts/fonts.conf", line 39: unknown element "fontpattern"
Fontconfig warning: "/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/panorama/fonts/fonts.conf", line 40: unknown element "fontpattern"
Fontconfig warning: "/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/panorama/fonts/fonts.conf", line 41: unknown element "fontpattern"
Fontconfig warning: "/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/panorama/fonts/fonts.conf", line 42: unknown element "fontpattern"
Fontconfig warning: "/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/panorama/fonts/fonts.conf", line 43: unknown element "fontpattern"
Fontconfig warning: "/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/panorama/fonts/fonts.conf", line 86: saw string, expected range
Fontconfig warning: "/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/panorama/fonts/../../../core/panorama/fonts/conf.d/41-repl-os-win.conf", line 148: Having multiple values in <test> isn't supported and may not work as expected
Fontconfig warning: "/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/panorama/fonts/../../../core/panorama/fonts/conf.d/41-repl-os-win.conf", line 160: Having multiple values in <test> isn't supported and may not work as expected
Loaded libfreetype.so.6, got 0x55a988f87020
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libpanorama_text_pango.so, got 0x55a988f86040
Loaded libfontconfig.so.1, got 0x55a988f875f0
GameOverlay: started '/home/kei/.steam/ubuntu12_32/gameoverlayui' (pid 17768) for game process 17729
tid(17768) burning pthread_key_t == 0 so we never use it
02/08 21:18:02 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(20240113005205)/tid(17768)
02/08 21:18:02 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)/tid(17768)
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libmeshsystem.so, got 0x55a98902ceb0
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libworldrenderer.so, got 0x55a98903eff0
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libpulse_system.so, got 0x55a989051550
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libvscript.so, got 0x55a9890663a0
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libnetworksystem.so, got 0x55a989078600
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libanimationsystem.so, got 0x55a98908ced0
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libvphysics2.so, got 0x55a9890a3000
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libsoundsystem.so, got 0x55a9890b6390
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libsteamaudio.so, got 0x55a9890cc940
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libscenesystem.so, got 0x55a9890e8f00
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libparticles.so, got 0x55a9890fe930
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libpanoramauiclient.so, got 0x55a989112640
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libv8system.so, got 0x55a9891248f0
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libpanorama.so, got 0x55a989119fd0
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/bin/linuxsteamrt64/libserver.so, got 0x55a989aa35b0
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/bin/linuxsteamrt64/libclient.so, got 0x55a989ad57a0
Loaded libmpg123.so.0, got 0x55a989b13c80
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libcairo.so, got 0x55a989f50c30
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libengine2.so, got 0x55a986283210
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/bin/linuxsteamrt64/libhost.so, got 0x55a98a224520
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libscenefilecache.so, got 0x55a98a237bf0
Loaded /home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/bin/linuxsteamrt64/libmatchmaking.so, got 0x55a98a249f00
crash_20240208211810_2.dmp[17861]: Uploading dump (out-of-process)
/tmp/dumps/crash_20240208211810_2.dmp
/home/kei/.steam/steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh: line 118: 17729 Segmentation fault      (core dumped) ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
crash_20240208211810_2.dmp[17861]: Finished uploading minidump (out-of-process): success = yes
crash_20240208211810_2.dmp[17861]: response: Discarded=1
crash_20240208211810_2.dmp[17861]: file ''/tmp/dumps/crash_20240208211810_2.dmp'', upload yes: ''Discarded=1''
pid 17861 != 17860, skipping destruction (fork without exec?)

Segmentation fault (core dumped) ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@" is the error that I found.

Steps for reproducing this issue:

  1. Start steam from terminal
  2. Start CS2
  3. Crash
cpphey commented 6 months ago

Steam Client

Loaded /media/windows/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x55c03e57aad0
Loaded /media/windows/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libinputsystem.so, got 0x55c03e587460
Loaded /media/windows/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/liblocalize.so, got 0x55c03e77d030
Loaded /media/windows/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/librendersystemvulkan.so, got 0x55c03e7d3080
Loaded /media/windows/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x55c03e72d470
Loaded /media/windows/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libschemasystem.so, got 0x55c03e6c0ac0
Fossilize INFO: Overriding serialization path: "/media/windows/SteamLibrary/steamapps/shadercache/730/fozpipelinesv6/steamapprun_pipeline_cache".
crash_20240209215745_2.dmp[256890]: Uploading dump (out-of-process)
/tmp/dumps/crash_20240209215745_2.dmp
crash_20240209215745_2.dmp[256890]: Finished uploading minidump (out-of-process): success = yes
crash_20240209215745_2.dmp[256890]: response: Discarded=1
crash_20240209215745_2.dmp[256890]: file ''/tmp/dumps/crash_20240209215745_2.dmp'', upload yes: ''Discarded=1''
pid 256890 != 256889, skipping destruction (fork without exec?)
/media/windows/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh: line 118: 256805 Segmentation fault      (core dumped) ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
Game 730 created interface STEAMAPPS_INTERFACE_VERSION008 /
Game 730 created interface SteamFriends017 /
Game 730 created interface SteamUser023 /
Game 730 created interface SteamUser023 / User
Game 730 created interface SteamUtils010 /
Game 730 method call count for IClientAppManager::GetCurrentLanguage : 1
Game 730 method call count for IClientUtils::RecordSteamInterfaceCreation : 6
Game 730 method call count for IClientUtils::InitFilterText : 1
Game 730 method call count for IClientUtils::IsSteamChina : 1

Core Dump

           PID: 256805 (cs2)
           UID: 1000 (amazon)
           GID: 1000 (amazon)
        Signal: 11 (SEGV)
     Timestamp: Fri 2024-02-09 21:57:45 EST (1min 11s ago)
  Command Line: $'/media/windows/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/cs2' -steam
    Executable: /media/windows/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/cs2
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/vte-spawn-f0397148-14a5-4ccf-b5d4-fa98386faeaa.scope
          Unit: user@1000.service
     User Unit: vte-spawn-f0397148-14a5-4ccf-b5d4-fa98386faeaa.scope
         Slice: user-1000.slice
     Owner UID: 1000 (amazon)
       Boot ID: c663be9f8f854750862f4f5740097202
    Machine ID: 4cac3b90796d4363b0c77cfe0c88520b
      Hostname: amazon-comp
       Storage: /var/lib/systemd/coredump/core.cs2.1000.c663be9f8f854750862f4f5740097202.256805.1707533865000000.zst (present)
     Disk Size: 12.2M
       Message: Process 256805 (cs2) of user 1000 dumped core.

Core dump Stack Trace

                #0  0x00007f258d7f6d30 n/a (/run/host/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x1a0d30)
                #1  0x00007f258b82ebd6 n/a (libtier0.so + 0x132bd6)
                #2  0x00007f258b874df8 _Z7LoadKV3P10KeyValues3P10CUtlStringP10CUtlBufferRK7KV3ID_tPKc (libtier0.so + 0x178df8)
                #3  0x00007f256e5dbc48 n/a (librendersystemvulkan.so + 0x153c48)
                #4  0x00007f256e5dd4d4 n/a (librendersystemvulkan.so + 0x1554d4)
                #5  0x00007f256e638ecf n/a (librendersystemvulkan.so + 0x1b0ecf)
                #6  0x00007f256e60db28 n/a (librendersystemvulkan.so + 0x185b28)
                #7  0x00007f258a0e4365 n/a (libengine2.so + 0x26b365)
                #8  0x00007f256e611102 n/a (librendersystemvulkan.so + 0x189102)
                #9  0x00007f258a2b449a n/a (libengine2.so + 0x43b49a)
                #10 0x00007f258a2b4fdc n/a (libengine2.so + 0x43bfdc)
                #11 0x00007f258a0e4e12 n/a (libengine2.so + 0x26be12)
                #12 0x00007f258a0e51d0 n/a (libengine2.so + 0x26c1d0)
                #13 0x00007f258a019747 n/a (libengine2.so + 0x1a0747)
                #14 0x00007f258a019bdf Source2Main (libengine2.so + 0x1a0bdf)
                #15 0x000055c03da0bf70 n/a (cs2 + 0x3f70)
                #16 0x000055c03da0b920 n/a (cs2 + 0x3920)
                #17 0x00007f258d67fd90 n/a (/run/host/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x29d90)
qiwi1272 commented 6 months ago

I'm facing the exact same issue, for the same amount of time: /media/qiwi/HDD/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh: line 118: 154833 Segmentation fault ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"

it could have been the update, though i did play some arms race before this started.

Root-Core commented 6 months ago

I fixed it by removing mangohud from my start parameters. It works on Wayland and X11 now.

taep96 commented 6 months ago

I fixed it by removing mangohud from my start parameters. It works on Wayland and X11 now.

Weird, latest changelog claims to fix crashes in cs2 https://github.com/flightlessmango/MangoHud/releases/tag/v0.7.1

taep96 commented 6 months ago

It wasn't crashing on start for me but it was freezing mid-game, and that seems to be gone w/o Mangohud. But unfortunately it's still crashing when it loses focus sometimes (probably https://github.com/ValveSoftware/csgo-osx-linux/issues/3656)

vladest commented 6 months ago

Crashes become less frequent if switch off Compositor on startup in KDE Plasma and reboot

kartoffeldennis commented 5 months ago

Im having the same segmentation fault crashes. Gonna Post the Reports later when im back home.

bull500 commented 5 months ago

I've also got the same issues Posted my logs/details and comments here: https://github.com/ValveSoftware/csgo-osx-linux/issues/3698#issuecomment-2027496168

Admonito commented 5 months ago

I fixed it by installing flatpak steam and installing cs2 there. https://github.com/ValveSoftware/csgo-osx-linux/issues/3703