ObsidianMC / Obsidian

A C# implementation of the Minecraft server protocol.
GNU General Public License v3.0
413 stars 42 forks source link

Server crash when closing #418

Closed TheVeryStarlk closed 10 months ago

TheVeryStarlk commented 10 months ago

Before posting your issue; please check the following box:


[01:16:28] [Crit]  [ObsidianHostingService] Obsidian has crashed!
[01:16:28] [Crit]  [ObsidianHostingService] Try turning it off and on again...
[01:16:28] [Crit]  [ObsidianHostingService] Reason: Object reference not set to an instance of an object.
[01:16:28] [Crit]  [ObsidianHostingService]    at Obsidian.Server.AcceptClientsAsync() in C:\Users\starl\RiderProjects\Obsidian\Obsidian\Server.cs:line 369
[01:16:28] [Crit]  [ObsidianHostingService]    at Obsidian.Server.RunAsync() in C:\Users\starl\RiderProjects\Obsidian\Obsidian\Server.cs:line 295
[01:16:28] [Crit]  [ObsidianHostingService]    at Obsidian.Server.RunAsync() in C:\Users\starl\RiderProjects\Obsidian\Obsidian\Server.cs:line 307
[01:16:28] [Crit]  [ObsidianHostingService]    at Obsidian.Hosting.ObsidianHostingService.ExecuteAsync(CancellationToken cToken) in C:\Users\starl\RiderProjects\Obsidian\Obsidian\Hosting\ObsidianHostingService.cs:line 29

How to re-produce:

  1. Start the server
  2. Go to Minecraft client and keep refreshing the server list till the server's console says: Listening for new clients
  3. Close the server
TheVeryStarlk commented 10 months ago

I'm trying to fix it