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

/swm import fails if any world region files are 0 in size #99

Open
seb303 opened this issue Feb 2, 2022 · 0 comments
Open

/swm import fails if any world region files are 0 in size #99

seb303 opened this issue Feb 2, 2022 · 0 comments

Comments

@seb303
Copy link

seb303 commented Feb 2, 2022

Log message is:

[16:27:20 INFO]: [SWM] Failed to import world test. Stack trace:
[16:27:20 WARN]: java.io.EOFException
[16:27:20 WARN]:        at java.base/java.io.DataInputStream.readInt(DataInputStream.java:398)
[16:27:20 WARN]:        at slimeworldmanager-plugin-2.7.0-SNAPSHOT.jar//com.grinderwolf.swm.plugin.world.importer.WorldImporter.loadChunks(WorldImporter.java:163)
[16:27:20 WARN]:        at slimeworldmanager-plugin-2.7.0-SNAPSHOT.jar//com.grinderwolf.swm.plugin.world.importer.WorldImporter.readFromDirectory(WorldImporter.java:68)
[16:27:20 WARN]:        at slimeworldmanager-plugin-2.7.0-SNAPSHOT.jar//com.grinderwolf.swm.plugin.SWMPlugin.importWorld(SWMPlugin.java:414)
[16:27:20 WARN]:        at slimeworldmanager-plugin-2.7.0-SNAPSHOT.jar//com.grinderwolf.swm.plugin.commands.sub.ImportWorldCmd.lambda$onCommand$0(ImportWorldCmd.java:69)
[16:27:20 WARN]:        at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101)
[16:27:20 WARN]:        at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[16:27:20 WARN]:        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[16:27:20 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[16:27:20 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[16:27:20 WARN]:        at java.base/java.lang.Thread.run(Thread.java:831)

If one simply deletes the 0 size region files then it imports the world just fine. SWM should ignore 0 size files rather than cause an exception.

Running Paper version git-Paper-408 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)
Plugin is slimeworldmanager-plugin-2.7.0-SNAPSHOT

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