csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

CS:GO not starting on Ubuntu 21.10

Open hombrehormiga opened this issue 4 years ago • 62 comments

Your system information

  • System information from steam: https://gist.github.com/hombrehormiga/a75157bb869443dc80b45f32afbd77bf

  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

The game was working fine on Ubuntu 21.04. After updating the system to Ubuntu 21.10, the game just show a black screen for some seconds and then die.

I've tried with some launch options like -autoconfig -fullscreen -nojoy -steam -novid with the same results

Console output running it from the console: https://gist.github.com/hombrehormiga/ca117c0c35d65ffbad1aca2b90c1f0c4

Steps for reproducing this issue:

  1. Just run the game in Ubuntu 21.10

hombrehormiga avatar Oct 16 '21 15:10 hombrehormiga

I know this is not helpful but i have the same problem so i think valve needs to fix something because I'm not the only one with this problem

poopman97 avatar Oct 16 '21 20:10 poopman97

I think this is a duplicate of https://github.com/ValveSoftware/csgo-osx-linux/issues/2811

Thanks!

Disk1of5 avatar Oct 16 '21 22:10 Disk1of5

Same problem most probably its just some thing the csgo guys need to update in order to run in the latest ubuntu relese which was recent

AshuAhlawat avatar Oct 19 '21 09:10 AshuAhlawat

same problem after upgrading to Ubuntu 21.10

orestisv515 avatar Oct 19 '21 18:10 orestisv515

Ubuntu 21.10 same problem Intel(R) Xeon(R) CPU E3-1230 V2 @ 3.30GHz MSI RX580

DBG DBG b OTHER erno_chimney_03.mdl crash_20211020111524_2.dmp[10683]: Uploading dump (out-of-process) /tmp/dumps/crash_20211020111524_2.dmp

WicRus avatar Oct 20 '21 04:10 WicRus

Same problem. I am on pop-os 20.10

EysseW avatar Oct 20 '21 13:10 EysseW

After 20 attempts to start the game, i still have the same problem. I am on Ubuntu 20.10

DocAnas avatar Oct 20 '21 14:10 DocAnas

Same here. Ubuntu 21.10. Even after 50 tries, CS:GO didn't launch.

chrisribal avatar Oct 21 '21 15:10 chrisribal

its been like this for almost 2 weeks lol

poof47 avatar Oct 22 '21 12:10 poof47

from looking at all the other trouble tickets i wonder if its an issue introduced in libc-bin package.
lets look at : https://github.com/ValveSoftware/csgo-osx-linux/issues/2818#issue-1029514296 From the troubles i see it crashes on Thread 1 "csgo_linux64" received signal SIGABRT, Aborted. __pthread_kill_implementation (no_tid=0, signo=6, threadid=139800493254528) at pthread_kill.c:44 44 pthread_kill.c: No such file or directory. (gdb) bt #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=139800493254528) at pthread_kill.c:44

which might have been introduced when ubuntu's packages changes the libc version from (UBUNTU20.04) libc-bin (2.33-0ubuntu5) GNU C Library: Binaries to (UBUNTU20.10) libc-bin (2.34-0ubuntu3) GNU C Library: Binaries

Full changes of Glib libraries between versions https://fossies.org/diffs/glibc/2.33_vs_2.34/

Main Diff's of the function and C file throwing the error: https://fossies.org/diffs/glibc/2.33_vs_2.34/nptl/pthread_kill.c-diff.html

But i dunno.. Maybe im wrong..
Valve? lil'help..
¯\_(ツ)_/¯

Disk1of5 avatar Oct 22 '21 23:10 Disk1of5

BUT, im also getting: g_object_unref: assertion 'G_IS_OBJECT (object)' failed so maybe this is a GTK issue that's part of gnome40+ Any one brave enough to install a different DE thats not based off of GTK.. like KDE or i3 or something to see if this isn't a gnome40 issue? (BTW, popOS is still gnome for the new users :heart_decoration: )

I guess since we can't clutch wins we might as well help trouble shoot until Dev's get involved ... maybe they will bless us with some Github AK skins for the trouble shooting for the debug assists :laughing:

Disk1of5 avatar Oct 22 '21 23:10 Disk1of5

BUT, im also getting: g_object_unref: assertion 'G_IS_OBJECT (object)' failed so maybe this is a GTK issue that's part of gnome40+ Any one brave enough to install a different DE thats not based off of GTK.. like KDE or i3 or something to see if this isn't a gnome40 issue? (BTW, popOS is still gnome for the new users heart_decoration )

I guess since we can't clutch wins we might as well help trouble shoot until Dev's get involved ... maybe they will bless us with some Github AK skins for the trouble shooting for the debug assists laughing

I use dwm and still got the error... I reinstalled Ubuntu 21.04 and no longer have an issue. It's likely the new libc.

jordst avatar Oct 23 '21 00:10 jordst

@jordst thanks for verifying i also just re-booted back in from attempting with openbox and also no luck. yup might be a that dang libc issue

Disk1of5 avatar Oct 23 '21 00:10 Disk1of5

I have the same issue, it was working fine before the upgrade.

I tried running it from the terminal just to see the log and this is what I get:

failed to dlopen ~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/bin/matchmaking_client.so error=~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/bin/matchmaking_client.so: wrong ELF class: ELFCLASS32
failed to dlopen ~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/bin/client_client.so error=~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/bin/client_client.so: wrong ELF class: ELFCLASS32
CClientSteamContext logged on = 1
failed to dlopen ~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/bin/server_client.so error=~/.local/share/Steam/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 ~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/soundemittersystem_client.so error=~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/soundemittersystem_client.so: wrong ELF class: ELFCLASS32
failed to dlopen ~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/scenefilecache_client.so error=~/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/scenefilecache_client.so: wrong ELF class: ELFCLASS32
Also this one:
ERROR: ld.so: object '~/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64).

I'm not sure if those errors are related or helpful here, but it's the only information that I have, and the behaviour it's the same as described by others. Click play, screens goes black as if the games was about to start, and then it crashes.

fhangel avatar Oct 23 '21 02:10 fhangel

Everyone has issue with Ubuntu 21.10 ( same as me ) from so far I've checked I think valve is struggling with gnome40.* 😳

poof47 avatar Oct 23 '21 10:10 poof47

Everyone has issue with Ubuntu 21.10 ( same as me ) from so far I've checked I think valve is struggling with gnome40. Nope. lxqt+sddm have same problem. Probably glibc issue.

WicRus avatar Oct 23 '21 12:10 WicRus

Same problem after upgrading to Ubuntu 21.10. A workaround posted here: https://github.com/ValveSoftware/csgo-osx-linux/issues/2659#issuecomment-851578020 resolved the issue for me.

rtuovine avatar Oct 23 '21 17:10 rtuovine

the workaround (#2659 (comment) https://github.com/ValveSoftware/csgo-osx-linux/issues/2659#issuecomment-851578020 worked for me as well. just remember to exit steam and then run.

On Sat, 23 Oct 2021 at 20:11, rtuovine @.***> wrote:

Same problem after upgrading to Ubuntu 21.10. A workaround posted here: #2659 (comment) https://github.com/ValveSoftware/csgo-osx-linux/issues/2659#issuecomment-851578020 resolved the issue for me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/csgo-osx-linux/issues/2815#issuecomment-950182872, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWEEZMGGMYJJSNLBIOXON3DUILUCVANCNFSM5GDYEJZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

orestisv515 avatar Oct 23 '21 17:10 orestisv515

Same problem after upgrading to Ubuntu 21.10. A workaround posted here: #2659 (comment) resolved the issue for me.

worked, short guide

kill steam sudo apt install libtcmalloc-minimal4 cd ${CS_GO_PATH}/bin/linux64 mv libtcmalloc_minimal.so.0 libtcmalloc_minimal.so.0.orig cp /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4.5.9 libtcmalloc_minimal.so.0

WicRus avatar Oct 23 '21 18:10 WicRus

Ok, libtcmalloc_minimal.so.0 seems to be the problem, however, the solution ended up being a bit different for me because I discover my steam is using the system libraries, but don't know why?. Anyway, all I have to do, was to copy the existing ${CS_GO_PATH}/bin/linux64/libtcmalloc_minimal.so.0 from the game folder to my /lib/x86_64-linux-gnu/ folder.

Before:

$ ldd ./csgo_linux64 
	linux-vdso.so.1 (0x00007fff2a998000)
	libtcmalloc_minimal.so.0 => not found
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3606ab9000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3606891000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f3606ae7000)

After:

$ ldd ./csgo_linux64 
	linux-vdso.so.1 (0x00007ffd5558f000)
	libtcmalloc_minimal.so.0 => /lib/x86_64-linux-gnu/libtcmalloc_minimal.so.0 (0x00007fa5d507c000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fa5d5077000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa5d4e4f000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa5d4e4a000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fa5d4c31000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa5d4b4d000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fa5d4b31000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fa5d52f1000)

The game is now working, but the question is why my steam is not using its own libraries?

fhangel avatar Oct 24 '21 03:10 fhangel

@fhangel awesome finding i also tried this and it did NOT work, something made ubuntu's version of libtcmalloc incompatable between 21.04 and 21.10 Even if you perform this to satisfy the the dependencies it does not work:

sudo apt-get install libtcmalloc-minimal4
sudo ln /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.0 -s
sudo ldconfig
ldd ./csgo_linux64 
	linux-vdso.so.1 (0x00007fffb9461000)
	libtcmalloc_minimal.so.0 => /lib/x86_64-linux-gnu/libtcmalloc_minimal.so.0 (0x00007f85aa2e3000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f85aa2de000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f85aa0b6000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f85a9e9d000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f85a9db9000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f85a9d9f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f85aa4e3000)

Still broken.

But you are correct, why is it relying on system dependencies rather than using steam runtime.. time to flatpak steam games?

Disk1of5 avatar Oct 24 '21 17:10 Disk1of5

@Disk1of5 I wonder if you are missing any other libraries? Going by ldd, your output doesn't include libpthread.so.0, so perhaps that could an issue? I'm just guessing, of course, but it might be worth looking into that one. I also had to attempt running the game a few times, at least 3, before it finally worked, so keep that in mind as well.

fhangel avatar Oct 24 '21 23:10 fhangel

tl;dr - check this comment https://github.com/ValveSoftware/csgo-osx-linux/issues/2815#issuecomment-1016657992

@Disk1of5 interestingly your steps actually fixed it for me. I first attempted @WicRus's suggestion and removed ${CS_GO_PATH}/bin/linux64/libtcmalloc_minimal.so., then tried to copy/link the libraries from the system (/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4). That DID NOT work, but re-linking the system lib using:

ln /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.0 -s

actually solved it for me.

I'm also using Ubuntu 21.10 with latest updates applied.

steve-todorov avatar Nov 03 '21 18:11 steve-todorov

Still not working for me, double checked all my dependencies are satisfied with LDD.. still have my symlink with my attempt for libtcmalloc_minimal .so.0 nothing is working.. you would think by now a patch would have been pushed utilizing NEW/Correct dependencies. :(

Disk1of5 avatar Nov 03 '21 23:11 Disk1of5

@steve-todorov

kill steam
sudo apt install libtcmalloc-minimal4
cd ${CS_GO_PATH}/bin/linux64
mv libtcmalloc_minimal.so.0 libtcmalloc_minimal.so.0-
mv libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4-
sudo ln /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.0 -s

This worked for me.

ldd csgo_linux64 
        linux-vdso.so.1 (0x00007ffe22b75000)
        libtcmalloc_minimal.so.0 => /lib/x86_64-linux-gnu/libtcmalloc_minimal.so.0 (0x00007fb4a07fd000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb4a07f8000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb4a05d0000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb4a03b7000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb4a02d3000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb4a02b9000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb4a09ec000)

clvx avatar Nov 04 '21 12:11 clvx

tl;dr - check this comment https://github.com/ValveSoftware/csgo-osx-linux/issues/2815#issuecomment-1016657992

@clvx yep, pretty much what I did as well. I didn't kill steam though (but I doubt it really matters). The only thing I haven't mentioned is -- before I tried this I completely uninstalled CS and re-downloaded it. Then I applied the dependency fixes and only then started CS. Maybe it matters, maybe it doesn't. I guess that's what you can try @Disk1of5

steve-todorov avatar Nov 04 '21 13:11 steve-todorov

kill steam
sudo apt install libtcmalloc-minimal4
cd ${CS_GO_PATH}/bin/linux64
mv libtcmalloc_minimal.so.0 libtcmalloc_minimal.so.0-
mv libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4-

this worked for me ! Ubuntu 20.10. Thanks @clvx 🙏🙏🙏

VuNgN avatar Nov 04 '21 15:11 VuNgN

kill steam sudo apt install libtcmalloc-minimal4 cd ${CS_GO_PATH}/bin/linux64 mv libtcmalloc_minimal.so.0 libtcmalloc_minimal.so.0- mv libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4- sudo ln /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.0 -s

Can confirm, this worked for me too :) Ubuntu 21.10 Big thanks to @clvx

1Wh1teWorld avatar Nov 05 '21 00:11 1Wh1teWorld

@clvx yep, pretty much what I did as well. I didn't kill steam though (but I doubt it really matters). The only thing I haven't mentioned is -- before I tried this I completely uninstalled CS and re-downloaded it. Then I applied the dependency fixes and only then started CS. Maybe it matters, maybe it doesn't. I guess that's what you can try @Disk1of5

I think the key point for @clvx method to work is that he renames those custom bundled libtcmalloc -libraries so that they are not used. I don't know why Valve wants to use custom versions for those. Ps. isn't the syntax incorrect for "kill steam"? "pkill steam" worked for me, but I thought the good old "kill" needs a "pid". not program name.

rvalimaki avatar Nov 12 '21 16:11 rvalimaki

I also have this issue, Ubuntu 21.10, Thank you, for workaround, it works.

Same problem after upgrading to Ubuntu 21.10. A workaround posted here: #2659 (comment) resolved the issue for me.

dulobanov avatar Nov 20 '21 09:11 dulobanov