bergerkiller / NoLagg

Prevents common lag causes on your server
27 stars 14 forks source link

StackFormer IllegalAccessError #10

Closed ZathrasNotTheOne closed 12 years ago

ZathrasNotTheOne commented 12 years ago

Using Essentials, a player gave himself quantity 2000 of block id 5 and this error came from NoLagg. They are possibly related, given the coincidental timestamp.

01:23:25 [INFO] This server is running Craftbukkit version git-Bukkit-1.0.1-R1-b1597jnks (MC: 1.0.1) (Implementing API version 1.0.1-R1) ... 01:23:34 [INFO] [NoLagg] NoLagg version 1.54.8 is enabled! ... 10:00:00 [INFO] [PLAYER_COMMAND] xxxxxxxx: /i 5 2000 10:00:00 [WARNING] Could not properly handle event CHUNK_LOAD: java.lang.IllegalAccessError: Synchronized code got accessed from another thread: com.bergerkiller.bukkit.nolagg.StackFormer at org.bukkit.event.world.WorldListener.onChunkLoad(WorldListener:0) at org.bukkit.plugin.java.JavaPluginLoader$52.execute(JavaPluginLoader.java:626) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:92) at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:101) at com.bergerkiller.bukkit.nolagg.meta.ChunkMetaData.getChunk(ChunkMetaData.java:65) at com.bergerkiller.bukkit.nolagg.meta.ChunkMetaData.getNativeChunk(ChunkMetaData.java:62) at com.bergerkiller.bukkit.nolagg.meta.ChunkMetaData.add(ChunkMetaData.java:227) at com.bergerkiller.bukkit.nolagg.meta.ChunkMetaData.(ChunkMetaData.java:42) at com.bergerkiller.bukkit.nolagg.meta.WorldMetaData.getChunk(WorldMetaData.java:276) at com.bergerkiller.bukkit.nolagg.meta.WorldMetaData.getChunk(WorldMetaData.java:263) at com.bergerkiller.bukkit.nolagg.meta.WorldMetaData.removeSpawnedItem(WorldMetaData.java:194) at com.bergerkiller.bukkit.nolagg.WorldStackFormer.kill(WorldStackFormer.java:47) at com.bergerkiller.bukkit.nolagg.WorldStackFormer.updateItems(WorldStackFormer.java:93) at com.bergerkiller.bukkit.nolagg.WorldStackFormer.run(WorldStackFormer.java:171) at com.bergerkiller.bukkit.nolagg.meta.WorldMetaData.updateStackFormingAsync(WorldMetaData.java:104) at com.bergerkiller.bukkit.nolagg.StackFormer.run(StackFormer.java:26) 10:00:00 [INFO] This error is logged only once: it could have occurred multiple times by now. 10:00:00 [INFO] Please contact one of the authors of plugin 'NoLagg': bergerkiller

NoLagg/config.yml:

Sets if and how many items are buffered per chunk

bufferItems: true maxItemsPerChunk: 40 bufferTNT: true tntDetonationInterval: 1 tntDetonationRate: 10 explosionRate: 5 useSpawnLimits: true spawnlimits: default: {} global: {} worlds: {} useChunkUnloadDelay: true chunkUnloadDelay: 60000 formItemStacks: true stackRadius: 3.0 stackThreshold: 3 ignoredItemTypes:

bergerkiller commented 12 years ago

Thanks for reporting, I know what went wrong and will add a fix for it in the next version(s). Note that the error is a warning, it is not very severe, as long as it doesn't happen too often. Still, it's a bug, and bugs need to be squashed :)