Page 1 of 1

[2.0.72] Crash creating lightning rod without graphics (LightningPriorityCache::getPriority)

Posted: Mon Nov 24, 2025 10:57 pm
by front
I registered this lightning rod, then the game crashed with the log provided. In retro I think it wanted to throw an error because I have no graphics, but crashed instead.

Code: Select all

 {
    type             = "lightning-attractor",
    name             = "corrundum-spawner-lightning-rod",
    efficiency       = 0.0,
    range_elongation = 30,
    icon             = "__corrundum-the-acid-planet__/graphics/icon/spawner.png",
}
factorio-current.log
(78.22 KiB) Downloaded 32 times
edit: got the crash without the rod registered, so no clue what the trigger is. Was loading into an existing save.

Re: [2.0.72] Crash creating lightning rod without graphics (LightningPriorityCache::getPriority)

Posted: Wed Nov 26, 2025 10:20 am
by Genhis
Thanks for the report. How can I reproduce this crash? Your prototype definition seems to work fine and it likely isn't caused by missing graphics definition.

Re: [2.0.72] Crash creating lightning rod without graphics (LightningPriorityCache::getPriority)

Posted: Wed Dec 03, 2025 2:05 pm
by Rseding91
Thanks for the report. This is now fixed for the next release. The issue was happening when removing the lighting rod due to mod migrations/mod entity removal and the engine not handling that correctly.

Re: [2.0.72] Crash creating lightning rod without graphics (LightningPriorityCache::getPriority)

Posted: Fri Dec 05, 2025 11:33 pm
by front
Genhis wrote: Wed Nov 26, 2025 10:20 am Thanks for the report. How can I reproduce this crash? Your prototype definition seems to work fine and it likely isn't caused by missing graphics definition.
This was one of my questions, because things looked fine.


Thank you for the fix. :)