open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

Server crash on player join

Open VIRUXE opened this issue 9 months ago • 2 comments
trafficstars

Describe the bug Upon a player joining the server it crashes, without any debug logging.

To Reproduce Steps to reproduce the behavior:

  1. Run Debian 64bit
  2. Run the latest Scavenge and Survive, converted for omp.
  3. Join server
[2025-01-31T23:33:58+0000] [Info] [connection] incoming connection: 192.168.1.1:59298 id: 0
[2025-01-31T23:33:58+0000] [Info] [join] VIRUXE has joined the server (0:192.168.1.1)
[2025-01-31T23:33:58+0000] [Info] [RemoveObjects_FirstLoad] Created session data for VIRUXE
[2025-01-31T23:33:58+0000] [Info] lvl="info" msg="player connected" player="VIRUXE"
[2025-01-31T23:33:59+0000] [Info] lvl="info" msg="loading TR"

This is what I get before it crashes.

Release version v1.4.0.2779

plugins crashdetect.so nolog.so sscanf.so streamer.so chrono.so pawn-memory.so Whirlpool.so uuid.so fsutil.so

It works on Windows, on my local machine. This is running on another machine on my local network.

VIRUXE avatar Feb 01 '25 12:02 VIRUXE

Initially, I was joining via a hostname (sub.domain.tld). Joining via the machine's IP I now get a crash trace:

I also noticed that using the hostname the server was reading my IP as my router's IP (192.168.1.1).

[2025-02-01T12:36:36+0000] [Info] [connection] incoming connection: 192.168.1.124:49700 id: 0
[2025-02-01T12:36:36+0000] [Info] [join] VIRUXE has joined the server (0:192.168.1.124)
[2025-02-01T12:36:36+0000] [Info] [RemoveObjects_FirstLoad] Created session data for VIRUXE
[2025-02-01T12:36:36+0000] [Info] lvl="info" msg="player connected" player="VIRUXE"
[debug] Server crashed while executing ScavengeSurvive.amx
[debug] AMX backtrace:
[debug] #0 000d0728 in _@yHOnPlayerScriptUpdate@1B (playerid=0) at sss/core/vehicle/vehicle.pwn:354
[debug] #1 00033394 in public OnPlayerScriptUpdate (0) at C:\dev\gta\sa\ScavengeSurvive\dependencies\YSI-Includes\YSI_Coding\y_hooks\..\y_cgen\y_cgen_impl.inc:163
[debug] #2 native CallLocalFunction () in Pawn.so
[debug] #3 000cacb0 in public PlayerUpdateSlow (playerid=0) at sss/core/player/player.pwn:309
Segmentation fault

VIRUXE avatar Feb 01 '25 12:02 VIRUXE

Initially, I was joining via a hostname (sub.domain.tld). Joining via the machine's IP I now get a crash trace:

I also noticed that using the hostname the server was reading my IP as my router's IP (192.168.1.1).

[2025-02-01T12:36:36+0000] [Info] [connection] incoming connection: 192.168.1.124:49700 id: 0
[2025-02-01T12:36:36+0000] [Info] [join] VIRUXE has joined the server (0:192.168.1.124)
[2025-02-01T12:36:36+0000] [Info] [RemoveObjects_FirstLoad] Created session data for VIRUXE
[2025-02-01T12:36:36+0000] [Info] lvl="info" msg="player connected" player="VIRUXE"
[debug] Server crashed while executing ScavengeSurvive.amx
[debug] AMX backtrace:
[debug] #0 000d0728 in _@yHOnPlayerScriptUpdate@1B (playerid=0) at sss/core/vehicle/vehicle.pwn:354
[debug] #1 00033394 in public OnPlayerScriptUpdate (0) at C:\dev\gta\sa\ScavengeSurvive\dependencies\YSI-Includes\YSI_Coding\y_hooks\..\y_cgen\y_cgen_impl.inc:163
[debug] #2 native CallLocalFunction () in Pawn.so
[debug] #3 000cacb0 in public PlayerUpdateSlow (playerid=0) at sss/core/player/player.pwn:309
Segmentation fault

Also regarding this. I really can't help without knowing exactly what's happening. Specially since there's no similar code in that file https://github.com/Southclaws/ScavengeSurvive/blob/master/gamemodes/sss/core/vehicle/vehicle.pwn

It could be a result of YSI fuckery but I can't say it for sure. TLDR; I need more info

AmyrAhmady avatar Feb 02 '25 17:02 AmyrAhmady