Solved Schematic file won't load (log in thread)

Discussion in 'Spigot Plugin Help' started by Venomous_Creeper, May 8, 2017.

  1. Hello, I'm trying to load a warzone schematic on my test server (hosted on my computer) but it's not working, here's the error log in the console:
    Code (Text):
    [19:46:02] [Server thread/INFO]: Spawki issued server command: /schem load orientalwarzone
    [19:46:17] [Server thread/ERROR]: [WorldEdit] An unexpected error while handling a WorldEdit command
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
        at com.sk89q.worldedit.util.command.parametric.ParametricCallable.call(ParametricCallable.java:228) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.command.SimpleDispatcher.call(SimpleDispatcher.java:125) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.command.SimpleDispatcher.call(SimpleDispatcher.java:125) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.extension.platform.CommandManager.handleCommand(CommandManager.java:248) [worldedit-bukkit-6.1.5.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
        at com.sk89q.worldedit.util.eventbus.MethodEventHandler.dispatch(MethodEventHandler.java:58) [worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73) [worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:187) [worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:173) [worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.bukkit.WorldEditPlugin.onCommand(WorldEditPlugin.java:247) [worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:54) [worldedit-bukkit-6.1.5.jar:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:650) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1353) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1188) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
        at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:747) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
    Caused by: java.lang.OutOfMemoryError: Java heap space
        at com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard.<init>(BlockArrayClipboard.java:65) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.extent.clipboard.io.SchematicReader.read(SchematicReader.java:188) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.command.SchematicCommands.load(SchematicCommands.java:117) ~[worldedit-bukkit-6.1.5.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
        at com.sk89q.worldedit.util.command.parametric.ParametricCallable.call(ParametricCallable.java:228) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.command.SimpleDispatcher.call(SimpleDispatcher.java:125) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.command.SimpleDispatcher.call(SimpleDispatcher.java:125) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.extension.platform.CommandManager.handleCommand(CommandManager.java:248) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
        at com.sk89q.worldedit.util.eventbus.MethodEventHandler.dispatch(MethodEventHandler.java:58) ~[?:?]
        at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73) ~[?:?]
        at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:187) ~[?:?]
        at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:173) ~[?:?]
        at com.sk89q.worldedit.bukkit.WorldEditPlugin.onCommand(WorldEditPlugin.java:247) ~[?:?]
        at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:54) ~[?:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:650) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1353) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1188) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_60]
        at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_60]
        at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:747) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
    [19:46:22] [Async Chat Thread - #1/INFO]: <Spawki> a[m
    [19:47:30] [Server thread/INFO]: Spawki issued server command: /shcem list
    [19:47:32] [Server thread/INFO]: Spawki issued server command: /schem list
    [19:47:38] [Server thread/INFO]: Spawki issued server command: /schem load orientalwarzone
    [19:47:50] [Server thread/ERROR]: [WorldEdit] An unexpected error while handling a WorldEdit command
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
        at com.sk89q.worldedit.util.command.parametric.ParametricCallable.call(ParametricCallable.java:228) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.command.SimpleDispatcher.call(SimpleDispatcher.java:125) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.command.SimpleDispatcher.call(SimpleDispatcher.java:125) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.extension.platform.CommandManager.handleCommand(CommandManager.java:248) [worldedit-bukkit-6.1.5.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
        at com.sk89q.worldedit.util.eventbus.MethodEventHandler.dispatch(MethodEventHandler.java:58) [worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73) [worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:187) [worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:173) [worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.bukkit.WorldEditPlugin.onCommand(WorldEditPlugin.java:247) [worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:54) [worldedit-bukkit-6.1.5.jar:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:650) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1353) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1188) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_60]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_60]
        at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:747) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot.jar:git-Spigot-625bc00-41a7d14]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
    Caused by: java.lang.OutOfMemoryError: Java heap space
        at com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard.<init>(BlockArrayClipboard.java:65) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.extent.clipboard.io.SchematicReader.read(SchematicReader.java:188) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.command.SchematicCommands.load(SchematicCommands.java:117) ~[worldedit-bukkit-6.1.5.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
        at com.sk89q.worldedit.util.command.parametric.ParametricCallable.call(ParametricCallable.java:228) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.command.SimpleDispatcher.call(SimpleDispatcher.java:125) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.util.command.SimpleDispatcher.call(SimpleDispatcher.java:125) ~[worldedit-bukkit-6.1.5.jar:?]
        at com.sk89q.worldedit.extension.platform.CommandManager.handleCommand(CommandManager.java:248) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
        at com.sk89q.worldedit.util.eventbus.MethodEventHandler.dispatch(MethodEventHandler.java:58) ~[?:?]
        at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73) ~[?:?]
        at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:187) ~[?:?]
        at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:173) ~[?:?]
        at com.sk89q.worldedit.bukkit.WorldEditPlugin.onCommand(WorldEditPlugin.java:247) ~[?:?]
        at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:54) ~[?:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:650) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1353) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1188) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_60]
        at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_60]
        at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
        at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:747) ~[spigot.jar:git-Spigot-625bc00-41a7d14]
    Pastebin link

    What's the issue and how do I fix it? I'm worried that it's the ram/cpu and that it won't load on my main server as well when the time comes that I get it :(

    EDIT: The other schematics load, but this one is big (500x500) so that might be the issue.
     
    #1 Venomous_Creeper, May 8, 2017
    Last edited: May 8, 2017
  2. Are you using an updated version of the plugin?
     
  3. I'm pretty sure, unless there's been an update last month.
     
  4. Choco

    Moderator

    Yea, I'd say that it's because your file is larger than 500x500 blocks. That's going to take quite a bit of memory to paste. Either get FastAsyncWorldEdit (or any alternative) to do it asynchronously which may alleviate the memory usage, or allocate more memory to your server if possible
     
    • Agree Agree x 1
  5. The issue is in the stacktrace. It's even in plain English, so its easy to understand.

    https://bukkit.org/threads/how-to-r...ubleshoot-your-own-plugins-by-yourself.32457/
     
  6. I'll try that tomorrow morning, around how much ram should I allocate for my server? I'm planning on 6gb but I'm not sure if that would be enough. How can I allocate more manually for my test server? (using a localhost server)
     
  7. Choco

    Moderator

    I would recommend perhaps 4GB. You shouldn't need more than that. There are startup flags when running the server to determine the minimum and maximum amount of memory to use for the process being run:
    Code (Windows Batch file):
    java -jar -Xms1G -Xmx4G spigot-server.jar
     
  8. Not minimum, its more of a "starting" amount. It is what JVM allocates at startup for the process. If more is needed it doubles until the maximum is reached. Its easy to remember and decipher the difference when thinking of "Xms and Xmx" as "start and max". ^_^
     
    • Informative Informative x 1
  9. Choco

    Moderator

    Yea... that makes a lot more sense than "minimum amount". Heh. Not sure why the JVM would want to have a minimum amount of memory usage. That just makes no sense whatsoever. Thanks for letting me know! I was never 100% certain what it was intended for and I never bothered looking that up :)
     
    • Friendly Friendly x 1
    • Optimistic Optimistic x 1
  10. Thank you so much, I decided to turn on my pc and try it because I couldn't sleep yet and it worked :D I hope my dedi can handle it as well c:
     
    • Like Like x 1