CS2 icon indicating copy to clipboard operation
CS2 copied to clipboard

Unable to load libv8.so after Update of September 17th

Open dodgex opened this issue 1 year ago • 43 comments

I would assume it is related to new JavaScript variant cs_script added in this update. Adding libv8-dev to the apt install in the Dockerfile results in an undefined symbol _ZN2v812api_internal18GlobalizeReferenceEPNS_8internal7IsolateEm what iself is also related to libv8. I hoped it is just that Debian Bookworm has a to old version in its APT repo, but even when switching to a Ubuntu Noble base (replacing the whole steamcmd base image) did not bring any success.

https://www.counter-strike.net/news/updates

Added cs_script, a JavaScript based scripting system for Counter-Strike maps.

I hope valve will either update the server binaries itself, to contain the missing libv8.so or someone finds a way to fix this. :(

dodgex avatar Sep 17 '25 19:09 dodgex

Gemini 2.5 Flash on the undefined symbol:

Understanding the Error:

  • undefined symbol: This means that during the linking phase of compiling your program, the linker couldn't find the definition for a specific function or variable that your code is trying to call or use.
  • _ZN2v812api_internal18GlobalizeReferenceEPNS_8internal7IsolateEm: This is a "mangled" C++ symbol name. It's how the compiler encodes the function's name, its namespace (v8::api_internal), and its parameters (Isolate*, unsigned long long).
    • v8::api_internal::GlobalizeReference: This is the actual C++ function that's missing. It's an internal function within the V8 JavaScript engine's API.
    • EPNS_8internal7IsolateEm: This part describes the function's arguments. P typically means pointer, N namespace, S_ self-referential to the current namespace, 8 is the length of internal, 7 is the length of Isolate, and m probably stands for unsigned long long (or size_t which often maps to unsigned long long).

dodgex avatar Sep 17 '25 19:09 dodgex

The same problem, I haven't been able to start the servers for 3 hours.

Jebati avatar Sep 17 '25 19:09 Jebati

+1

RebelHonek avatar Sep 17 '25 20:09 RebelHonek

I have the same problem.

nubi1051 avatar Sep 17 '25 20:09 nubi1051

Quick and dirty hack: in /home/steam/cs2-dedicated/ ln -s game/csgo/bin/linuxsteamrt64/libserver.so game/csgo/bin/linuxsteamrt64/libserver_valve.so cp game/bin/libv8* game/csgo/bin/linuxsteamrt64/

aliz27 avatar Sep 17 '25 21:09 aliz27

Quick and dirty hack: in /home/steam/cs2-dedicated/ ln -s game/csgo/bin/linuxsteamrt64/libserver.so game/csgo/bin/linuxsteamrt64/libserver_valve.so cp game/bin/libv8* game/csgo/bin/linuxsteamrt64/

It helped

Jebati avatar Sep 17 '25 23:09 Jebati

ln -s game/csgo/bin/linuxsteamrt64/libserver.so game/csgo/bin/linuxsteamrt64/libserver_valve.so cp game/bin/libv8* game/csgo/bin/linuxsteamrt64/

Does not work for me: cp: cannot stat 'game/bin/libv8*': No such file or directory

zinkscott avatar Sep 18 '25 01:09 zinkscott

ln -s game/csgo/bin/linuxsteamrt64/libserver.so game/csgo/bin/linuxsteamrt64/libserver_valve.so cp game/bin/libv8* game/csgo/bin/linuxsteamrt64/

Does not work for me: cp: cannot stat 'game/bin/libv8*': No such file or directory

It means your server is not fully installed. Because the bin/libv8* files should be there by default.

RebelHonek avatar Sep 18 '25 02:09 RebelHonek

ln -s game/csgo/bin/linuxsteamrt64/libserver.so game/csgo/bin/linuxsteamrt64/libserver_valve.so cp game/bin/libv8* game/csgo/bin/linuxsteamrt64/

Does not work for me: cp: cannot stat 'game/bin/libv8*': No such file or directory

It means your server is not fully installed. Because the bin/libv8* files should be there by default.

Path isn't correct:

root@UBU1:/var/lib/docker/volumes/DMZ2_cs2/_data# ls game/bin/
built_from_cl.txt          linuxsteamrt64/
content_built_from_cl.txt  win64/
root@UBU1:/var/lib/docker/volumes/DMZ2_cs2/_data# ls game/bin/linuxsteamrt64/
cs2                     libpango-1.0.so.0             libv8.so
fltlnx64.flt            libpangoft2-1.0.so.0          libv8_icui18n.so
libSDL3.so.0            libpanorama.so                libv8_icuuc.so
libanimationsystem.so   libpanorama_text_pango.so     libv8_libbase.so
libavcodec.so.58        libpanoramauiclient.so        libv8_libcpp.so
libavformat.so.58       libparticles.so               libv8_libplatform.so
libavresample.so.4      libphonon.so                  libv8_zlib.so
libavutil.so.56         libpulse_system.so            libv8system.so
libcairo.so             librendersystemempty.so       libvconcomm.so
libengine2.so           librendersystemvulkan.so      libvideo.so
libfilesystem_stdio.so  libresourcesystem.so          libvorbis.so.0
libfontconfig.so.1      libscenefilecache.so          libvorbisenc.so.2
libfreetype.so.6        libscenesystem.so             libvorbisfile.so.3
libinputsystem.so       libschemasystem.so            libvphysics2.so
liblocalize.so          libsoundsystem.so             libvpx.so.6
libmaterialsystem2.so   libsteam_api.so               libvscript.so
libmeshsystem.so        libsteamaudio.so              libworldrenderer.so
libmpg123.so.0          libsteamnetworkingsockets.so  steam_appid.txt
libnetworksystem.so     libswscale.so.5
libogg.so.0             libtier0.so
root@UBU1:/var/lib/docker/volumes/DMZ2_cs2/_data#

this worked from the cs2-dedicated dir:

ln -s game/csgo/bin/linuxsteamrt64/libserver.so game/csgo/bin/linuxsteamrt64/libserver_valve.so
cp game/bin/linuxsteamrt64/libv8* game/csgo/bin/linuxsteamrt64/

zinkscott avatar Sep 18 '25 03:09 zinkscott

Quick and dirty hack: in /home/steam/cs2-dedicated/ ln -s game/csgo/bin/linuxsteamrt64/libserver.so game/csgo/bin/linuxsteamrt64/libserver_valve.so cp game/bin/libv8* game/csgo/bin/linuxsteamrt64/

I can at least confirm, that the server now starts. Haven't tested playing. :D

dodgex avatar Sep 18 '25 04:09 dodgex

ln -s game/csgo/bin/linuxsteamrt64/libserver.so game/csgo/bin/linuxsteamrt64/libserver_valve.so
cp game/bin/linuxsteamrt64/libv8* game/csgo/bin/linuxsteamrt64/

Can confirm that the server starts, and all seems okay, i can connect and play pretty much normally.

L1teD avatar Sep 18 '25 15:09 L1teD

ln -s game/csgo/bin/linuxsteamrt64/libserver.so game/csgo/bin/linuxsteamrt64/libserver_valve.so
cp game/bin/linuxsteamrt64/libv8* game/csgo/bin/linuxsteamrt64/

Can confirm that the server starts, and all seems okay, i can connect and play pretty much normally.

This only works if you want to run a server without any plugins or customizations via metamod. Changing this will break metamod and make it impossible to load anything.

vitordarela avatar Sep 18 '25 19:09 vitordarela

Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libserver_valve.so, got (nil) failed to dlopen /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libserver_valve.so error=/home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libserver_valve.so: cannot open shared object file: No such file or directory failed to dlopen "/home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libserver_valve.so" error=/home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libserver_valve.so: cannot open shared object file: No such file or directory Loaded libserver_valve.so, got (nil) failed to dlopen libserver_valve.so error=libserver_valve.so: cannot open shared object file: No such file or directory failed to dlopen "libserver_valve.so" error=libserver_valve.so: cannot open shared object file: No such file or directory Loaded /home/steam/cs2-dedicated/game/csgo/addons/metamod/bin/linuxsteamrt64/libserver.so, got 0x55b2158dd910 Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libengine2.so, got 0x55b2156a4a20 Physics Console Communications is not initialized Loaded /home/steam/cs2-dedicated/game/csgo/bin/linuxsteamrt64/libhost.so, got 0x55b21590fb40 Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libscenefilecache.so, got 0x55b2159230f0 Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libparticles.so, got 0x55b215935a40 Loaded /home/steam/cs2-dedicated/game/csgo/bin/linuxsteamrt64/libmatchmaking.so, got 0x55b215949410 Loaded /home/steam/cs2-dedicated/game/bin/linuxsteamrt64/libv8system.so, got 0x55b21595de60 No .vcds loaded or no scenes/scenes.vrman GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom). GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative). GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission). entry.sh: line 185: 39 Segmentation fault

I agree, after yesterday's update, the server won't start if it has a metamod.

cs2-data/game/csgo/ gameinfo.gi Game csgo/addons/metamod

counterstrikesharp, updated too last release CounterStrikeSharp/releases/tag/v1.0.340

thekocapb avatar Sep 18 '25 19:09 thekocapb

This only works if you want to run a server without any plugins or customizations via metamod. Changing this will break metamod and make it impossible to load anything.

Well, it was a completely fresh install, and after i confirmed that server started, i installed metamod with css, and all ran smoothly, i even had fun with plugin creation in css I don't know how it is for the others, but for me all was mostly okay

L1teD avatar Sep 19 '25 01:09 L1teD

ln -s game/csgo/bin/linuxsteamrt64/libserver.so game/csgo/bin/linuxsteamrt64/libserver_valve.so
cp game/bin/linuxsteamrt64/libv8* game/csgo/bin/linuxsteamrt64/

Can confirm that the server starts, and all seems okay, i can connect and play pretty much normally.

This only works if you want to run a server without any plugins or customizations via metamod. Changing this will break metamod and make it impossible to load anything.

Everything is functioning correctly. Please refrain from making misleading statements.

RebelHonek avatar Sep 19 '25 03:09 RebelHonek

I confirm, today I tried to upload the metamod dev 2.0 - build 1366 and everything works together with the latest CounterStrikeSharp

thekocapb avatar Sep 19 '25 08:09 thekocapb

latest and v3.0.8 should work now. Fix in #179.

joedwards32 avatar Sep 19 '25 10:09 joedwards32

Hi, I installed the latest Docker image and re-downloaded the CS2 game files, but the console log shows the string (null) and I can't successfully run the metamod. Is there something wrong with my steps?

serverlogs.txt

L 09/19/2025 - 12:54:07: Starting Freeze period L 09/19/2025 - 12:54:07: JSON_BEGIN{ L 09/19/2025 - 12:54:07: "name": "round_stats", L 09/19/2025 - 12:54:07: "round_number" : "1", L 09/19/2025 - 12:54:07: "score_t" : "0", L 09/19/2025 - 12:54:07: "score_ct" : "0", L 09/19/2025 - 12:54:07: "map" : "de_dust2", L 09/19/2025 - 12:54:07: "server" : "[TW] Space retake testing server", L 09/19/2025 - 12:54:07: "fields" : " accountid, team, money, kills, deaths,assists, dmg, hsp, kdr, adr, mvp, ef, ud, 3k, 4k, 5k,clutchk, firstk,pistolk,sniperk, blindk, bombk,firedmg,uniquek, dinks,chickenk" L 09/19/2025 - 12:54:07: "players" : { L 09/19/2025 - 12:54:07: "player_0" : " 0, 2, 16000, 0, 0, 0, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0.000000,0.000000, 0, 0, 0" L 09/19/2025 - 12:54:07: "player_1" : " 0, 3, 16000, 0, 0, 0, 0.00, 0.00, 0.00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0.000000,0.000000, 0, 0, 0" L 09/19/2025 - 12:54:07: }}JSON_END L 09/19/2025 - 12:54:07: World triggered "Match_Start" on "de_dust2" L 09/19/2025 - 12:54:07: MatchStatus: Team "CT" is unset. L 09/19/2025 - 12:54:07: MatchStatus: Team "TERRORIST" is unset. L 09/19/2025 - 12:54:07: MatchStatus: Score: 0:0 on map "de_dust2" RoundsPlayed: -1 (null)(null)L 09/19/2025 - 12:54:09: World triggered "Warmup_Start" (null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)m(null)eta(null) Unknown command 'meta'! (null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)(null)

SpaceTimeHalf avatar Sep 19 '25 13:09 SpaceTimeHalf

I see the (null) spewing too. Server functions but I'm not sure what that new output is about.

I don't use metamod or validate compatibility with it. Happy to adjust this image as needed though, if there are specific changes needed for metamod compatibility.

joedwards32 avatar Sep 19 '25 14:09 joedwards32

I see the (null) spewing too. Server functions but I'm not sure what that new output is about.

I don't use metamod or validate compatibility with it. Happy to adjust this image as needed though, if there are specific changes needed for metamod compatibility.

I reinstalled the entire volume, and metamod doesn't work with this last image creating a symbolic link.

vitordarela avatar Sep 19 '25 14:09 vitordarela