Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crash when closing #418

Closed
1 task done
TheVeryStarlk opened this issue Jan 21, 2024 · 1 comment
Closed
1 task done

Server crash when closing #418

TheVeryStarlk opened this issue Jan 21, 2024 · 1 comment

Comments

@TheVeryStarlk
Copy link
Contributor

Before posting your issue; please check the following box:

  • I am aware that I am making a GitHub issue for the Obsidian that is a minecraft server, and not the Obsidian that is a Markdown editor.

[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
Copy link
Contributor Author

I'm trying to fix it

@Tides Tides closed this as completed in 6efa497 Jan 22, 2024
Craftplacer pushed a commit that referenced this issue Feb 7, 2024
* Should fix #251

* Fixes #418

* Update Server.cs

* Disconnect players with a "Server closed" message when closing the server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant