WorldEdit

WorldEdit

43M Downloads

After unloading world WorldEdit won't work

LadyCailinBot opened this issue ยท 1 comments

commented

WORLDEDIT-3116 - Reported by rsod

If you worked with WorldEdit in some world, then that world got unloaded but with active selection in it, you will not be able to select anything in another world or clear selection. When clearing selection it says

[01:10:37] [Client thread/INFO]: [CHAT] Please report this error: [See console]
[01:10:37] [Client thread/INFO]: [CHAT] java.lang.NullPointerException: The world was unloaded and the reference is unavailable
And error from console:
[01:11:06 INFO]: rsod issued server command: //sel
[01:11:06 WARN]: java.lang.NullPointerException: The world was unloaded and the reference is unavailable
[01:11:06 WARN]: at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
[01:11:06 WARN]: at com.sk89q.worldedit.bukkit.BukkitWorld.getWorld(BukkitWorld.java:211)
[01:11:06 WARN]: at com.sk89q.worldedit.bukkit.BukkitWorld.equals(BukkitWorld.java:1104)
[01:11:06 WARN]: at com.sk89q.worldedit.LocalSession.getRegionSelector(LocalSession.java:195)
[01:11:06 WARN]: at com.sk89q.worldedit.command.SelectionCommands.select(SelectionCommands.java:738)
[01:11:06 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[01:11:06 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[01:11:06 WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[01:11:06 WARN]: at java.lang.reflect.Method.invoke(Unknown Source)
[01:11:06 WARN]: at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:533)
[01:11:06 WARN]: at com.sk89q.worldedit.extension.platform.CommandManager$CommandsManagerImpl.invokeMethod(CommandManager.java:335)
[01:11:06 WARN]: at com.sk89q.worldedit.extension.platform.CommandManager$CommandsManagerImpl.invokeMethod(CommandManager.java:264)
[01:11:06 WARN]: at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:520)
[01:11:06 WARN]: at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:425)
[01:11:06 WARN]: at com.sk89q.worldedit.extension.platform.CommandManager.handleCommand(CommandManager.java:178)
[01:11:06 WARN]: at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
[01:11:06 WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[01:11:06 WARN]: at java.lang.reflect.Method.invoke(Unknown Source)
[01:11:06 WARN]: at com.sk89q.worldedit.util.eventbus.MethodEventHandler.dispatch(MethodEventHandler.java:58)
[01:11:06 WARN]: at com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73)
[01:11:06 WARN]: at com.sk89q.worldedit.util.eventbus.EventBus.dispatch(EventBus.java:186)
[01:11:06 WARN]: at com.sk89q.worldedit.util.eventbus.EventBus.post(EventBus.java:172)
[01:11:06 WARN]: at com.sk89q.worldedit.WorldEdit.handleCommand(WorldEdit.java:879)
[01:11:06 WARN]: at com.sk89q.worldedit.bukkit.WorldEditPlugin.onCommand(WorldEditPlugin.java:234)
[01:11:06 WARN]: at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:52)
[01:11:06 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180)
[01:11:06 WARN]: at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:722)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:985)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:830)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:65)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:180)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:81)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:713)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:283)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:576)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:482)
[01:11:06 WARN]: at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)

commented

Comment by wizjany

Very old issue and by the looks of the code it has been fixed by now. Reopen if it's still present.