Server Crashing After Map Creation.

Discussion in 'Spigot Plugin Development' started by GlitchedTurtle, May 22, 2016.

  1. I am having a problem with my game engine. The map is crashing the server after a player teleports to a map. it happens about 10 -20 seconds after the teleport


    Code (Text):

    ---- Minecraft Crash Report ----
    // Why is it breaking :(

    Time: 5/22/16 8:05 PM
    Description: Exception ticking world

    java.lang.IllegalArgumentException: bound must be positive
        at java.util.Random.nextInt(Random.java:388)
        at net.minecraft.server.v1_9_R1.BiomeJungle.a(SourceFile:79)
        at net.minecraft.server.v1_9_R1.ChunkProviderGenerate.recreateStructures(SourceFile:473)
        at org.bukkit.craftbukkit.v1_9_R1.generator.NormalChunkGenerator.recreateStructures(NormalChunkGenerator.java:41)
        at net.minecraft.server.v1_9_R1.Chunk.a(Chunk.java:930)
        at net.minecraft.server.v1_9_R1.Chunk.loadNearby(Chunk.java:901)
        at net.minecraft.server.v1_9_R1.ChunkProviderServer.originalGetChunkAt(ChunkProviderServer.java:209)
        at net.minecraft.server.v1_9_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:143)
        at net.minecraft.server.v1_9_R1.PlayerChunk.a(PlayerChunk.java:110)
        at net.minecraft.server.v1_9_R1.PlayerChunkMap.flush(PlayerChunkMap.java:163)
        at net.minecraft.server.v1_9_R1.WorldServer.doTick(WorldServer.java:256)
        at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:776)
        at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400)
        at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660)
        at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559)
        at java.lang.Thread.run(Thread.java:745)


    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- Head --
    Stacktrace:
        at java.util.Random.nextInt(Random.java:388)
        at net.minecraft.server.v1_9_R1.BiomeJungle.a(SourceFile:79)
        at net.minecraft.server.v1_9_R1.ChunkProviderGenerate.recreateStructures(SourceFile:473)
        at org.bukkit.craftbukkit.v1_9_R1.generator.NormalChunkGenerator.recreateStructures(NormalChunkGenerator.java:41)
        at net.minecraft.server.v1_9_R1.Chunk.a(Chunk.java:930)
        at net.minecraft.server.v1_9_R1.Chunk.loadNearby(Chunk.java:901)
        at net.minecraft.server.v1_9_R1.ChunkProviderServer.originalGetChunkAt(ChunkProviderServer.java:209)
        at net.minecraft.server.v1_9_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:143)
        at net.minecraft.server.v1_9_R1.PlayerChunk.a(PlayerChunk.java:110)
        at net.minecraft.server.v1_9_R1.PlayerChunkMap.flush(PlayerChunkMap.java:163)
        at net.minecraft.server.v1_9_R1.WorldServer.doTick(WorldServer.java:256)

    -- Affected level --
    Details:
        Level name: 2Base
        All players: 1 total; [EntityPlayer['GlitchedTurtle'/149, l='2Base', x=-66.02, y=62.28, z=-158.48](GlitchedTurtle at -66.02167500196634,62.279294626380405,-158.48374954657092)]
        Chunk stats: ServerChunkCache: 2045 Drop: 129
        Level seed: 7646986644268295536
        Level generator: ID 00 - default, ver 1. Features enabled: true
        Level generator options:
        Level spawn location: World: (-60,45,-165), Chunk: (at 4,2,11 in -4,-11; contains blocks -64,0,-176 to -49,255,-161), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
        Level time: 854640 game time, 49000 day time
        Level dimension: 0
        Level storage version: 0x04ABD - Anvil
        Level weather: Rain time: 1844815 (now: false), thunder time: 1844815 (now: false)
        Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
    Stacktrace:
        at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:776)
        at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400)
        at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660)
        at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559)
        at java.lang.Thread.run(Thread.java:745)

    -- System Details --
    Details:
        Minecraft Version: 1.9.2
        Operating System: Linux (amd64) version 3.19.0-22-generic
        Java Version: 1.8.0_72, Oracle Corporation
        Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
        Memory: 367428360 bytes (350 MB) / 862453760 bytes (822 MB) up to 1817706496 bytes (1733 MB)
        JVM Flags: 0 total;
        IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
        CraftBukkit Information:
       Running: CraftBukkit version git-Spigot-e6f93f4-ed60c01 (MC: 1.9.2) (Implementing API version 1.9.2-R0.1-SNAPSHOT) true
       Plugins: { ItemNBTAPI v1.1 de.tr7zw.itemnbtapi.Itemnbtapi [tr7zw], Core v0.1 mineward.core.Core [], Game v0.1 hythryl.game.Main [],}
       Warnings: DEFAULT
       Reload Count: 2
       Threads: { TIMED_WAITING Snooper Timer: [java.lang.Object.wait(Native Method), java.util.TimerThread.mainLoop(Timer.java:552), java.util.TimerThread.run(Timer.java:505)], WAITING Finalizer: [java.lang.Object.wait(Native Method), java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143), java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164), java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)], WAITING Head Conversion Thread - 1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:175), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)], TIMED_WAITING process reaper: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215), java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460), java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362), java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1066), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)], RUNNABLE Server console handler: [java.io.FileInputStream.readBytes(Native Method), java.io.FileInputStream.read(FileInputStream.java:255), java.io.BufferedInputStream.fill(BufferedInputStream.java:246), java.io.BufferedInputStream.read(BufferedInputStream.java:265), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:169), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:137), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:246), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:261), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:198), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2145), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2349), net.minecraft.server.v1_9_R1.DedicatedServer$2.run(DedicatedServer.java:82)], RUNNABLE DestroyJavaVM: [], TIMED_WAITING Abandoned connection cleanup thread: [java.lang.Object.wait(Native Method), java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143), com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)], WAITING Chunk I/O Executor Thread-1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:175), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)], WAITING NonBlockingInputStreamThread: [java.lang.Object.wait(Native Method), org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.run(NonBlockingInputStream.java:278), java.lang.Thread.run(Thread.java:745)], RUNNABLE Signal Dispatcher: [], WAITING Head Conversion Thread - 0: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:175), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)], TIMED_WAITING Spigot Metrics Thread: [java.lang.Object.wait(Native Method), java.util.TimerThread.mainLoop(Timer.java:552), java.util.TimerThread.run(Timer.java:505)], WAITING Thread-5: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:175), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), com.mojang.util.QueueLogAppender.getNextLogEvent(QueueLogAppender.java:77), org.bukkit.craftbukkit.v1_9_R1.util.TerminalConsoleWriterThread.run(TerminalConsoleWriterThread.java:27), java.lang.Thread.run(Thread.java:745)], RUNNABLE Netty Epoll Server IO #1: [io.netty.channel.epoll.Native.epollWait(Native Method), io.netty.channel.epoll.EpollEventLoop.epollWait(EpollEventLoop.java:194), io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:219), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116), java.lang.Thread.run(Thread.java:745)], WAITING Head Conversion Thread - 2: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(LockSupport.java:175), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039), java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)], TIMED_WAITING File IO Thread: [java.lang.Thread.sleep(Native Method), net.minecraft.server.v1_9_R1.FileIOThread.c(SourceFile:51), net.minecraft.server.v1_9_R1.FileIOThread.run(SourceFile:30), java.lang.Thread.run(Thread.java:745)], TIMED_WAITING Craft Scheduler Thread - 1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215), java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460), java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362), java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941), java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1066), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)], RUNNABLE Netty Epoll Server IO #3: [io.netty.channel.epoll.Native.epollWait(Native Method), io.netty.channel.epoll.EpollEventLoop.epollWait(EpollEventLoop.java:194), io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:219), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116), java.lang.Thread.run(Thread.java:745)], WAITING Reference Handler: [java.lang.Object.wait(Native Method), java.lang.Object.wait(Object.java:502), java.lang.ref.Reference.tryHandlePending(Reference.java:191), java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)], RUNNABLE Netty Epoll Server IO #2: [io.netty.channel.epoll.Native.epollWait(Native Method), io.netty.channel.epoll.EpollEventLoop.epollWait(EpollEventLoop.java:194), io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:219), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116), java.lang.Thread.run(Thread.java:745)], RUNNABLE Netty Epoll Server IO #0: [io.netty.channel.epoll.Native.epollWait(Native Method), io.netty.channel.epoll.EpollEventLoop.epollWait(EpollEventLoop.java:194), io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:219), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116), java.lang.Thread.run(Thread.java:745)], TIMED_WAITING Server Infinisleeper: [java.lang.Thread.sleep(Native Method), net.minecraft.server.v1_9_R1.DedicatedServer$1.run(DedicatedServer.java:57)], RUNNABLE Server thread: [java.lang.Thread.dumpThreads(Native Method), java.lang.Thread.getAllStackTraces(Thread.java:1603), org.bukkit.craftbukkit.v1_9_R1.CraftCrashReport.call(CraftCrashReport.java:29), net.minecraft.server.v1_9_R1.CrashReportSystemDetails.a(SourceFile:79), net.minecraft.server.v1_9_R1.CrashReport.h(CrashReport.java:127), net.minecraft.server.v1_9_R1.CrashReport.<init>(CrashReport.java:34), net.minecraft.server.v1_9_R1.CrashReport.a(CrashReport.java:312), net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:781), net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400), net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660), net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559), java.lang.Thread.run(Thread.java:745)], TIMED_WAITING Spigot Watchdog Thread: [java.lang.Thread.sleep(Native Method), org.spigotmc.WatchdogThread.run(WatchdogThread.java:92)],}
       Recent tasks from 3617-3647{Core:[email protected],}
        Profiler Position: N/A (disabled)
        Player Count: 2 / 20; [EntityPlayer['Charzard4261'/175, l='WAITING', x=237.90, y=115.50, z=-1087.10](Charzard4261 at 237.90235430823347,115.5,-1087.0953994785073), EntityPlayer['GlitchedTurtle'/149, l='2Base', x=-66.02, y=62.28, z=-158.48](GlitchedTurtle at -66.02167500196634,62.279294626380405,-158.48374954657092)]
        Is Modded: Definitely; Server brand changed to 'Spigot'
        Type: Dedicated Server (map_server.txt)
     
     
  2. If I may ask, if you remove the plugin that you created will it still crash after teleporting to those exact coordinates? It seems it may be a minecraft issue
     
  3. the plugin unzips the world and loads it. so that would be impossible
     
  4. You could try getting the map unzipped yourself and trying it out with something like multiverse. And also try it with the plugins unzipped version. It's either it unzipped it wrong, or it loaded it wrong.
     
  5. its not unzipping incorrectly, it is loading the world correctly. It just crashes after i teleport.
     
  6. java.lang.IllegalArgumentException: bound must be positive
    at java.util.Random.nextInt(Random.java:388)
    at net.minecraft.server.v1_9_R1.BiomeJungle.a(SourceFile:79)

    To my knowledge would indicate that something went wrong in generation of a jungle biome.

    at net.minecraft.server.v1_9_R1.PlayerChunk.a(PlayerChunk.java:110)
    at net.minecraft.server.v1_9_R1.PlayerChunkMap.flush(PlayerChunkMap.java:163)

    would be the reason why I think it may be the loading that is incorrect. The generation of a chunk went wrong.
     
  7. to my knowledge, that is the problem. I cannot figure out why this is happening though.
     
  8. Maybe the seed is null? It only loads already loaded chunks by players?