I just started using this mod on my server recently too. It mostly runs pretty well for me, but I actually do get the exact same error if I stress test by spawning dozens of animals at once. I haven't yet had it come up from natural gameplay.
I'm running the latest release of the mod, and version 5.8.0 of Minetest. An example of the same error that I get is below:
2024-05-08 20:56:15: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'animalworld' in callback luaentity_GetStaticdata(): ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:33: unsupported type: userdata
2024-05-08 20:56:15: ERROR[Main]: stack traceback:
2024-05-08 20:56:15: ERROR[Main]: [C]: in function 'error'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:33: in function 'count_values'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:29: in function 'count_values'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:29: in function 'count_values'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:36: in function 'count_objects'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:69: in function 'serialize'
2024-05-08 20:56:15: ERROR[Main]: ...6/usr/bin/../share/minetest/builtin/common/serialize.lua:195: in function 'func'
2024-05-08 20:56:15: ERROR[Main]: ...n/../share/minetest/builtin/profiler/instrumentation.lua:108: in function <...n/../share/minetest/builtin/profiler/instrumentation.lua:101>
All the logs prior to this event are literally just animals attacking each other. Not really seeing much else in debug.txt.
As you noted, not seeing it crash anymore. I got this popping up in the logs just once, so far:
2024-05-08 19:58:31: WARNING[Server]: from update_immediately() above encode_png: Removed blood_splatter:canvas entity at (-155, -4.499, -10035) in on_activate because of invalid staticdata
2024-05-08 19:58:31: WARNING[Server]: reported from update_canvases
I am using the latest 2.0.1 release, and 5.8.0 for Minetest.
I'm using these animal mobs:
Wilhelmines Animal World (this one has the most animals attacking each other)
Mob Horse
Mobs Animal
Mobs Wolf
Wildlife
I'm not sure exactly how to reproduce, other than waiting for it to occur, and it usually runs fine for a few hours before it finally crashes. My logs show a mob attacking another one only happening once every few minutes. And I've observed the blood splatter going away after five minutes is working.
I'm testing the mod in my staging enviornment first, which is a private server and only has two players joining via a wired connection. I haven't yet noticed any change in resource utilization or lag on the client.
I don't know what self.bitmap is or how to check it, so I may have to defer to others on that one. :P
I do like this mod, so I'd be happy to help troubleshoot.
Hello. Nice mod. I tried using it and it mostly works for me. However, I tried it on my server that runs 24/7 with lots of animal mobs that attack each other and cause blood splatter, and it will eventually just crash and the client says there was an Internal Server Error when it disconnects.
I checked the debug logs and I get the following:
2024-05-08 02:37:05: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'blood_splatter' in callback luaentity_Step(): "Runtime error from mod 'blood_splatter' in callback luaentity_Punch(): ...t/1914/usr/bin/../share/minetest/builtin/game/misc_s.lua:76: Incorrect length of 'd
2024-05-08 02:37:05: ERROR[Main]: ata', width and height imply 1024 bytes but 1088 were provided
2024-05-08 02:37:05: ERROR[Main]: stack traceback:
2024-05-08 02:37:05: ERROR[Main]: [C]: in function 'error'
2024-05-08 02:37:05: ERROR[Main]: ...t/1914/usr/bin/../share/minetest/builtin/game/misc_s.lua:76: in function 'encode_png'
2024-05-08 02:37:05: ERROR[Main]: ...p/minetest/1914/.minetest/mods/blood_splatter/canvas.lua:105: in function 'update_immediately'
2024-05-08 02:37:05: ERROR[Main]: ...p/minetest/1914/.minetest/mods/blood_splatter/canvas.lua:186: in function 'update_canvases'
2024-05-08 02:37:05: ERROR[Main]: ...inetest/1914/.minetest/mods/blood_splatter/spraycast.lua:307: in function 'after_spraycasts'
2024-05-08 02:37:05: ERROR[Main]: ...nap/minetest/1914/.minetest/mods/blood_splatter/init.lua:54: in function 'bleed_any'
2024-05-08 02:37:05: ERROR[Main]: ...nap/minetest/1914/.minetest/mods/blood_splatter/init.lua:92: in function 'bleed_animal'
2024-05-08 02:37:05: ERROR[Main]: ...nap/minetest/1914/.minetest/mods/blood_splatter/init.lua:118: in function 'old_punch'
I don't have the expertise to troubleshoot this much further. Do you think this can be something that is corrected in the mod, or maybe a config change that I can make myself?
Thank you, as well!
I downloaded it again, and ran it on my server.
Running it for 6 hours so far and no issues.
Seeing lots of animal attacks in the logs, and lots of blood splatter on the screen.
So far so good.
I'm having the same problem.
I just started using this mod on my server recently too. It mostly runs pretty well for me, but I actually do get the exact same error if I stress test by spawning dozens of animals at once. I haven't yet had it come up from natural gameplay.
I'm running the latest release of the mod, and version 5.8.0 of Minetest. An example of the same error that I get is below:
All the logs prior to this event are literally just animals attacking each other. Not really seeing much else in debug.txt.
As you noted, not seeing it crash anymore. I got this popping up in the logs just once, so far:
Thanks! I'm giving it a try.
Thanks for the reply!
I am using the latest 2.0.1 release, and 5.8.0 for Minetest.
I'm using these animal mobs:
I'm not sure exactly how to reproduce, other than waiting for it to occur, and it usually runs fine for a few hours before it finally crashes. My logs show a mob attacking another one only happening once every few minutes. And I've observed the blood splatter going away after five minutes is working.
I'm testing the mod in my staging enviornment first, which is a private server and only has two players joining via a wired connection. I haven't yet noticed any change in resource utilization or lag on the client.
I don't know what self.bitmap is or how to check it, so I may have to defer to others on that one. :P
I do like this mod, so I'd be happy to help troubleshoot.
Hello. Nice mod. I tried using it and it mostly works for me. However, I tried it on my server that runs 24/7 with lots of animal mobs that attack each other and cause blood splatter, and it will eventually just crash and the client says there was an Internal Server Error when it disconnects.
I checked the debug logs and I get the following:
I don't have the expertise to troubleshoot this much further. Do you think this can be something that is corrected in the mod, or maybe a config change that I can make myself?