CoreNetwork / Mantle

The main plugin powering majority of features on Flatcore
1 stars 1 forks source link

Animal spawning module crashes the server on non-SSD drives #109

Closed riddle closed 11 years ago

riddle commented 11 years ago

Dedicated server runs SSD but my home computer is just on HDD. Any time anything is saved to that 22 megabyte database (like making a new restockable chest or I think think spawning animals too), it freezes the server and many times it will just crash:

08:26:33 [INFO] ridddle issued server command: /mantle createchest ManorRoomRare 1 1
08:27:26 [INFO] ridddle issued server command: /mantle createchest ManorRoomRare 1 1
>ping
08:27:35 [SEVERE] The server has stopped responding!
08:27:35 [SEVERE] Please report this to http://www.spigotmc.org/
08:27:35 [SEVERE] Be sure to include ALL relevant console errors and Minecraft crash reports
08:27:35 [SEVERE] Spigot version: git-Spigot-1125 (MC: 1.6.4)
08:27:35 [SEVERE] ------------------------------
08:27:35 [SEVERE] Server thread dump (Look for plugins here before reporting to Spigot!):
08:27:35 [SEVERE] ------------------------------
08:27:35 [SEVERE] Current Thread: Server thread
08:27:35 [SEVERE]   PID: 12 | Suspended: false | Native: false | State: BLOCKED
08:27:35 [SEVERE]   Stack:
08:27:35 [SEVERE]       org.sqlite.DB.prepare(DB.java:121)
08:27:35 [SEVERE]       org.sqlite.PrepStmt.<init>(PrepStmt.java:42)
08:27:35 [SEVERE]       org.sqlite.Conn.prepareStatement(Conn.java:404)
08:27:35 [SEVERE]       org.sqlite.Conn.prepareStatement(Conn.java:399)
08:27:35 [SEVERE]       org.sqlite.Conn.prepareStatement(Conn.java:383)
08:27:35 [SEVERE]       us.corenetwork.mantle.restockablechests.RestockableChest.createChest(RestockableChest.java:126)
08:27:35 [SEVERE]       us.corenetwork.mantle.restockablechests.commands.CreateChestCommand.playerHitChestArm(CreateChestCommand.java:68)
08:27:35 [SEVERE]       us.corenetwork.mantle.restockablechests.RChestsListener.onPlayerInteract(RChestsListener.java:38)
08:27:35 [SEVERE]       sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
08:27:35 [SEVERE]       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:27:35 [SEVERE]       java.lang.reflect.Method.invoke(Method.java:601)
08:27:35 [SEVERE]       org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
08:27:35 [SEVERE]       org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
08:27:35 [SEVERE]       org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
08:27:35 [SEVERE]       org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
08:27:35 [SEVERE]       org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
08:27:35 [SEVERE]       org.bukkit.craftbukkit.v1_6_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:207)
08:27:35 [SEVERE]       net.minecraft.server.v1_6_R3.PlayerInteractManager.interact(PlayerInteractManager.java:374)
08:27:35 [SEVERE]       net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:631)
08:27:35 [SEVERE]       net.minecraft.server.v1_6_R3.Packet15Place.handle(SourceFile:58)
08:27:35 [SEVERE]       org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
08:27:35 [SEVERE]       net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
08:27:35 [SEVERE]       net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
08:27:35 [SEVERE]       org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132)
08:27:35 [SEVERE]       net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594)
08:27:35 [SEVERE]       net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
08:27:35 [SEVERE]       net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483)
08:27:35 [SEVERE]       net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415)
08:27:35 [SEVERE]       net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
08:27:35 [SEVERE] ------------------------------
08:27:35 [SEVERE] Entire Thread Dump:
08:27:35 [SEVERE] ------------------------------
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: process reaper
08:27:36 [SEVERE]   PID: 85 | Suspended: false | Native: false | State: TIMED_WAITING
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       sun.misc.Unsafe.park(Native Method)
08:27:36 [SEVERE]       java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
08:27:36 [SEVERE]       java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
08:27:36 [SEVERE]       java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
08:27:36 [SEVERE]       java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:942)
08:27:36 [SEVERE]       java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
08:27:36 [SEVERE]       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
08:27:36 [SEVERE]       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
08:27:36 [SEVERE]       java.lang.Thread.run(Thread.java:722)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: Craft Scheduler Thread - 6
08:27:36 [SEVERE]   PID: 62 | Suspended: false | Native: false | State: RUNNABLE
08:27:36 [SEVERE]   Thread is waiting on monitor(s):
08:27:36 [SEVERE]       Locked on:org.sqlite.NestedDB.step(NestedDB.java:180)
08:27:36 [SEVERE]       Locked on:org.sqlite.DB.execute(DB.java:328)
08:27:36 [SEVERE]       Locked on:org.sqlite.DB.executeUpdate(DB.java:363)
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       org.sqlite.SQLite.trampoline(target/build/SQLite.mips)
08:27:36 [SEVERE]       org.sqlite.SQLite._execute(target/build/SQLite.mips)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.libs.org.ibex.nestedvm.Runtime.__execute(Runtime.java:506)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.libs.org.ibex.nestedvm.Runtime.call(Runtime.java:678)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.libs.org.ibex.nestedvm.Runtime.call(Runtime.java:647)
08:27:36 [SEVERE]       org.sqlite.NestedDB.call(NestedDB.java:568)
08:27:36 [SEVERE]       org.sqlite.NestedDB.call(NestedDB.java:533)
08:27:36 [SEVERE]       org.sqlite.NestedDB.step(NestedDB.java:180)
08:27:36 [SEVERE]       org.sqlite.DB.execute(DB.java:328)
08:27:36 [SEVERE]       org.sqlite.DB.executeUpdate(DB.java:363)
08:27:36 [SEVERE]       org.sqlite.PrepStmt.executeUpdate(PrepStmt.java:85)
08:27:36 [SEVERE]       us.corenetwork.mantle.animalspawning.AnimalSpawningTimer.run(AnimalSpawningTimer.java:59)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftTask.run(CraftTask.java:58)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
08:27:36 [SEVERE]       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
08:27:36 [SEVERE]       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
08:27:36 [SEVERE]       java.lang.Thread.run(Thread.java:722)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: Netty IO Thread - 2
08:27:36 [SEVERE]   PID: 19 | Suspended: false | Native: false | State: RUNNABLE
08:27:36 [SEVERE]   Thread is waiting on monitor(s):
08:27:36 [SEVERE]       Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]       Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]       Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
08:27:36 [SEVERE]       sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:159)
08:27:36 [SEVERE]       sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:103)
08:27:36 [SEVERE]       sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]       sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
08:27:36 [SEVERE]       io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:589)
08:27:36 [SEVERE]       io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:301)
08:27:36 [SEVERE]       io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
08:27:36 [SEVERE]       java.lang.Thread.run(Thread.java:722)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: Netty IO Thread - 1
08:27:36 [SEVERE]   PID: 18 | Suspended: false | Native: true | State: RUNNABLE
08:27:36 [SEVERE]   Thread is waiting on monitor(s):
08:27:36 [SEVERE]       Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]       Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]       Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
08:27:36 [SEVERE]       sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:159)
08:27:36 [SEVERE]       sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:103)
08:27:36 [SEVERE]       sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]       sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
08:27:36 [SEVERE]       io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:589)
08:27:36 [SEVERE]       io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:301)
08:27:36 [SEVERE]       io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
08:27:36 [SEVERE]       java.lang.Thread.run(Thread.java:722)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: File IO Thread
08:27:36 [SEVERE]   PID: 34 | Suspended: false | Native: false | State: TIMED_WAITING
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       java.lang.Thread.sleep(Native Method)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.FileIOThread.b(SourceFile:44)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.FileIOThread.run(SourceFile:23)
08:27:36 [SEVERE]       java.lang.Thread.run(Thread.java:722)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: pool-4-thread-1
08:27:36 [SEVERE]   PID: 24 | Suspended: false | Native: false | State: TIMED_WAITING
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       sun.misc.Unsafe.park(Native Method)
08:27:36 [SEVERE]       java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)
08:27:36 [SEVERE]       java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)
08:27:36 [SEVERE]       java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)
08:27:36 [SEVERE]       java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:807)
08:27:36 [SEVERE]       java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
08:27:36 [SEVERE]       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
08:27:36 [SEVERE]       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
08:27:36 [SEVERE]       java.lang.Thread.run(Thread.java:722)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: AWT-AppKit
08:27:36 [SEVERE]   PID: 22 | Suspended: false | Native: true | State: RUNNABLE
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: Netty IO Thread - 0
08:27:36 [SEVERE]   PID: 17 | Suspended: false | Native: true | State: RUNNABLE
08:27:36 [SEVERE]   Thread is waiting on monitor(s):
08:27:36 [SEVERE]       Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]       Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]       Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
08:27:36 [SEVERE]       sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:159)
08:27:36 [SEVERE]       sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:103)
08:27:36 [SEVERE]       sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:87)
08:27:36 [SEVERE]       sun.nio.ch.SelectorImpl.select(SelectorImpl.java:98)
08:27:36 [SEVERE]       io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:589)
08:27:36 [SEVERE]       io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:301)
08:27:36 [SEVERE]       io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
08:27:36 [SEVERE]       java.lang.Thread.run(Thread.java:722)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: Spigot Watchdog Thread
08:27:36 [SEVERE]   PID: 16 | Suspended: false | Native: false | State: RUNNABLE
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       sun.management.ThreadImpl.dumpThreads0(Native Method)
08:27:36 [SEVERE]       sun.management.ThreadImpl.dumpAllThreads(ThreadImpl.java:446)
08:27:36 [SEVERE]       org.spigotmc.WatchdogThread.run(WatchdogThread.java:70)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: Command Reader
08:27:36 [SEVERE]   PID: 15 | Suspended: false | Native: true | State: RUNNABLE
08:27:36 [SEVERE]   Thread is waiting on monitor(s):
08:27:36 [SEVERE]       Locked on:java.io.BufferedInputStream.read(BufferedInputStream.java:254)
08:27:36 [SEVERE]       Locked on:org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:267)
08:27:36 [SEVERE]       Locked on:org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:204)
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       java.io.FileInputStream.readBytes(Native Method)
08:27:36 [SEVERE]       java.io.FileInputStream.read(FileInputStream.java:242)
08:27:36 [SEVERE]       java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
08:27:36 [SEVERE]       java.io.BufferedInputStream.read(BufferedInputStream.java:254)
08:27:36 [SEVERE]       java.io.FilterInputStream.read(FilterInputStream.java:83)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.libs.jline.console.ConsoleReader$1.read(ConsoleReader.java:167)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:267)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:204)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:995)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:1167)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.ThreadCommandReader.run(ThreadCommandReader.java:32)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: DestroyJavaVM
08:27:36 [SEVERE]   PID: 14 | Suspended: false | Native: false | State: RUNNABLE
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: Server thread
08:27:36 [SEVERE]   PID: 12 | Suspended: false | Native: false | State: BLOCKED
08:27:36 [SEVERE]   Thread is waiting on monitor(s):
08:27:36 [SEVERE]       Locked on:org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       org.sqlite.DB.prepare(DB.java:121)
08:27:36 [SEVERE]       org.sqlite.PrepStmt.<init>(PrepStmt.java:42)
08:27:36 [SEVERE]       org.sqlite.Conn.prepareStatement(Conn.java:404)
08:27:36 [SEVERE]       org.sqlite.Conn.prepareStatement(Conn.java:399)
08:27:36 [SEVERE]       org.sqlite.Conn.prepareStatement(Conn.java:383)
08:27:36 [SEVERE]       us.corenetwork.mantle.restockablechests.RestockableChest.createChest(RestockableChest.java:126)
08:27:36 [SEVERE]       us.corenetwork.mantle.restockablechests.commands.CreateChestCommand.playerHitChestArm(CreateChestCommand.java:68)
08:27:36 [SEVERE]       us.corenetwork.mantle.restockablechests.RChestsListener.onPlayerInteract(RChestsListener.java:38)
08:27:36 [SEVERE]       sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
08:27:36 [SEVERE]       sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:27:36 [SEVERE]       java.lang.reflect.Method.invoke(Method.java:601)
08:27:36 [SEVERE]       org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
08:27:36 [SEVERE]       org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
08:27:36 [SEVERE]       org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
08:27:36 [SEVERE]       org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478)
08:27:36 [SEVERE]       org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463)
08:27:36 [SEVERE]       org.bukkit.craftbukkit.v1_6_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:207)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.PlayerInteractManager.interact(PlayerInteractManager.java:374)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:631)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.Packet15Place.handle(SourceFile:58)
08:27:36 [SEVERE]       org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
08:27:36 [SEVERE]       org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415)
08:27:36 [SEVERE]       net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: Snooper Timer
08:27:36 [SEVERE]   PID: 8 | Suspended: false | Native: false | State: TIMED_WAITING
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE]       java.lang.Object.wait(Native Method)
08:27:36 [SEVERE]       java.util.TimerThread.mainLoop(Timer.java:552)
08:27:36 [SEVERE]       java.util.TimerThread.run(Timer.java:505)
08:27:36 [SEVERE] ------------------------------
08:27:36 [SEVERE] Current Thread: Signal Dispatcher
08:27:36 [SEVERE]   PID: 4 | Suspended: false | Native: false | State: RUNNABLE
08:27:36 [SEVERE]   Stack:
08:27:36 [SEVERE] ------------------------------
08:27:36 [INFO] Attempting to restart with ./start.sh
08:27:36 [INFO] Stopping server
08:27:37 [INFO] [Mantle] Disabling Mantle v1.2.0
08:27:37 [INFO] ridddle issued server command: /mantle createchest ManorRoomRare 1 1
08:27:37 [INFO] ridddle issued server command: /mantle createchest ManorRoomRare 1 1
08:27:37 [INFO] ridddle lost connection: disconnect.endOfStream
08:27:37 [INFO] [Duties 1.2.0] Reached before bed spawn loc.
08:27:37 [INFO] ridddle already has game mode 0
08:27:37 [INFO] You changed player 'ridddle' group to 'Guardian' in world 'world'.
08:27:37 [INFO] [Duties 1.2.0] Duty mode disabled for player ridddle.
08:27:37 [INFO] [MCNSAChat][INFO] ridddle left
08:27:37 [INFO] ridddle left
08:27:37 [INFO] Yup, I'm still here!
08:27:43 [SEVERE] Exception in thread "Craft Scheduler Thread - 6" 
08:27:43 [SEVERE] org.apache.commons.lang.UnhandledException: Plugin Mantle v1.2.0 generated an exception while executing task 475
    at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
    at org.sqlite.NestedDB.call(NestedDB.java:568)
    at org.sqlite.NestedDB.call(NestedDB.java:533)
    at org.sqlite.NestedDB.step(NestedDB.java:180)
    at org.sqlite.RS.next(RS.java:142)
    at us.corenetwork.mantle.animalspawning.AnimalSpawningTimer.run(AnimalSpawningTimer.java:47)
    at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftTask.run(CraftTask.java:58)
    at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    ... 3 more

08:27:43 [INFO] [Duties] Disabling Duties v1.2.0
08:27:43 [INFO] [Duties 1.2.0] by TH3PF was successfully disabled!
08:27:43 [INFO] [CommandHelper] Disabling CommandHelper v3.3.1-SNAPSHOT:2363-4fff9f5,master
08:27:43 [INFO] [Core] Disabling Core v1.0.0
08:27:43 [INFO] [AntiCommandTab] Disabling AntiCommandTab v2.5
08:27:43 [INFO] [Jail] Disabling Jail v2.3.0
08:27:43 [INFO] [WorldGuard] Disabling WorldGuard v5.8.1-SNAPSHOT:1231-3543342,master
08:27:43 [INFO] [MCNSAChat] Disabling MCNSAChat v4
08:27:43 [INFO] [MCNSAChat][INFO] Saving Channels
08:27:43 [INFO] [MCNSAChat][INFO] Disabled
08:27:43 [INFO] [GriefPrevention] Disabling GriefPrevention v7.8
08:27:43 [INFO] [GriefPrevention] GriefPrevention disabled.
08:27:43 [INFO] [MobManager] Disabling MobManager v2.8
08:27:43 [INFO] [MM-Limiter] Disabled
08:27:43 [INFO] [Rebalance Villagers] Disabling Rebalance Villagers v${project.version}
08:27:43 [INFO] [ProtocolLib] Disabling ProtocolLib v2.7.3
08:27:43 [INFO] [JustAFK] Disabling JustAFK v1.2.5
08:27:43 [INFO] [JustAFK] JustAFK has been disabled!
08:27:43 [INFO] [Vault] Disabling Vault v1.2.25-b333
08:27:43 [INFO] [OpenInv] Disabling OpenInv v2.0.9
08:27:43 [INFO] [MCNSAEssentials] Disabling MCNSAEssentials v1.1
08:27:43 [INFO] [MCNSAssentials] Plugin disabled
08:27:43 [INFO] [MotdManager] Disabling MotdManager v1.41-b20
08:27:43 [INFO] [MotdManager] version 1.41-b20 is disabled!
08:27:43 [INFO] [MobLimiter] Disabling MobLimiter v2.0
08:27:43 [INFO] [NoCheatPlus] Disabling NoCheatPlus v3.10.5-RC-sMD5NET-b633
08:27:43 [INFO] [NoCheatPlus] Version 3.10.5-RC-sMD5NET-b633 is disabled.
08:27:43 [INFO] [WorldEdit] Disabling WorldEdit v5.5.9-SNAPSHOT:2643-cb8df85,master
08:27:43 [INFO] [GroupManager] Disabling GroupManager v2.0 (2.11.1) (Phoenix)
08:27:43 [INFO] GroupManager version 2.0 (2.11.1) (Phoenix) is disabled!
08:27:43 [INFO] [AutoMessage] Disabling AutoMessage v2.2.1
08:27:43 [INFO] [LagMeter] Disabling LagMeter v1.13.0
08:27:43 [INFO] [LagMeter 1.13.0] Disabled!
08:27:43 [INFO] Saving players
08:27:43 [INFO] Saving worlds
08:27:43 [INFO] Saving chunks for level 'world'/Overworld
08:27:43 [INFO] Saving chunks for level 'world_the_end'/The End
08:27:43 [INFO] Stopping server
08:27:43 [INFO] Saving players
>Aiur:nflat riddle$ sh start.sh

As you can see I entered a few /mantle createchest ManorRoomRare 1 1 commands but some of them registered only after the server crashed.

I think something needs to be done to optimize the database. 22 megabytes is ridiculous, pardon my French.

riddle commented 11 years ago

Note: disabling animal respawn module seemed to stop the problem from occurring. I managed to initialize a lot of chests and it was just fine.

matejdro commented 11 years ago

So disabling spawning module fixes it despite database still being 22MB?

matejdro commented 11 years ago

Can you try creating Index with Sqlite Manager? I think that should help, but I forgot to integrate it.

index1 index2 index3

(yes you need to create two different indexes)

Also please enable debug in Core so we can see what is going on with animal spawning.

riddle commented 11 years ago

Creating of those indexes fail on me… I cannot press the OK button (it just flashes in and out) and when I press Cancel, it asks if it should execute raw SQL which I agree to, but it never happens actually. Bugged as fuck.

Also please enable debug in Core so we can see what is going on with animal spawning.

You mean Mantle. Will do.

riddle commented 11 years ago

Yep, enabled animalrespawn, started the server, entered duty mode, flew over to a restockable chest opened it and it froze, crashed seconds later. Enabling debug resulted in one extra line:


13:19:28 [INFO] [Mantle] Enabling Mantle v1.2.0
13:19:28 [INFO] [Mantle] Loading module Hard mode....
13:19:28 [INFO] [Mantle] Loading module Generation....
13:19:28 [INFO] [Mantle] Loading module Restockable chests....
13:19:28 [INFO] [Mantle] Loading module Portals....
13:19:28 [INFO] [Mantle] Module disabled. Skipping.
13:19:28 [INFO] [Mantle] Loading module Structure Regeneration....
13:19:28 [INFO] [Mantle] Module disabled. Skipping.
13:19:28 [INFO] [Mantle] Loading module Hydration....
13:19:28 [INFO] [Mantle] Loading module Animal spawning....
13:19:29 [INFO] [Mantle] Loading module Nether spawning....
13:19:29 [INFO] [Mantle] Module disabled. Skipping.
13:19:29 [INFO] [Mantle] Loading module Spellbooks....
13:19:29 [INFO] [Mantle] Loading module Nanobot....
13:19:29 [INFO] [MCNSAFlatcore] Mantle v1.2.0 loaded!
13:19:29 [INFO] Server permissions file permissions.yml is empty, ignoring it
13:19:29 [INFO] Done (12.993s)! For help, type "help" or "?"
13:19:29 [INFO] [NoCheatPlus] Post-enable running...
13:19:29 [INFO] [NoCheatPlus] Post-enable finished.
13:19:30 [INFO] /127.0.0.1:56488 lost connection
13:19:30 [INFO] [Mantle] Starting animal spawning PREPARE!
13:19:35 [INFO] ridddle[/127.0.0.1:56501] logged in with entity id 61 at ([world] -18.42105237292759, 5.0, 4367.888792319819)
13:19:35 [INFO] [MCNSAChat][INFO] ridddle joined Flatcore.
13:19:38 [INFO] CH: Running original command on player ridddle ----> /mod
13:19:38 [INFO] You changed player 'ridddle' group to 'Overseer' in world 'world'.
13:19:38 [INFO] CONSOLE: Set ridddle's game mode to CREATIVE mode
13:19:38 [INFO] [Duties 1.2.0] Duty mode enabled for player ridddle.
13:19:43 [INFO] [WorldEdit] Using inbuilt NmsBlock for this version.
13:20:45 [SEVERE] The server has stopped responding!
riddle commented 11 years ago

And to be super sure, I did exactly the same steps now with Animal Spawns module disabled and it worked like a charm and server didn’t crash.

matejdro commented 11 years ago

Interesting. Can you retry with new version? Added some more debugging code.

riddle commented 11 years ago
13:56:45 [INFO] [Mantle] Starting animal spawning PREPARE!
13:56:45 [INFO] [Mantle] [ANIMAL] Executing SQL!
>ping
13:57:00 [INFO] Pong!

Typed this in console. Logged in.

13:57:29 [INFO] ridddle[/127.0.0.1:57049] logged in with entity id 61 at ([world] -18.42105237292759, 5.0, 4367.888792319819)
13:57:29 [INFO] [MCNSAChat][INFO] ridddle joined Flatcore.
>ping
13:57:33 [INFO] Pong!
13:57:35 [INFO] [Mantle] [ANIMAL] Iterating SQL!
>ping
13:57:38 [INFO] Yup, I'm still here!
>ping
13:57:42 [INFO] Yup, I'm still here!
13:57:46 [INFO] CH: Running original command on player ridddle ----> /mod
13:57:46 [INFO] You changed player 'ridddle' group to 'Overseer' in world 'world'.
13:57:46 [INFO] CONSOLE: Set ridddle's game mode to CREATIVE mode
13:57:46 [INFO] [Duties 1.2.0] Duty mode enabled for player ridddle.
13:57:51 [INFO] [WorldEdit] Using inbuilt NmsBlock for this version.

Entered duty mode as you can see, flew over to a chest, opened it and it crashed again.

matejdro commented 11 years ago

You now either need to add index manually or delete animal_chunks table and let it generate.