ValveSoftware / csgo-osx-linux

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

Frozen / black screen on launch. "memory allocation bug: object ... has never been allocated" #3042

Open compumike opened 2 years ago

compumike commented 2 years ago

Your system information

Please describe your issue in as much detail as possible:

CSGO launch on Pop_OS 22.04 freezes with a black screen on launch. It must be force-killed with pkill -9 csgo. In the terminal, a memory allocation bug is reported:

Game process updated : AppID 730 "/home/mike/.steam/debian-installation/ubuntu12_32/reaper SteamLaunch AppId=730 -- '/home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/csgo.sh' -steam -high +cl_forcepreload 1 -novid -nojoy +cl_showfps 1", ProcID 341609, IP 0.0.0.0:0
Setting breakpad minidump AppID = 730
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198170941342 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561198170941342
Initialized low level socket/threading support.
Set SteamNetworkingSockets P2P_STUN_ServerList to '162.254.192.87:3478' as per SteamNetworkingSocketsSerialized
Got ISteamNetworkingSockets user interfaces from standalone lib
Pending ping measurement until network config is obtained.
SDR RelayNetworkStatus:  avail=Attempting  config=Attempting  anyrelay=Waiting   (Attempt #1 to fetch config from https://api.steampowered.com/ISteamApps/GetSDRConfig/v1?appid=730)
AuthStatus (steamid:76561198170941342):  Attempting  (Requesting cert)
USRLOCAL path using Steam profile data folder:
/home/mike/.steam/debian-installation/userdata/210675614/730/local
RESZ NOT SUPPORTED!
INTZ NOT SUPPORTED!
RESZ NOT SUPPORTED!
INTZ NOT SUPPORTED!

 ##### swap interval = 0     swap limit = 1 #####
CGLMShaderPair::SetProgramPair: Centroid masks differ at link time of vertex shader screenspaceeffect_vs30 and pixel shader underwater_ps30!
Filesystem successfully switched to safe whitelist mode
 failed to dlopen /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/csgo/bin/matchmaking_client.so error=/home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/csgo/bin/matchmaking_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/csgo/bin/client_client.so error=/home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/csgo/bin/client_client.so: wrong ELF class: ELFCLASS32
CClientSteamContext logged on = 1
 failed to dlopen /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/csgo/bin/server_client.so error=/home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/csgo/bin/server_client.so: wrong ELF class: ELFCLASS32
Game.dll loaded for "Counter-Strike: Global Offensive"
 failed to dlopen /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/soundemittersystem_client.so error=/home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/soundemittersystem_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/scenefilecache_client.so error=/home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/scenefilecache_client.so: wrong ELF class: ELFCLASS32
CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
CGameEventManager::AddListener: event 'game_newmap' unknown.
CGameEventManager::AddListener: event 'finale_start' unknown.
CGameEventManager::AddListener: event 'round_start' unknown.
CGameEventManager::AddListener: event 'round_end' unknown.
CGameEventManager::AddListener: event 'difficulty_changed' unknown.
CGameEventManager::AddListener: event 'player_death' unknown.
CGameEventManager::AddListener: event 'hltv_replay' unknown.
CGameEventManager::AddListener: event 'player_connect' unknown.
CGameEventManager::AddListener: event 'player_disconnect' unknown.
GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative).
GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission).
memory allocation bug: object at 0x7fdcefe58f40 has never been allocated

At this point, the process appears frozen, and must be killed with pkill -9 csgo.

If I instead run with gdb, via DEBUGGER=gdb ./csgo.sh -novid -nojoy, I do not see memory allocation bug printed, but I do get the following backtrace: see full log at https://gist.github.com/compumike/601dd10af4e619caca3b3d70bbe16ca8

Thread 1 "csgo_linux64" received signal SIGTRAP, Trace/breakpoint trap.
0x00007fffecb1be5b in ?? () from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
(gdb) bt
#0  0x00007fffecb1be5b in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
#1  0x00007fffecb1bfe3 in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
#2  0x00007fffecb1d572 in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
#3  0x00007ffff6e11590 in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/libtier0_client.so
#4  0x00007ffff6e11445 in LoggingSystem_Log ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/libtier0_client.so
#5  0x00007fffe10369d1 in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/panorama_text_pango_client.so
#6  0x00007fffe1037566 in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/panorama_text_pango_client.so
#7  0x00007fffe103818b in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/panorama_text_pango_client.so
#8  0x00007fffe103be4d in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/panorama_text_pango_client.so
#9  0x00007fffe20c8580 in CreatePanoramaUIEngineInternal ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/panorama_gl_client.so
#10 0x00007fffe22971a1 in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/panorama_gl_client.so
#11 0x00007fffe5669423 in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/panoramauiclient_client.so
#12 0x00007fffecb799bd in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
#13 0x00007fffeca9a3e1 in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
#14 0x00007fffecb1c9b0 in ?? ()
--Type <RET> for more, q to quit, c to continue without paging--
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
#15 0x00007fffecb22004 in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
#16 0x00007fffecb1e9fc in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
#17 0x00007fffecd12ad9 in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
#18 0x00007fffecb2059c in ?? ()
   from /home/mike/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/linux64/engine_client.so
#19 0x00007ffff7239b79 in ?? () from bin/linux64/launcher_client.so
#20 0x00007ffff7239b79 in ?? () from bin/linux64/launcher_client.so
#21 0x00007ffff7210a8b in LauncherMain () from bin/linux64/launcher_client.so
#22 0x00007ffff7a29d90 in __libc_start_call_main (main=main@entry=0x4006f0 <main>, argc=argc@entry=3, 
    argv=argv@entry=0x7fffffffd9d8) at ../sysdeps/nptl/libc_start_call_main.h:58
#23 0x00007ffff7a29e40 in __libc_start_main_impl (main=0x4006f0 <main>, argc=3, argv=0x7fffffffd9d8, init=<optimized out>, 
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd9c8) at ../csu/libc-start.c:392
#24 0x000000000040079d in _start ()

Please note that I have already placed the libtcmalloc as shown:

sudo apt install libtcmalloc-minimal4
cd ~/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin
cp /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal_debug.so.4.5.9 libtcmalloc_minimal.so.0
cp /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal_debug.so.4.5.9 libtcmalloc_minimal.so.4
cp /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal_debug.so.4.5.9 linux64/libtcmalloc_minimal.so.0
cp /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal_debug.so.4.5.9 linux64/libtcmalloc_minimal.so.4

Unfortunately I have not seen any other bug reports mentioning the word memory allocation bug so I am not sure where to investigate next. Thank you for your assistance.

Steps for reproducing this issue:

  1. Launch steam from console with steam -h
  2. Click "Play" on CSGO
compumike commented 2 years ago

Switched from deb (steam:i386 1:1.0.0.74-1pop1~1644936575~22.04~6d77918) to flatpak (com.valvesoftware.Steam 1.0.0.74) and it works now.

Feel free to close. :smile: