Closed t00 closed 5 years ago
While reporting the issue I found a solution, so the issue can be closed but please fix it by embedding libpng12 with the CSGO install:
cp -a ~/.steam/root/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libpng* /tmp
sudo mv -a /tmp/libpng* /usr/lib/x86_64-linux-gnu/
Is there a better location to place the libpng12.so.0 so that only affected steam games can be fixed instead of copying the library so it's accessible system-wide?
Hello @t00, you can add symlinks to the pinnedlibs* folder to give priority to specific libraries like https://github.com/ValveSoftware/csgo-osx-linux/issues/1801#issuecomment-418794904.
This is effectively a duplicate of #1801. If you can figure out why your system was providing an ABI-incompatible libpng12.so.0, please add a note to that issue report.
You can modify the environment variable LD_LIBRARY_PATH and override default paths on per-app basis.
Simply add the following into ~/.steam/steam/steamapps/common/Counter-Strike Global Offensive/csgo.sh
:
export LD_LIBRARY_PATH=/your/folder/with/libpng12
You can also set your launch command in library to something like LD_LIBRARY_PATH=/your/folder/with/libpng12 %command% -novid
.
@ericek111 Thank you for providing a workaround on such short notice. Can csgo.sh can be modified if playing multiplayer (changed file anti cheat detection etc.)? Also LD_LIBARY_PATH cannot be provided in Launch Options, does it mean it will be used even if I run steam itself with LD_LIBRARY_PATH set? Obviously running csgo.sh directly without steam shows a warning about not official way used to run CSGO.
@kisak-valve I tried creating symlinks after deleting /usr/lib copies of libpng but the game still crashed as it was unable to find libpng12. I will continue commenting on the other issue from now on.
If you've been testing outside Steam, you may have better luck using run.sh
in the steam-runtime folder to give the game a similar environment as Steam.
(~/.steam/root/ubuntu12_32/steam-runtime/run.sh ./csgo.sh
)
Your system information
Steam
->Help
->System Information
) in a gist: https://gist.github.com/t00/2751b91e3ea531b66bd6259ebf97bab9Please describe your issue in as much detail as possible:
When launching CS-GO on Ubuntu 18.10 with nvidia drivers 415 or 418 (both previously working) after unspecified system update.
Update log: https://gist.github.com/t00/ca050869e6beebf7e26708dd33959e3c
I tried running csgo.sh using gdb:
https://gist.github.com/t00/87bdbad28d871115fb838d41d99b1bb5
I tried running CSGO with different combinations of -nojoy , -scaleform switches (both in steam and csgo.sh command line) although I do not have any game controller connected. Backtrace is identical for these arguments, game crashes.
The dmesg error is as below:
[ 2427.253581] csgo_linux64[7932]: segfault at 58 ip 00007ffff678358b sp 00007fffffffb830 error 4 in libSDL2-2.0.so.0[7ffff66cc000+f8000] [ 2427.253586] Code: 83 c0 28 4c 39 c8 75 cf 48 8b ac 24 60 04 00 00 48 8b 9c 24 80 00 00 00 48 8b 7d 08 48 85 ff 0f 84 02 0c 00 00 e8 e5 35 ff ff <48> 8b 40 58 48 8b 55 08 8b 00 4c 8b a2 c0 00 00 00 89 84 24 88 00 [ 3240.530175] csgo_linux64[9031]: segfault at 58 ip 00007ffff678358b sp 00007fffffffb7d0 error 4 in libSDL2-2.0.so.0[7ffff66cc000+f8000] [ 3240.530182] Code: 83 c0 28 4c 39 c8 75 cf 48 8b ac 24 60 04 00 00 48 8b 9c 24 80 00 00 00 48 8b 7d 08 48 85 ff 0f 84 02 0c 00 00 e8 e5 35 ff ff <48> 8b 40 58 48 8b 55 08 8b 00 4c 8b a2 c0 00 00 00 89 84 24 88 00
The dump file is base64 encoded in the following gist: https://gist.github.com/t00/48f07463ca97ecef00f15e1364743edd