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

CSGO crashes with the new -vulkan option

Open YShow opened this issue 4 years ago • 42 comments

Your system information

  • System information from steam: https://gist.github.com/YShow/b4b44d2d9f807ba75ac06bf9ca31d047
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

trying to open csgo with vulkan results in a instant crash as seem in the log bellow

https://gist.github.com/YShow/aa1ba3ac394b5bfe4d9145ca8a244b33

Steps for reproducing this issue:

  1. Open CSGO with -vulkan
  2. crash with tcmalloc error

YShow avatar Dec 15 '21 02:12 YShow

Hello @YShow, src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x8c953a0 in your log hints that you're seeing the same issue as #2659.

kisak-valve avatar Dec 15 '21 02:12 kisak-valve

Hello @YShow, src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x8c953a0 in your log hints that you're seeing the same issue as #2659.

Could be related to that but im able to play csgo with opengl and there is the workaround to delete the video folder from panorama that makes csgo works just fine but with a ugly start screen but that doesnt work with -vulkan

YShow avatar Dec 15 '21 02:12 YShow

-vulkan works for me I'm using Fedora 35, I am using this workaround:

dnf install gperftools-libs cd ....Counter-Strike Global Offensive/bin/linux64/ mv libtcmalloc_minimal.so.0 libtcmalloc_minimal.so.0.bak mv libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4.bak cp /usr/lib64/libtcmalloc_minimal.so.4.5.9 libtcmalloc_minimal.so.0

Sultech avatar Dec 15 '21 02:12 Sultech

-vulkan works for me I'm using Fedora 35, I am using this workaround:

dnf install gperftools-libs cd ....Counter-Strike Global Offensive/bin/linux64/ mv libtcmalloc_minimal.so.0 libtcmalloc_minimal.so.0.bak mv libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4.bak cp /usr/lib64/libtcmalloc_minimal.so.4.5.9 libtcmalloc_minimal.so.0

that could work but im worried about my trust factor

YShow avatar Dec 15 '21 03:12 YShow

that could work but im worried about my trust factor

is there any proof that something like this would effect trust factor?

RealAstolfo avatar Dec 15 '21 07:12 RealAstolfo

that could work but im worried about my trust factor

is there any proof that something like this would effect trust factor?

Not really, valve never says anything so im just speculating at this point

YShow avatar Dec 15 '21 16:12 YShow

System Information: Gentoo https://github.com/shoober420/rootscripts/blob/main/home/shoober420/sysinfoamd

Im getting the same invalid pointer error, similar to an error when launching Portal 2. Left 4 Dead 2 launches fine with the -vulkan option.

https://github.com/ValveSoftware/portal2/issues/362

src/tcmalloc.cc:390] Attempt to free invalid pointer: 0x885f3a0

EDIT:

Removing the libtcmalloc_minimal.so files from the "Counter-Strike Global Offensive/bin/linux64/" and replacing them with the single libtcmalloc_minimal.so file in the /usr/lib64 directory worked for me as well.

This also fixes Portal 2, except you need to copy the 32bit version of libtcmalloc_minimal.so from /usr/lib and put it into the "Portal 2/bin/linux32" directory.

This does seem to stem from this original issue.

https://github.com/ValveSoftware/csgo-osx-linux/issues/2659

shoober420 avatar Dec 16 '21 12:12 shoober420

Replying to https://github.com/ValveSoftware/csgo-osx-linux/issues/2887#issue-1080491957

ITs not crashing because of vulkan option , just delete videos folder . This problem exist in every OS . It is because u have to turn of in bios energy SAVING FEATURES like COol N Quiet my friend . Stop Spaming

ilievi187 avatar Dec 17 '21 09:12 ilievi187

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

What does it say when you ldd csgo_linux64 (the executable)?

This method worked for me, before it would (when launching with -vulkan) crash to desktop with the tcmalloc invalid pointer error. Flatpak Steam worked with the bundled libraries.

I have libtcmalloc_minimal.so.4.5.9 linked to libtcmalloc_minimal.so.0 in /usr/lib64, which makes ldd csgo_linux64 happy. Then I have just renamed the original libtcmalloc_minimal.so.0 with .old in the csgo directory bin/linux64. This doesn't require adding any files to the csgo directory, so it's slightly different to what you have done.

I'm using Gentoo (glibc-2.34-r3) with pf-sources (5.15_p4), I will try using a different kernel perhaps.

MichaelDeets avatar Dec 17 '21 10:12 MichaelDeets

@kisak-valve and all others please keep in mind that setting -threads > 16 crashes the game as soon as the last part of the map loads.

No cached sticky mapping in ActivateActionSetLayer.ERROR: ld.so: object '/home/blackout/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored. crash_20211217171502_2.dmp[10174]: Uploading dump (out-of-process) /tmp/dumps/crash_20211217171502_2.dmp crash_20211217171502_2.dmp[10174]: Finished uploading minidump (out-of-process): success = yes crash_20211217171502_2.dmp[10174]: response: Discarded=1 crash_20211217171502_2.dmp[10174]: file ''/tmp/dumps/crash_20211217171502_2.dmp'', upload yes: ''Discarded=1'' pid 10174 != 10173, skipping destruction (fork without exec?)

crash_20211217171502_2.zip

romanstingler avatar Dec 17 '21 16:12 romanstingler

Replying to #2887 (comment)

ITs not crashing because of vulkan option , just delete videos folder . This problem exist in every OS . It is because u have to turn of in bios energy SAVING FEATURES like COol N Quiet my friend . Stop Spaming

Idk if the reply was for me, but if u scroll 2 comments after this issue u will find that i tried deleting the panorama video folder, that does work for opengl but for vulkan it still crashes

YShow avatar Dec 17 '21 17:12 YShow

@RealAstolfo @YShow

that could work but im worried about my trust factor

is there any proof that something like this would effect trust factor?

Not really, valve never says anything so im just speculating at this point you can check out in console trusted_launch_info

romanstingler avatar Dec 18 '21 17:12 romanstingler

After a recent system update which included glibc 2.35 (upgraded from 2.33) I can no longer launch with -vulkan.

Arch Linux, AMDGPU, xorg and wayland, steam-native and runtime tested. verified files, cleared dl cache, deleted video folder, tried with and without shader precaching, with and without steam overlay.

GL still works.

henrym11106 avatar Feb 15 '22 21:02 henrym11106

Same error as @henrym11106 Recently updated Arch Linux and now i can't launch CSGO with the -vulkan parameter

And GL works good

Fijxu avatar Feb 16 '22 02:02 Fijxu

-vulkan works for me I'm using Fedora 35, I am using this workaround:

dnf install gperftools-libs cd ....Counter-Strike Global Offensive/bin/linux64/ mv libtcmalloc_minimal.so.0 libtcmalloc_minimal.so.0.bak mv libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4.bak cp /usr/lib64/libtcmalloc_minimal.so.4.5.9 libtcmalloc_minimal.so.0

Thanks! Works here, after Arch Linux full upgrade ([2022-02-16T17:07:51-0300] [ALPM] upgraded vulkan-headers (1:1.2.203-1 -> 1:1.3.204-1)).

Cledersonbc avatar Feb 17 '22 02:02 Cledersonbc

-vulkan works for me I'm using Fedora 35, I am using this workaround: dnf install gperftools-libs cd ....Counter-Strike Global Offensive/bin/linux64/ mv libtcmalloc_minimal.so.0 libtcmalloc_minimal.so.0.bak mv libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4.bak cp /usr/lib64/libtcmalloc_minimal.so.4.5.9 libtcmalloc_minimal.so.0

Thanks! Works here, after Arch Linux full upgrade ([2022-02-16T17:07:51-0300] [ALPM] upgraded vulkan-headers (1:1.2.203-1 -> 1:1.3.204-1)).

Also on Arch. Got same error,. This solution also worked for me.

rodrigo-ceccato avatar Feb 24 '22 15:02 rodrigo-ceccato

Dota2 has the same issue. https://github.com/ValveSoftware/Dota-2/issues/1999

Zesko avatar Feb 24 '22 18:02 Zesko

-vulkan works for me I'm using Fedora 35, I am using this workaround:

dnf install gperftools-libs cd ....Counter-Strike Global Offensive/bin/linux64/ mv libtcmalloc_minimal.so.0 libtcmalloc_minimal.so.0.bak mv libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4.bak cp /usr/lib64/libtcmalloc_minimal.so.4.5.9 libtcmalloc_minimal.so.0

Works on Arch! :) Also, Vulkan gets me better performance than OpenGL.

BlackBaza avatar Mar 01 '22 00:03 BlackBaza

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

Manjaro, worked :+1:

pawelswiszcz avatar Mar 01 '22 17:03 pawelswiszcz

The install gperftools and replace the .so file method worked for me :+1:

PQCraft avatar Mar 02 '22 12:03 PQCraft