Paul19988 / Advanced-Slime-World-Manager

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

Worlds do not load #122

Open samfces opened 2 years ago

samfces commented 2 years ago

Describe the issue When I try to load a world using the ASWM API I get the following error in console:

java.lang.NegativeArraySizeException: -472757874
    at com.grinderwolf.swm.plugin.loaders.slime.impl.v1_9SlimeWorldFormat.deserializeWorld(v1_9SlimeWorldFormat.java:66) ~[slimeworldmanager-plugin.jar:?]
    at com.grinderwolf.swm.plugin.loaders.slime.SlimeWorldReaderRegistry.readWorld(SlimeWorldReaderRegistry.java:50) ~[slimeworldmanager-plugin.jar:?]
    at com.grinderwolf.swm.plugin.SWMPlugin.loadWorld(SWMPlugin.java:271) ~[slimeworldmanager-plugin.jar:?]
    at com.digitalsynware.survival.world.processing.SurvivalWorldLoadProcess$1.run(SurvivalWorldLoadProcess.java:56) ~[minebox-survival-1.0-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Paper-409]
    at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[patched_1.17.1.jar:git-Paper-409]
    at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.17.1.jar:git-Paper-409]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]

Spigot version Paper version git-Paper-409 (MC: 1.17.1)

Plugin version It is one of the latest builds. The /swm version command does not show the version. image

How to reproduce It is simply a matter of trying to load the attached world: c2af8f8a-a88c-3076-91b8-716aa0eadbff.zip

Owen1212055 commented 2 years ago

Bitset appears to be too big, will need to update the format to fix this.