ValveSoftware / csgo-osx-linux

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

CSGO Startup to blackscreen with audio #3155

Open AtomsForHire opened 1 year ago

AtomsForHire commented 1 year ago

Your system information

Please describe your issue in as much detail as possible:

Expected to happen: Startup CSGO without any issues

What happened: CSGO routinely starts up to a black screen, but audio can be heard. For example, moving my mouse around I can hear the clicking sounds when going over the side buttons (inventory, find match, etc.). After closing the game using alt-f4, screen stays black and I can't bring up anything (drop down menu, alt-tab) so would have to bring up a terminal and reboot

The game launches with these launch options: -nojoy -novid -autoconfig -fullscreen -vulkan. I've tried a fix involving a 'libtcmalloc' file too. Also have verified game files a few times.

I've only just moved to Pop!_os a few weeks ago, so CSGO has not been installed for very long. When I first installed the game, the game launched fine. Then I tried mangohud with mangohud %command% and that would cause a black screen, but removing the command would fix it. However, it seems like the more I launched the game the more frequent the black screen gets, previously I only used the -nojoy option to fix the black screen, then next time I had to include -novid then -fullscreen etc. Although, I don't remember the exact order since sometimes removing options also solved it. The -vulkan option seems to have slowed the frequency of the black screens, but I still do get it often and also I get a lot more stuttering with that option on.

I'm pretty new to linux so I'm not sure about other commands that could provide more useful info, so, sorry about that.

Edit: Also getting issues with the game not exiting properly (when I am able to get into the game)

AtomsForHire commented 1 year ago

I've come back to investigate this problem since the stuttering was getting annoying, this time I verified game files and removed all launch options and ran the csgo.sh file. This is the output:

 --> ./.steam/debian-installation/steamapps/common/Counter-Strike\ Global\ Offensive/csgo.sh | tee csgo_log
SDL video target is 'x11'
SDL failed to create GL compatibility profile (whichProfile=0!
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system supports the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system supports the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system supports the OpenGL extension GL_EXT_direct_state_access.
This system supports the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system supports the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system supports the OpenGL extension GL_ARB_buffer_storage.
This system supports the OpenGL extension GLX_EXT_swap_control_tear.
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/engine_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/engine_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/filesystem_stdio_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/filesystem_stdio_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/inputsystem_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/inputsystem_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/vphysics_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/vphysics_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/materialsystem_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/materialsystem_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/datacache_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/datacache_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /hoUsing breakpad crash handler
[S_API] SteamAPI_Init(): Loaded '/home/atom/.steam/debian-installation/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 730
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(730)/version(13857.1558.JC)/tid(8902)
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198048036020 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561198048036020
me/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/studiorender_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/studiorender_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/soundemittersystem_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/soundemittersystem_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/vscript_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/vscript_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/vguimatsurface_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/vguimatsurface_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/vgui2_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/vgui2_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/shaderapidx9_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/shaderapidx9_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/localize_client.so error=/home/atom/.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/bin/localize_client.so: wrong ELF class: ELFCLASS32
Created D3D9 device successfully
WARNING: unable to link grab_window and grab_window because one or more is a ConCommand.
Using breakpad minidump system 730/13857.1558.JC
Initialized low level socket/threading support.
Set SteamNetworkingSockets P2P_STUN_ServerList to '103.10.125.156: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:76561198048036020):  Attempting  (Requesting cert)
USRLOCAL path using Steam profile data folder:
/home/atom/.steam/debian-installation/userdata/87770292/730/local
Did not detect any valid joysticks.
Timed out waiting for game mapping!
RESZ NOT SUPPORTED!
INTZ NOT SUPPORTED!
RESZ NOT SUPPORTED!
INTZ NOT SUPPORTED!

 ##### swap interval = 0     swap limit = 1 #####
crash_20230415220612_2.dmp[8962]: Uploading dump (out-of-process)
/tmp/dumps/crash_20230415220612_2.dmp
crash_20230415220612_2.dmp[8962]: Finished uploading minidump (out-of-process): success = no
crash_20230415220612_2.dmp[8962]: error: libcurl.so: cannot open shared object file: No such file or directory
crash_20230415220612_2.dmp[8962]: file ''/tmp/dumps/crash_20230415220612_2.dmp'', upload no: ''libcurl.so: cannot open shared object file: No such file or directory''
./.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/csgo.sh: line 88:  8902 Segmentation fault      (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"

At the very end it seems like libcurl.so is not installed, but when I run dpkg -l | grep libcurl I get:

 --> dpkg -l | grep libcurl
ii  libcurl3-gnutls:amd64                   7.81.0-1ubuntu1.10                                                         amd64        easy-to-use client-side URL transfer library (GnuTLS flavour)
ii  libcurl4:amd64                          7.81.0-1ubuntu1.10                                                         amd64        easy-to-use client-side URL transfer library (OpenSSL flavour)

Edit: After applying a fix from here, the libcurl.so error goes away but now it's replaced by a seg fault:

crash_20230415223855_2.dmp[8219]: Uploading dump (out-of-process)
/tmp/dumps/crash_20230415223855_2.dmp
./.steam/debian-installation/steamapps/common/Counter-Strike Global Offensive/csgo.sh: line 88:  8163 Segmentation fault      (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
crash_20230415223855_2.dmp[8219]: Finished uploading minidump (out-of-process): success = yes
crash_20230415223855_2.dmp[8219]: response: Discarded=1
crash_20230415223855_2.dmp[8219]: file ''/tmp/dumps/crash_20230415223855_2.dmp'', upload yes: ''Discarded=1''