ValveSoftware / csgo-osx-linux

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

Games do not load or black screen on latest Ubuntu / Mint #3099

Open logical-and opened 1 year ago

logical-and commented 1 year ago

Your system information

Please describe your issue in as much detail as possible:

Cannot run CS: GO (as well as Black Mesa, that I purchased recently) anymore on my Ubuntu / Mint. I played this game few months ago, and now it crashes (or freezes). See attached content (how it looks like after game is started and system info).

I think during last few months I updated videocard drivers few times, so this might be an issue, but not sure.

Also, I tried to use different videocard driver versions and none of them worked:

Give please recommendations what could I do to provide more information and try something that might help 🙏

Steps for reproducing this issue:

  1. Run steam client
  2. Run CS:GO (or Black Mesa)
  3. Report to steam team about the issue :smiley:

2022-12-06_15-09

logical-and commented 1 year ago

Any suggestions, guys?

SzymonRysztof commented 1 year ago

Having exactly the same issue but i'm on Arch with Zen kernel Linux szymon-arch 6.0.11-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Fri, 02 Dec 2022 17:25:29 +0000 x86_64 GNU/Linux

Running radeon RX 6900XT local/vulkan-radeon 22.2.3-1 Radeon's Vulkan mesa driver local/mesa 22.2.3-1 An open-source implementation of the OpenGL specification

It's kinda frustrating, that i can't play CS:GO on Linux and i need to fallback to Windows, if i remember correctly, it's second time this year, major bug for Linux users occurs and Valve does not pick up an issue and won't resolve it in reasonable time. First time was with some kind of splash video error, when you needed to remove said video from filesystem, to even start the game. Shame because Valve did a lot good for Linux, but they can't keep their own title playable on it :(

logical-and commented 1 year ago

Is there at least any workaround, gents? Or any way I could debug the issue?

SzymonRysztof commented 1 year ago

@logical-and You may take a look at /tmp/dumps/ there should be some crash dumps from cs go, but i wasn't able to find anything helpful there.

logical-and commented 1 year ago

@mezutelni , thanks for suggesion but unfortunately nothing useful:

/tmp/dumps/:
total 1236
-rw-rw---- 1 and and     144 Dec 13 22:33 and_log.txt  -- just info about .dmp file
-rw------- 1 and and 1239296 Dec 13 22:33 assert_20221213223354_46.dmp  -- binary file, is there any way to read it?
drwx------ 2 and and    4096 Dec  7 08:56 attachments
drwx------ 2 and and    4096 Dec  7 08:56 completed
drwx------ 2 and and    4096 Dec  7 08:56 new
drwx------ 2 and and    4096 Dec  7 08:56 pending
-rw------- 1 and and      40 Dec  7 09:00 settings.dat

/tmp/dumps/attachments:
total 0

/tmp/dumps/completed:
total 0

/tmp/dumps/new:
total 0

/tmp/dumps/pending:
total 0
logical-and commented 1 year ago

Found an answer - there is no way to read the dumps :) https://www.reddit.com/r/linux_gaming/comments/z73s02/how_to_read_steam_dump_files/

kisak-valve commented 1 year ago

Steam uses breakpad's minidump format. https://www.chromium.org/developers/decoding-crash-dumps/ is a starting point if you want to ponder them yourself.

mackatozis commented 1 year ago

Try to enable Vulkan

Right Click -> Properties -> LAUNCH OPTIONS

add the following

-vulkan
SzymonRysztof commented 1 year ago

@mackatozis Doesn't work for me. Still only seeing black screen and then game not responding window.

But from the reddit post linked by @logical-and i used method listed there, to obtains some crash info, looks like that on my side:

ERROR: ld.so: object '/home/szymon/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/szymon/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/szymon/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 7572 != 7571, skipping destruction (fork without exec?)
ERROR: ld.so: object '/home/szymon/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/szymon/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
SDL video target is 'x11'
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 DOES NOT support 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 DOES NOT support 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 DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system supports 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 supports 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 supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports 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/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/engine_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/engine_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/filesystem_stdio_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/filesystem_stdio_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/inputsystem_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/inputsystem_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/vphysics_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/vphysics_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/materialsystem_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/materialsystem_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/datacache_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/datacache_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/studiorender_client.so error=/home/szymon/.local/share/Steam/Using breakpad crash handler
[S_API] SteamAPI_Init(): Loaded '/home/szymon/.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
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198066859964 [API loaded yes]
SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  76561198066859964
steamapps/common/Counter-Strike Global Offensive/bin/studiorender_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/soundemittersystem_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/soundemittersystem_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/vscript_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/vscript_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/vguimatsurface_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/vguimatsurface_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/vgui2_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/vgui2_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/shaderapidx9_client.so error=/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/shaderapidx9_client.so: wrong ELF class: ELFCLASS32
 failed to dlopen /home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/localize_client.so error=/home/szymon/.local/share/Steam/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/13849.1538.JC
Initialized low level socket/threading support.
Set SteamNetworkingSockets P2P_STUN_ServerList to '155.133.230.50: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:76561198066859964):  Attempting  (Requesting cert)
USRLOCAL path using Steam profile data folder:
/home/szymon/.local/share/Steam/userdata/106594236/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!
The default video config has changed, config key 'VendorID=1' is no longer default '4098'.
The default video config has changed, config key 'DeviceID=1' is no longer default '29615'.
VerifyDefaultVideoConfig: The default video config for the machine has changed, updating the current config to match.

 ##### swap interval = 0     swap limit = 1 #####
Fontconfig warning: "/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/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/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/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
Fontconfig warning: "/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/panorama/fonts/fonts.conf", line 31: Use of ambiguous path in <dir> element. please add prefix="cwd" if current behavior is desired.
Fontconfig warning: "/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/panorama/fonts/fonts.conf", line 38: unknown element "fontpattern"
Fontconfig warning: "/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/panorama/fonts/fonts.conf", line 39: unknown element "fontpattern"
Fontconfig warning: "/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/panorama/fonts/fonts.conf", line 40: unknown element "fontpattern"
Fontconfig warning: "/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/panorama/fonts/fonts.conf", line 41: unknown element "fontpattern"
Fontconfig warning: "/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/panorama/fonts/fonts.conf", line 42: unknown element "fontpattern"
Fontconfig warning: "/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/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/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/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
ERROR: ld.so: object '/home/szymon/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
crash_20221214163443_2.dmp[7949]: Uploading dump (out-of-process)
/tmp/dumps/crash_20221214163443_2.dmp
/home/szymon/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh: line 88:  7574 Bus error               (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
crash_20221214163443_2.dmp[7949]: Finished uploading minidump (out-of-process): success = yes
crash_20221214163443_2.dmp[7949]: response: Discarded=1
crash_20221214163443_2.dmp[7949]: file ''/tmp/dumps/crash_20221214163443_2.dmp'', upload yes: ''Discarded=1''

There is bunch of error regard some libraries, but i've reinstalled game twice and also checked game files integrity so im not sure where thoes comes from.

EmreDogu commented 1 year ago

Having exact issue on Arch Linux with zen kernel. After some research came across this issue and after around 1 min of waiting game launched and worked just fine. Maybe this would also work for you guys as a temporariy solution.

mackatozis commented 1 year ago

Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/3099#issuecomment-1351657988

Hi again, I too have the same issue (black screen, the game crashing) if I remove the -vulkan option.

Here are all the lauch options I use currently

-fullscreen -nojoy -no-browser -novid -vulkan
SzymonRysztof commented 1 year ago

@mackatozis Sadly, nothing changes for me with your launch options. I'm only getting black screen and after ~5-10 sec it crashes.

@EmreDogu Thanks, but that's not the issue here. There is no way to wait, because game crashes after short period of time.

SzymonRysztof commented 1 year ago

@logical-and Found a fix for my issue, Can you try to:

  1. Open your game install folder
  2. Go into csgo/panorama
  3. Remove or rename videos directory
  4. Set launch option to %command% -novid (you can add -vulkan if you like to, but -novid is neccessery)
  5. I've also disabled shader pre-caching during testing, so if you did too, reeanable it now.
  6. Start game

For me it's kinda sluggish at the beginning of the match, but i believe its because come cache wooshoo, it's working better after 1-2 minutes ingame. It may also hung during game loading, but you can just ignore "not responding" thing, for me it worked normally, i think it's because game hangs during map loading, it wasn't appearing after going onto the same map, second time.

About the issue, if the videos are problem, i suspect lack of codecs, i'll look into it later.

mackatozis commented 1 year ago

Hi, I'm glad that you managed to resolve your issue.

But, why did you add %command%, are you trying to execute something before you launch the game?

SzymonRysztof commented 1 year ago

@mackatozis Not really, I'm just used to putting it everytime I'm modifying launch options, no matter the game, to be honest I thought that it's necessary. Is that bad?

mackatozis commented 1 year ago

It's not bad, %command% is a reserved word for saying to Steam that it needs to run something before it launches the game.

If you are not trying to execute something, then it is just redundant.

Personally, I use it to set my native resolution down to 1920x1440 with the xrandr command before I join the game, because I like to play 4:3 stretched (Vulkan enforces your native resolution and you cannot change it from within the game)

My launch options are:

xrandr --output DP-4 --primary --mode 2560x1440 --scale-from 1920x1440 --rate 165 --pos 0x0; %command% -fullscreen -nojoy -no-browser -novid -vulkan; xrandr --output DP-4 --primary --mode 2560x1440 --transform none --rate 165 --pos 0x0
logical-and commented 1 year ago

@mezutelni , unfortunately it didn't help for CS (removal of videos and adding -novid parameter). I didn't find videos directory in Black Mesa source, but adding -novid changes nothing for this game too. How did you find that removal of videos may help?

SzymonRysztof commented 1 year ago

@logical-and I stumbled onto an old issue on reddit, it was listed as a fix. It was pretty random to be honest. And sorry, but I'm only speaking about CS:GO. I don't have Black Mesa :(

logical-and commented 1 year ago

@mezutelni , anyways thank you pretty much for the help. It just does not work for either CS or Black Mesa :/

Kiameow commented 1 year ago

in my case, I try to play CSGO offline, and it turns out working, after that, just re-connect the network, and everything goes fine.

Zipdox2 commented 1 year ago

Renaming the videos folder somehow fixed it. Bizarre.