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

Bugs which we just recently fixed in our development version and will reach you in the next release.
front
Inserter
Inserter
Posts: 26
Joined: Tue Dec 03, 2024 4:54 pm
Contact:

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

Post 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 21 times
edit: got the crash without the rod registered, so no clue what the trigger is. Was loading into an existing save.
Genhis
Factorio Staff
Factorio Staff
Posts: 892
Joined: Wed Dec 24, 2014 8:19 am
Contact:

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

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16341
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
front
Inserter
Inserter
Posts: 26
Joined: Tue Dec 03, 2024 4:54 pm
Contact:

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

Post 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. :)
Post Reply

Return to “Resolved for the next release”