zstd issue
einfachBlu opened this issue · comments
Describe the issue
Cant create, import, load etc. slime maps
there is no documentation or guide on what i must do now to "install zstd-jni" or whatever needs to do
Spigot version
spigot 1.8
Plugin version
2.2.1
How to reproduce
tested on Ubuntu 20.04 and Mac OS 10.15. Same problem.
Crash reports (if available)
swm create test file
[14:02:03 INFO]: SWM >> Creating empty world test...
[14:02:03 INFO]: [SWM] Creating empty world test.
[14:02:03 WARN]: Exception in thread "Craft Scheduler Thread - 0"
[14:02:03 WARN]: org.apache.commons.lang.UnhandledException: Plugin SlimeWorldManager v2.2.1 generated an exception while executing task 2
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
at org.github.paperspigot.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:23)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsatisfiedLinkError: no zstd-jni in java.library.path
Unsupported OS/arch, cannot find /darwin/x86_64/libzstd-jni.dylib or load zstd-jni from system libraries. Please try building from source the jar or providing libzstd-jni in your system.
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.github.luben.zstd.util.Native.load(Native.java:68)
at com.github.luben.zstd.util.Native.load(Native.java:54)
at com.github.luben.zstd.Zstd.(Zstd.java:13)
at com.grinderwolf.swm.nms.CraftSlimeWorld.serialize(CraftSlimeWorld.java:171)
at com.grinderwolf.swm.plugin.SWMPlugin.createEmptyWorld(SWMPlugin.java:286)
at com.grinderwolf.swm.plugin.commands.sub.CreateWorldCmd.lambda$onCommand$1(CreateWorldCmd.java:81)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 4 more
Fixed in #162