BeamMP-Server
BeamMP-Server copied to clipboard
Server Issues with crashing / locking up
Steps to recreate:
-
Put up a server with some sort of scripts
-
Join server and spawn a vehicle
-
Blue screen your PC causing to leave unexpectedly(I personally just end process tree on winit.exe)
-
REJOIN the server, and if bug is recreated successfully you will join and receive the same ID
- It will show ? for any players in the list
- You will NOT appear for other players on list, will NOT appear in
MP.GetPlayers()
, chat will NOT appear for others - It will run
onPlayerAuth,onPlayerDisconnect
, THEN connecting and so on when you rejoin. - If a DIFFERENT player joins and gets the ID, it will do the "IP x tried to send UDP packets for..." spam message
- This will then cause EVENT QUEUE issue where events queue up and will not be executed due to Lua state being hung up but ONLY IF you attempt to do a client event or
dropPlayer
on that ID!!
- This also means that the actual crash is NOT
- (I've stated this a million times but people always seem to think is the problem, when its only a SYMPTOM!)
The problem itself is most likely BeamMP not closing a client connection when they leave unexpectedly
IMPORTANT:
If you end up putting these changes on the NON RUST server, PLEASE fix GetPositionRaw
if you have time, it STILL doesnt work above ID 9 in the latest public release
#167 is a separate issue