Project Zomboid

Project Zomboid

Wolkodav7 Dec 31, 2024 @ 6:29am
[42.02] Chickens of Doom
I have a problem. I was taking a walk outside and crafting in my little workshop when suddenly my fps dropped to below 20. First i was confused but after fighting the fps i figured out, my chicken coop was going insane.
I managed to take a screenshot. Chickens of Doom

I guess my savefile is corrupted now? To bad, i have been working so hard on this character so far.

Update: Speed up time is a bad idea. It makes them all lay eggs and crashing my game.
Last edited by Wolkodav7; Dec 31, 2024 @ 6:33am
< >
Showing 1-15 of 21 comments
Alex Dec 31, 2024 @ 8:28am 
You can load debug mode and delete these while paused, or delete apop file from the save to erase animals.
Last edited by Alex; Dec 31, 2024 @ 8:28am
PrDatur Dec 31, 2024 @ 4:03pm 
Same here with pigs.
Had 2 female, 2 male and 1 child pig in a zone. after 3 ingame days or so i walked to a river to fill up water, came back back and i had not countable pigs. (more then 100 oder even more then 1000)
Ohshootimshooting Dec 31, 2024 @ 4:10pm 
i posted a video of this in my problem. There was so many Lil' Ellis's.
水瀬伊織P Dec 31, 2024 @ 5:47pm 
Me too but sheeps.
Originally posted by Alex:
You can load debug mode and delete these while paused, or delete apop file from the save to erase animals.

I am in debug mode, but how do i remove the damn chickens. all i see is a zombie map to clear them. But not chickens.
For those experiencing this animal duplication bug, can you let me know your RAM and VRAM sizes? I can't reproduce this bug myself.
Wolkodav7 Jan 4 @ 12:40pm 
Originally posted by jaelee1111:
For those experiencing this animal duplication bug, can you let me know your RAM and VRAM sizes? I can't reproduce this bug myself.
Dual-Channel RAM: 2x16GB = 32GB on 3200MHz (3467 MT/s)
Dedicated VRAM: 12GB GDDR6X + 16GB combined Storage. Total of 28GB GPU-Storage
CPU i9-10850K, 3,6GHz boost to 5,1GHz max.
Gen. 3 NVMe Storage.
PrDatur Jan 5 @ 1:46am 
I9 12900K
2x32 GB
24GB Vram rtx 4090
Shadow Jan 5 @ 7:11pm 
I just had this issue happen to me. I had brought some chickens into my farm zone and while I was tending to some cows, my fps dropped to 12 and actual hundreds of chickens started spawning on one tile. I recorded the whole event here: https://youtu.be/EG74xYQYtqs

Based on the animal count in the zone it seems to be trying to spawn a chicken every game tick. No idea how to reproduce it as I have no idea why it happened. However it seemed to happen at exactly 10:00 AM, which my watch alarm was set for, which might be related.

I saved a copy of the debug log and found this exception (which was repeated a few times until I closed the game):
[05-01-25 21:01:49.713] ERROR: General f:410293, t:1736132509713> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Stack overflow at Coroutine.ensureStacksize(Coroutine.java:131). Stack trace: se.krka.kahlua.vm.Coroutine.ensureStacksize(Coroutine.java:131) se.krka.kahlua.vm.Coroutine.setTop(Coroutine.java:147) se.krka.kahlua.vm.LuaCallFrame.setTop(LuaCallFrame.java:126) se.krka.kahlua.vm.LuaCallFrame.init(LuaCallFrame.java:151) se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:980) se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173) se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963) se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1805) se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38) zombie.ui.UIElement.render(UIElement.java:1978) zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176) zombie.ui.UIManager.render(UIManager.java:414) zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176) zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1308) zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102) zombie.gameStates.IngameState.renderframeui(IngameState.java:1297) zombie.gameStates.IngameState.renderInternal(IngameState.java:1434) zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102) zombie.gameStates.IngameState.render(IngameState.java:1382) zombie.gameStates.GameStateMachine.render(GameStateMachine.java:37) zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102) zombie.GameWindow.renderInternal(GameWindow.java:450) zombie.GameWindow.frameStep(GameWindow.java:938) zombie.GameWindow.run_ez(GameWindow.java:810) zombie.GameWindow.mainThread(GameWindow.java:610) java.base/java.lang.Thread.run(Unknown Source) . [05-01-25 21:01:49.716] LOG : General f:410293, t:1736132509716> ----------------------------------------- STACK TRACE ----------------------------------------- function: @stdlib.lua -- file: null line # 47 function: @stdlib.lua -- file: null line # 63 function: @stdlib.lua -- file: null line # 64 <<This last line repeats several hundred times>>
Last edited by Shadow; Jan 5 @ 7:19pm
Originally posted by Shadow:
I just had this issue happen to me. I had brought some chickens into my farm zone and while I was tending to some cows, my fps dropped to 12 and actual hundreds of chickens started spawning on one tile. I recorded the whole event here: https://youtu.be/EG74xYQYtqs

Based on the animal count in the zone it seems to be trying to spawn a chicken every game tick. No idea how to reproduce it as I have no idea why it happened. However it seemed to happen at exactly 10:00 AM, which my watch alarm was set for, which might be related.

I saved a copy of the debug log and found this exception (which was repeated a few times until I closed the game):
[05-01-25 21:01:49.713] ERROR: General f:410293, t:1736132509713> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Stack overflow at Coroutine.ensureStacksize(Coroutine.java:131). Stack trace: se.krka.kahlua.vm.Coroutine.ensureStacksize(Coroutine.java:131) se.krka.kahlua.vm.Coroutine.setTop(Coroutine.java:147) se.krka.kahlua.vm.LuaCallFrame.setTop(LuaCallFrame.java:126) se.krka.kahlua.vm.LuaCallFrame.init(LuaCallFrame.java:151) se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:980) se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173) se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963) se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1805) se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38) zombie.ui.UIElement.render(UIElement.java:1978) zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176) zombie.ui.UIManager.render(UIManager.java:414) zombie.GameProfiler.invokeAndMeasure(GameProfiler.java:176) zombie.gameStates.IngameState.renderFrameUI(IngameState.java:1308) zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102) zombie.gameStates.IngameState.renderframeui(IngameState.java:1297) zombie.gameStates.IngameState.renderInternal(IngameState.java:1434) zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102) zombie.gameStates.IngameState.render(IngameState.java:1382) zombie.gameStates.GameStateMachine.render(GameStateMachine.java:37) zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:102) zombie.GameWindow.renderInternal(GameWindow.java:450) zombie.GameWindow.frameStep(GameWindow.java:938) zombie.GameWindow.run_ez(GameWindow.java:810) zombie.GameWindow.mainThread(GameWindow.java:610) java.base/java.lang.Thread.run(Unknown Source) . [05-01-25 21:01:49.716] LOG : General f:410293, t:1736132509716> ----------------------------------------- STACK TRACE ----------------------------------------- function: @stdlib.lua -- file: null line # 47 function: @stdlib.lua -- file: null line # 63 function: @stdlib.lua -- file: null line # 64 <<This last line repeats several hundred times>>
Wow, that bug is happening right next to the player’s chunk! The devs definitely need to see this video! it’s a true gem! At first I thought this animal duplication bug might be connected to PZ’s memory management like loading and unloading chunks, saving to and retrieving from virtual animal data, and possibly causing the issue by saving the same animals multiple times during the process, but it turns out that’s not the case!

The errors in the log are just stack overflow triggered by too many update and render function calls every time a physical animal is created due to the bug.
Higgs Jan 6 @ 3:48am 
Anyone else with these issues, please add here especially if you have new/valuable information.

It's something we've been looking into for a while, and have fixed some known instances of it, that were easily reproducible, but there's evidently still a few causes of animal explosions occurring like this we haven't found exact reason for and would love to fix if we could consistently reproduce it.
Valchrist Jan 9 @ 10:54am 
Just had this same issue with pigs.
Thing is, I brought two baby piglets to the farm, maybe 24-48 in-game hours before and took a short road trip. When I came back I have hundreds of full grown pigs.
There should have been no time for them to mature, never mind get pregnant and have babies. Moreover, all the hundreds of pigs are fully grown.
So it's more like duplication than reproduction.
rocovargas Jan 10 @ 7:58am 
In my case I killed a chicken. The chicken survived. I killled it again but still alive. I released it in a spot next to the hutch. Then the duplication started. I made a campfire and I burned all the chinckens. Every single chicken died but one was still alive. He was probably the inmortal chicken. It went out the chicken area and it went to the house I was sleeping and burned it. The fire extinguished in the chicken area. However the duplication continued in the same spot (at least in the same chicken area).
Maybe there are more than one bug here.
I should have made more tests.
I faced the bug a second time, so I started removing all animals via debug mode. I noticed there were no chickens, no eggs, nothing but the game still spawn hordes of Rhode Island Cockerels, about 30 minutes later, I restarted the game, and all the chickens were gone. Additionally, about half of the other things I did were missing, such as half of my crops, and there were still dead bodies in my home that I had removed earlier.
< >
Showing 1-15 of 21 comments
Per page: 1530 50

Date Posted: Dec 31, 2024 @ 6:29am
Posts: 21