FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.72k stars 400 forks source link

Crash when trying to disconnect owner peer (expecting a removed network event) #13458

Open esirprus opened 6 months ago

esirprus commented 6 months ago

Disclaimers

What happened?

when the campaign runs, suddenly the server owner "9Eagle" was kicked by the server.

Reproduction steps

dont know how to reproduce, sorry...

Bug prevalence

Happens every now and then

Single player or multiplayer?

Multiplayer hosted from the in-game menu (= using a listen server)

-

No response

Version

v1.2.8.0 (Winter Update hotfix 2)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

servercrashreport (85).log

esirprus commented 6 months ago

A previous crash seemed to be due to the game being too laggy servercrashreport (67).log

sunxyw commented 3 months ago

Encountered the same error, any workaround?

github-liuzhongkun commented 1 month ago

@Regalis11
It looks like lastSentToAnyone is set to an event id that has already been removed,and events[0] has the same id. In the following logs, the latest create id is increased but the Last sent id is unchanged.

This is a log of the last time it happened on a dedicated server. Hope it helps [08/13/2024 16:05:55] WARNING: ServerEntityEventManager is lagging behind! Last sent id: 27594, latest create id: 60373 [08/13/2024 16:05:55] suger阿糖 was kicked because they were expecting a removed network event (60372, last available is 27594)

serverlog.txt