Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crash on player join #1055

Open
VIRUXE opened this issue Feb 1, 2025 · 2 comments
Open

Server crash on player join #1055

VIRUXE opened this issue Feb 1, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@VIRUXE
Copy link

VIRUXE commented Feb 1, 2025

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 VIRUXE added the bug Something isn't working label Feb 1, 2025
@VIRUXE
Copy link
Author

VIRUXE commented Feb 1, 2025

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

@AmyrAhmady
Copy link
Member

AmyrAhmady commented Feb 2, 2025

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

@openmultiplayer openmultiplayer deleted a comment from Azerazer77 Feb 4, 2025
@openmultiplayer openmultiplayer deleted a comment from AmyrAhmady Feb 4, 2025
@openmultiplayer openmultiplayer deleted a comment from Azerazer77 Feb 4, 2025
@openmultiplayer openmultiplayer deleted a comment from AmyrAhmady Feb 4, 2025
@openmultiplayer openmultiplayer deleted a comment from Azerazer77 Feb 4, 2025
@openmultiplayer openmultiplayer deleted a comment from AmyrAhmady Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants