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

Rotation Freezing Bukkit Server #32

Closed
mrghorm opened this issue Aug 8, 2014 · 8 comments
Closed

Rotation Freezing Bukkit Server #32

mrghorm opened this issue Aug 8, 2014 · 8 comments

Comments

@mrghorm
Copy link

mrghorm commented Aug 8, 2014

Movecraft V 3.1.X50 is freezing bukkit version 1.7.9-R0.2 when any vessel of any type is attempted to be rotated. I've tried this with several different kinds of vessels with different materials, and regardless of everything, when a rotation is attempted, the server freezes. Multicraft stops the operation after a "java.lang.OutOfMemoryError: Java heap space" error.

I've tried this same thing with a smaller server running the exact same versions of both bukkit and movecraft; works fine. Compatibility mode is enabled on both servers.

The two main differences between the two servers are; The large server is running multicraft and the small server is not, The large server is equipped with other plugins like Essentials and Worldedit whereas the small server is not.

Server log: Start reading from the bottom


07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInBlockPlace.handle(SourceFile:9) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInBlockPlace.a(SourceFile:60) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:629) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerInteractManager.interact(PlayerInteractManager.java:374) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:216) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_55]
07.08 12:45:18 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
07.08 12:45:18 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
07.08 12:45:18 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
07.08 12:45:18 [Server] INFO at net.countercraft.movecraft.listener.InteractListener.onPlayerInteract(InteractListener.java:56) ~[?:?]
07.08 12:45:18 [Server] INFO at net.countercraft.movecraft.listener.InteractListener.onSignRightClick(InteractListener.java:226) ~[?:?]
07.08 12:45:18 [Server] INFO at net.countercraft.movecraft.craft.Craft.rotate(Craft.java:191) ~[?:?]
07.08 12:45:18 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftWorld.loadChunk(CraftWorld.java:145) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftWorld.loadChunk(CraftWorld.java:245) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:98) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:119) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ChunkProviderServer.originalGetChunkAt(ChunkProviderServer.java:142) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.generator.NormalChunkGenerator.getOrCreateChunk(NormalChunkGenerator.java:41) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ChunkProviderGenerate.getOrCreateChunk(SourceFile:206) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.Chunk.(Chunk.java:113) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ChunkSection.(ChunkSection.java:17) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.NibbleArray.(SourceFile:9) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO Caused by: java.lang.OutOfMemoryError: Java heap space
07.08 12:45:18 [Server] INFO ... 15 more
07.08 12:45:18 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_55]
07.08 12:45:18 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
07.08 12:45:18 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_55]
07.08 12:45:18 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_55]
07.08 12:45:18 [Server] INFO at net.countercraft.movecraft.listener.InteractListener.onPlayerInteract(InteractListener.java:56) ~[?:?]
07.08 12:45:18 [Server] INFO at net.countercraft.movecraft.listener.InteractListener.onSignRightClick(InteractListener.java:226) ~[?:?]
07.08 12:45:18 [Server] INFO at net.countercraft.movecraft.craft.Craft.rotate(Craft.java:191) ~[?:?]
07.08 12:45:18 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftWorld.loadChunk(CraftWorld.java:145) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftWorld.loadChunk(CraftWorld.java:245) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:98) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:119) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ChunkProviderServer.originalGetChunkAt(ChunkProviderServer.java:150) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO Caused by: net.minecraft.server.v1_7_R3.ReportedException: Exception generating new chunk
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInBlockPlace.handle(SourceFile:9) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInBlockPlace.a(SourceFile:60) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:629) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerInteractManager.interact(PlayerInteractManager.java:374) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:216) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) ~[craftbukkit-betaBuild3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
07.08 12:45:18 [Server] INFO org.bukkit.event.EventException
07.08 12:45:18 [Server] ERROR Could not pass event PlayerInteractEvent to Movecraft v3.1.X50


^ Start reading here ^

Props for the amazing plugin!

@Baccayarro
Copy link
Owner

I've been trying to test this, is it possible that the chunks had to be generated? Were you doing this testing in an area that may not have had nearby chunks generated, IE: a new area on your server?

I'll keep looking.

@Baccayarro
Copy link
Owner

A little more info: What is happening is that Movecraft sees that the chunks that the craft is rotating into were not loaded, so it starts to load them. That's where it crashes. It also seems from this trace that it is trying to generate a chunk.

What is strange about this is that it is very odd that the chunks were not loaded unless you were controlling a craft remotely using redstone. I mean, if you are standing on the craft, the chunks should have been loaded. So it makes me wonder if some other plugin is interfering with the way chunks are accessed, or making the chunks look unloaded even when their not, or something.

@Baccayarro
Copy link
Owner

Nevermind, I think I have found the problem. Expect a fix soon.

@Baccayarro
Copy link
Owner

You can get the fixed version here:
https://dl.dropboxusercontent.com/u/11164014/Movecraft.zip

It also includes several new features

@Zillew
Copy link

Zillew commented Aug 11, 2014

I was having the same problem, I tried the Movecraft version you just linked and I got this:

[18:48:23] [Server thread/INFO]: [Movecraft] Enabling Movecraft v3.1.X50
[18:48:23] [Server thread/INFO]: [Movecraft] Recognized PilotTool setting of: 294
[18:48:23] [Server thread/INFO]: [Movecraft] CompatiblityMode is set to true
[18:48:23] [Server thread/INFO]: [Movecraft] Found a compatible version of WorldGuard. Enabling WorldGuard integration
[18:48:23] [Server thread/INFO]: [Movecraft] Settings: WorldGuardBlockMoveOnBuildPerm - false, WorldGuardBlockSinkOnPVPPerm - false
[18:48:23] [Server thread/ERROR]: Error occurred while enabling Movecraft v3.1.X50 (Is it up to date?)
java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R4/World
at net.countercraft.movecraft.Movecraft.onEnable(Movecraft.java:110) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:446) [craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:380) [craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:352) [craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:326) [craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:282) [craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182) [craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R4.World
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) ~[craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit-1.7.9-3092.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_55]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_55]
... 12 more

Running version: craftbukkit-1.7.9-3092

@Baccayarro
Copy link
Owner

Sorry, I must have messed something up in the new build. I'm a little under the weather today, hard to focus. I'll get it fixed ASAP

@Baccayarro
Copy link
Owner

Ok, it should work now.
https://dl.dropboxusercontent.com/u/11164014/Movecraft.zip

If you want to learn about the new features, I made a youtube video for it:
https://www.youtube.com/watch?v=mpAjuUvQarE

In short it now has WorldGuard integration, a bunch of useability improvements, and more supported blocks than before.

@Baccayarro
Copy link
Owner

Any word on this? Is it working now? I would like to close this issue.

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

3 participants