BeamMP-Server icon indicating copy to clipboard operation
BeamMP-Server copied to clipboard

Server Issues with crashing / locking up

Open Starystars67 opened this issue 1 year ago • 1 comments

Steps to recreate:

  1. Put up a server with some sort of scripts

  2. Join server and spawn a vehicle

  3. Blue screen your PC causing to leave unexpectedly(I personally just end process tree on winit.exe)

  4. 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
  1. 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

Starystars67 avatar Jan 05 '24 09:01 Starystars67

#167 is a separate issue

lionkor avatar Jan 05 '24 09:01 lionkor