Terrain Control

Terrain Control

235k Downloads

Server Crash NullPointer

Esfekia opened this issue · 4 comments

commented

Hello,

Using most recent TerrainControl on Craftbukkit build #2744. Custom generated map using image, no crashes for last 2 weeks until today.

2013-04-08 17:21:02 [SEVERE] java.lang.NullPointerException
2013-04-08 17:21:02 [SEVERE] at com.khorn.terraincontrol.generator.ObjectSpawner.placeSnowAndIce(ObjectSpawner.java:87)
2013-04-08 17:21:02 [SEVERE] at com.khorn.terraincontrol.generator.ObjectSpawner.populate(ObjectSpawner.java:60)
2013-04-08 17:21:02 [SEVERE] at com.khorn.terraincontrol.bukkit.TCBlockPopulator.populate(TCBlockPopulator.java:27)
2013-04-08 17:21:02 [SEVERE] at com.bergerkiller.bukkit.common.bases.ChunkProviderServerBase.onPopulate(ChunkProviderServerBase.java:116)
2013-04-08 17:21:02 [SEVERE] at net.timedminecraft.server.TimedChunkProviderServer.onPopulate(TimedChunkProviderServer.java:145)
2013-04-08 17:21:02 [SEVERE] at com.bergerkiller.bukkit.common.bases.ChunkProviderServerBase.getChunkAt(ChunkProviderServerBase.java:159)
2013-04-08 17:21:02 [SEVERE] at net.minecraft.server.v1_5_R2.Chunk.a(Chunk.java:788)
2013-04-08 17:21:02 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:61)
2013-04-08 17:21:02 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:13)
2013-04-08 17:21:02 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:179)
2013-04-08 17:21:02 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.util.AsynchronousExecutor.finishActive(AsynchronousExecutor.java:287)
2013-04-08 17:21:02 [SEVERE] at org.bukkit.craftbukkit.v1_5_R2.chunkio.ChunkIOExecutor.tick(ChunkIOExecutor.java:30)
2013-04-08 17:21:02 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:519)
2013-04-08 17:21:02 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225)
2013-04-08 17:21:02 [SEVERE] at net.minecraft.server.v1_5_R2.Minecraf```tServer.q(MinecraftServer.java:476)
2013-04-08 17:21:02 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409)
2013-04-08 17:21:02 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
2013-04-08 17:21:02 [SEVERE] Encountered an unexpected exception NullPointerException
java.lang.NullPointerException
at com.khorn.terraincontrol.generator.ObjectSpawner.placeSnowAndIce(ObjectSpawner.java:87)
at com.khorn.terraincontrol.generator.ObjectSpawner.populate(ObjectSpawner.java:60)
at com.khorn.terraincontrol.bukkit.TCBlockPopulator.populate(TCBlockPopulator.java:27)
at com.bergerkiller.bukkit.common.bases.ChunkProviderServerBase.onPopulate(ChunkProviderServerBase.java:116)
at net.timedminecraft.server.TimedChunkProviderServer.onPopulate(TimedChunkProviderServer.java:145)
at com.bergerkiller.bukkit.common.bases.ChunkProviderServerBase.getChunkAt(ChunkProviderServerBase.java:159)
at net.minecraft.server.v1_5_R2.Chunk.a(Chunk.java:788)
at org.bukkit.craftbukkit.v1_5_R2.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:61)
at org.bukkit.craftbukkit.v1_5_R2.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:13)
at org.bukkit.craftbukkit.v1_5_R2.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:179)
at org.bukkit.craftbukkit.v1_5_R2.util.AsynchronousExecutor.finishActive(AsynchronousExecutor.java:287)
at org.bukkit.craftbukkit.v1_5_R2.chunkio.ChunkIOExecutor.tick(ChunkIOExecutor.java:30)
at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:519)
at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225)
at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476)
at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409)
at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
2013-04-08 17:21:02 [SEVERE] This crash report has been saved to: /home/isel/bukkit/./crash-reports/crash-2013-04-08_17.21.02-server.txt

Crash Report:

http://pastebin.com/tfe24w5n

commented

Could you try TC 2.4.10? You say that you are running the latest version, but 2.4.9 is outdated. After you have done that, could you also add Terrain Control to the bukkit.yml? This might be related to issue #107.

commented

On the forums it was confirmed that this still happens on TC 2.4.10... 😨

commented

I cannot reproduce this. I need the following information:

  • Name of the server mod you are running (CraftBukkit/Forge/MCPC+/Spigot/Libigot/WhatEverYouGot)
  • Version of the server mod
  • Version of Terrain Control
  • Name + version of any plugin/mod that touches world generation/loading (Multiverse/MyWorlds/CaveOreVeins/etc.)
  • If it seems to make a difference, your TC settings. You can send them in an e-mail (rutger ⚫ kok at live ⚫ com) or in a PM on BukkitDev.

If you have more time, any of the following information would also be useful:

  • For users with world management plugins: try to also add TC to the bukkit.yml. Does this fix the bug?
  • Can you pinpoint the bug to a soecific server setup or TC setting?
commented

I have never reproduced this issue, but for TC 2.4.12 I added a few null checks to the code. If you're still getting this error, please leave a message here.