bergerkiller/NoLagg — Issue #5: Vanishing Animals
Author: credomane
Created: 2012-01-09 23:53:34+00:00
State: open

My server has been having vanishing problems with animals and I mean they, literally, vanish without a trace. Since updating from NoLagg 1.52.4.
Running bukkit
Running NoLagg 1.54.8

NoLagg config.yml
It is mostly the default config. Anything that differs from the default is from my testing.

```
# Sets if and how many items are buffered per chunk
bufferItems: true
maxItemsPerChunk: 40
bufferTNT: true
tntDetonationInterval: 1
tntDetonationRate: 10
explosionRate: 5
useSpawnLimits: true
useChunkUnloadDelay: true
chunkUnloadDelay: 10000
formItemStacks: true
stackRadius: 1.0
stackThreshold: 2
ignoredItemTypes:
- DIAMOND_PICKAXE
autoSaveInterval: 400
updateInterval: 20
monitorInterval: 40
chunkSending:
enabled: true
minRate: 0.25
maxRate: 5.0
boost: 25
spawnlimits:
default: {}
global: {}
worlds: {}
```

After working on this for about a week and a half now I've tracked the issue to be caused by NoLagg regardless of how I change the config values.

It seems to only be on the loading of chunks and/or the spawning of animals in the recently loaded chunk. Problem doesn't seem to happen in the saving and unloading of chunks. I'll explain what I mean by that shortly.

Let's say I create a 19x19 fenced in area and divide that area into fourths so that each area is 8x8. Each section gets one animal type (Pigs, Sheep, Cows, Chickens) with 10 animals in it.
With NoLagg 1.54.8 installed leaving a chunk and causing it to unload then returning will almost always result in an animal vanishing. The method by which you leave doesn't matter (logout, warp, home, kicked, banned, spawn, etc). This is with NoLagg enabled the entire time.

With the same scenario as above only this time after leaving the area the server is taken down and NoLagg is removed. This time returning to the area will result in no missing animals no matter how many times I repeat the process.

The last scenario is done in reverse. NoLagg is not on the server when leaving the area. Downing the server, adding NoLagg back and returning to the area will likely result in some missing animals.

The problem doesn't happen 100% but my guess would be in the 75-85%. I can only hope I've been descriptive enough to help you out.
I see that between the time I started this ticket before work and getting home to finish it you have released NoLagg 1.56.
I'm going to go ahead and post this bug report because I've spent the time on it and then update once I have tested 1.56 for the bug.