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.75k stars 407 forks source link

Server crashed after leaving starting outpost #9207

Closed Rokvach closed 2 years ago

Rokvach commented 2 years ago

Disclaimers

What happened?

My server crashed on campaign mode when I left the starting outpost

Reproduction steps

  1. Start multiplayer campaign
  2. Leave starting outpost
  3. Game should crash

Bug prevalence

Happens every time I play

Version

0.18.3.0 (Unstable)

-

Branch: dev Commit: https://github.com/Regalis11/Barotrauma-development/commit/ca8b2264ff5b03ff831f1f525e347ab08990655b

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

Barotrauma Client crash report (generated on 25.5.2022 17.25.52)

Barotrauma seems to have crashed. Sorry for the inconvenience! 

7DF03A05A90446456323F4477D62A7F0

Game version 0.18.3.0 (ReleaseWindows, branch dev, revision ca8b2264ff)
Graphics mode: 2560x1440 (BorderlessWindowed)
VSync OFF
Language: English
Selected content packages: Vanilla
Level seed: HuroniaMeltwater
Loaded submarine: Dugong (2EF0CF14A8327EFAC545F7D8E61DE0D7)
Selected screen: Barotrauma.RoundSummaryScreen
SteamManager initialized

System info:
    Operating system: Microsoft Windows NT 10.0.19044.0 64 bit
    GPU name: NVIDIA GeForce GTX 980 Ti
    Display mode: {Width:2560 Height:1440 Format:Color AspectRatio:1,7777778}
    GPU status: Normal

Exception: Object reference not set to an instance of an object. (System.NullReferenceException)
Target site: Boolean <Update>b__86_0(Barotrauma.GUIComponent)
Stack trace: 
   at Barotrauma.Networking.GameClient.<>c.<Update>b__86_0(GUIComponent mb) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Networking\GameClient.cs:line 692
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at Barotrauma.Networking.GameClient.Update(Single deltaTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Networking\GameClient.cs:line 692
   at Barotrauma.GameMain.Update(GameTime gameTime) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\GameMain.cs:line 880
   at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 656
   at Microsoft.Xna.Framework.Game.Tick() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 500
   at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\SDL\SDLGamePlatform.cs:line 92
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 397
   at Microsoft.Xna.Framework.Game.Run() in <DEV>\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 367
   at Barotrauma.Program.Main(String[] args) in <DEV>\Barotrauma\BarotraumaClient\ClientSource\Program.cs:line 58

Last debug messages:
[25.5.2022 17.25.49] WARNING: Tried to restore enabled packages multiple times/without performing a backup
[25.5.2022 17.25.49] The server has crashed: servercrashreport (29).log||
Object reference not set to an instance of an object. (NullReferenceException)    at Barotrauma.Items.Components.Door.Update(Single deltaTime, Camera cam) in C:\Users\RoniK\Documents\Barotrauma-development\Barotrauma\BarotraumaShared\SharedSource\Items\Components\Door.cs:line 394
   at Barotrauma.Item.Update(Single deltaTime, Camera cam) in C:\Users\RoniK\Documents\Barotrauma-development\Barotrauma\BarotraumaShared\SharedSource\Items\Item.cs:line 1808
   at Barotrauma.MapEntity.UpdateAll(Single deltaTime, Camera cam) in C:\Users\RoniK\Documents\Barotrauma-development\Barotrauma\BarotraumaShared\SharedSource\Map\MapEntity.cs:line 600
   at Barotrauma.GameScreen.Update(Double deltaTime) in C:\Users\RoniK\Documents\Barotrauma-development\Barotrauma\BarotraumaShared\SharedSource\Screens\GameScreen.cs:line 251
   at Barotrauma.GameMain.Run() in C:\Users\RoniK\Documents\Barotrauma-development\Barotrauma\BarotraumaServer\ServerSource\GameMain.cs:line 324
   at Barotrauma.Program.Main(String[] args) in C:\Users\RoniK\Documents\Barotrauma-development\Barotrauma\BarotraumaServer\ServerSource\Program.cs:line 74
[25.5.2022 17.25.47] Generating an outpost for the end of the level... (Location: Meltwater Outpost, level type: LocationConnection)
[25.5.2022 17.25.46] Generating an outpost for the start of the level... (Location: Huronia Habitation Outpost, level type: LocationConnection)
[25.5.2022 17.25.46] Level identifier: coldcavernsbasic
[25.5.2022 17.25.40] Server running slowly (57 updates/s)!
[25.5.2022 17.25.35] Rokvach
[25.5.2022 17.25.35] WARNING: Could not determine reputation change for faction "Children of the Honkmother" (faction was not present at the start of the round).
[25.5.2022 17.25.35] WARNING: Could not determine reputation change for faction "The Church of Husk" (faction was not present at the start of the round).
[25.5.2022 17.25.35] WARNING: Could not determine reputation change for faction "Jovian Separatists" (faction was not present at the start of the round).
[25.5.2022 17.25.35] WARNING: Could not determine reputation change for faction "Europa Coalition" (faction was not present at the start of the round).
[25.5.2022 17.25.09] Server running slowly (57 updates/s)!
[25.5.2022 17.25.07] Rokvach
[25.5.2022 17.25.04] Received STARTGAMEFINALIZE packet. Round init status: Started
[25.5.2022 17.25.04]  -2: WaitForPingDataAsync (owner), RanToCompletion
[25.5.2022 17.25.04]  -1: WaitForPingDataAsync (owner), RanToCompletion
[25.5.2022 17.25.04]  -0: WaitForPingDataAsync (owner), RanToCompletion
[25.5.2022 17.25.04] Task count: 3
[25.5.2022 17.25.04] Received STARTGAMEFINALIZE packet. Round init status: WaitingForStartGameFinalize
[25.5.2022 17.25.00] Generating an outpost for the start of the level... (Location: Huronia Habitation Outpost, level type: Outpost)
[25.5.2022 17.25.00] Level identifier: outpostlevel
[25.5.2022 17.24.43] ModeSelectionMode
[25.5.2022 17.24.43] SubSelectionMode
[25.5.2022 17.24.43] LosMode
[25.5.2022 17.24.43] PlayStyle
[25.5.2022 17.24.32] Lobby created!
[25.5.2022 17.23.45] Attempting to open ALC device "OpenAL Soft on Kaiuttimet (Realtek High Definition Audio)"
Rokvach commented 2 years ago

Accidentally made a epic, here's the actual ticket https://github.com/Regalis11/Barotrauma/issues/9208