Page 1 of 1

[1.1.76] Crash with blob of Explosive Biters

Posted: Fri Jan 13, 2023 8:04 pm
by Honktown
Context: Was playing Warptorio2 + Expansion, which includes the Explosive Biters mod. Biters stampede in massive blobs with nothing to attack (an already reported issue with accumulator emissions).

1) big ol' blob of small biters
2) one (or more) dies, explodes
3) explosive biter fission
4) stack overflow

I expect the "solution" to be "don't do that", but I am reporting anyway.
factorio-current-RIP.log
(373.96 KiB) Downloaded 53 times
This is an example of the situation, except the second image was never reached:
explosion_before.jpg
explosion_before.jpg (526.16 KiB) Viewed 777 times
explosion_after.jpg
explosion_after.jpg (311.9 KiB) Viewed 777 times

Re: [1.1.76] Crash with blob of Explosive Biters

Posted: Sat Jan 14, 2023 12:48 am
by Honktown
Since it happened again, here's another stacktrace:

Re: [1.1.76] Crash with blob of Explosive Biters

Posted: Sun Jan 15, 2023 4:29 pm
by Rseding91
Thanks for the report. I looked into reducing the stack usage of this particular circle of code but there's little I can do around it. As you guessed; the only "solution" is to not do that.

One option the mod has is to delay the explosive part of the death by 1 tick: instead of triggering the damage instantly create a projectile at the source which will explode 1 tick later.