Paul19988 / Advanced-Slime-World-Manager

A Spigot plugin that implements the Slime Region Format.
GNU General Public License v3.0
183 stars 71 forks source link

IOException: Stream Closed on Server Shutdown #128

Closed tatteaid closed 2 years ago

tatteaid commented 2 years ago

Describe the issue Whenever the server shuts down (from my testing, it's always the second time and onwards) you get an IOException: Stream Closed when attempting to save the worlds. The worlds still get saved as far as my testing goes, but you still get the error.

Spigot version git-Paper-358 (MC: 1.18.2)

Plugin version 2.8.0-SNAPSHOT (latest), but I believe it still happens on 2.8.1-SNAPSHOT (haven't fully tested it though).

How to reproduce Start the server with just the plugin install and the latest version of Paper. Create a new slime world using /swm create TestWorld file (have only tested using file, will try to reproduce with the other datasource options). Stop the server (you should get no errors on server stop). Start the server again and then stop the server once you join the server. You will get an IOException: Stream Closed for every slime world that was created previously (although if you create a new world with an already created world from your previous shutdown, then you will only get an IOException on that old world and not the new world, until you redo the process of shutting down the server and starting it again).

Crash reports (if available) https://i.imgur.com/OGJ2tSe.png