Cant run .sh game

So I downloaded CS Source and it runs ok from terminal but it doesnt want to run from lutris

here is lutris -d

INFO     2023-05-01 00:04:22,505 [startup.init_lutris:173]:Starting Lutris 0.5.12
INFO     2023-05-01 00:04:22,757 [startup.check_driver:65]:Running Intel Mesa driver 23.0.2 on Mesa Intel(R) HD Graphics 4000 (IVB GT2) (0x166)
INFO     2023-05-01 00:04:22,757 [startup.check_driver:77]:GPU: 8086:0166 103C:17F4 (i915 drivers)
INFO     2023-05-01 00:04:22,757 [startup.check_driver:77]:GPU: 1002:6841 103C:17F4 (radeon drivers)
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
DEBUG    2023-05-01 00:04:23,192 [lutriswindow.update_store:448]:Showing 3 games
INFO     2023-05-01 00:04:23,217 [startup.update_runtimes:218]:Startup complete
DEBUG    2023-05-01 00:04:25,804 [command.start:141]:DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1="1"
DEBUG    2023-05-01 00:04:25,804 [command.start:141]:__GL_SHADER_DISK_CACHE="1"
DEBUG    2023-05-01 00:04:25,805 [command.start:141]:__GL_SHADER_DISK_CACHE_PATH="/home/tito/Games/CSS"
DEBUG    2023-05-01 00:04:25,805 [command.start:141]:DRI_PRIME="1"
DEBUG    2023-05-01 00:04:25,805 [command.start:141]:VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/share/vulkan/icd.d/radeon_icd.i686.json"
DEBUG    2023-05-01 00:04:25,805 [command.start:141]:LD_LIBRARY_PATH="/usr/lib:/usr/lib32:/usr/lib/libfakeroot:/usr/lib64:/home/tito/.local/share/lutris/runtime/Ubuntu-18.04-i686:/home/tito/.local/share/lutris/runtime/steam/i386/lib/i386-linux-gnu:/home/tito/.local/share/lutris/runtime/steam/i386/lib:/home/tito/.local/share/lutris/runtime/steam/i386/usr/lib/i386-linux-gnu:/home/tito/.local/share/lutris/runtime/steam/i386/usr/lib:/home/tito/.local/share/lutris/runtime/Ubuntu-18.04-x86_64:/home/tito/.local/share/lutris/runtime/steam/amd64/lib/x86_64-linux-gnu:/home/tito/.local/share/lutris/runtime/steam/amd64/lib:/home/tito/.local/share/lutris/runtime/steam/amd64/usr/lib/x86_64-linux-gnu:/home/tito/.local/share/lutris/runtime/steam/amd64/usr/lib"
DEBUG    2023-05-01 00:04:25,805 [command.start:141]:game_name="CSS"
DEBUG    2023-05-01 00:04:25,806 [command.start:141]:PYTHONPATH="/usr/lib/lutris:/usr/bin:/usr/lib/python310.zip:/usr/lib/python3.10:/usr/lib/python3.10/lib-dynload:/usr/lib/python3.10/site-packages"
DEBUG    2023-05-01 00:04:25,806 [command.start:141]:LUTRIS_GAME_UUID="f424d423-3243-4fa2-a1a9-b3b502512a31"
Discord ID: None
INFO     2023-05-01 00:04:25,831 [game.start_game:586]:Discord RPC Disabled or Discord APP ID Not Present
lutris-wrapper: CSS
Started initial process 49893 from /home/tito/Games/CSS/start.sh
Start monitoring process.
src/tcmalloc.cc:278] Attempt to free invalid pointer 0xa690740 
/home/tito/Games/CSS/game/hl2.sh: line 72: 49913 Aborted                 (core dumped) ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
Monitored process exited.
Initial process has exited (return code: 34304)
All processes have quit
Exit with return code 34304
DEBUG    2023-05-01 00:04:30,526 [command.on_stop:195]:Process 49890 has terminated with code 34304
DEBUG    2023-05-01 00:04:31,834 [game.beat:693]:Game thread stopped
WARNING  2023-05-01 00:04:31,835 [game.on_game_quit:730]:Game still running (state: running)
INFO     2023-05-01 00:04:31,835 [game.stop:704]:Stopping CSS (linux)
DEBUG    2023-05-01 00:04:31,837 [game.stop_game:664]:CSS (linux) has run for 6 seconds
DEBUG    2023-05-01 00:04:31,860 [game.on_game_quit:748]:CSS stopped at Mon, 01 May 2023 00:04:31
DEBUG    2023-05-01 00:04:31,860 [game.save:299]:Saving CSS (linux) with config ID css-1682881028

other .sh gamer run ok

The Linux native game runs in terminal on your system, but not in Lutris. That leads me to think Lutris runtimes, possibly. In Configuration of the game (on the System options tab I think), try disabling the Lutris runtime.

it does not work :confused:

Since the game works outside of that environment, it’s quite likely that it’s something in that LD_LIBRARY_PATH variable overriding system libraries causing it to barf on tcmalloc

I’ll assume the game bundles libtcmalloc*, because you wouldn’t have that library by default on your system unless you have gperftools (google performance analysis tools) on an Arch based distro and I don’t think they provide a 32 bit one at all.