An iconspecification for item_prototype.icons that has icon_mipmaps and icon_size, but no filename results in a crash when either opening the craft menu or trying to craft the item, despite the game successfully loading. This may also require pictures to be set on the prototype.
Attached are a log, dump, save, and a screenshot of an example prototype that can reproduce the issue.
Error ImageDrawOrder.cpp:63: Invalid sprite reference. Sprite: <EMPTY> {x = 0, y = 0, w = 0, h = 0}, 0x000002402326b638, owner: ee-super-inserter:item
[0.18.47] Crash with invalid iconspecification
[0.18.47] Crash with invalid iconspecification
- Attachments
-
- Prototype specification
- Untitled.png (36.36 KiB) Viewed 825 times
-
- factorio-dump-previous.dmp
- (924.62 KiB) Downloaded 58 times
-
- iconerror.zip
- Save
- (498.03 KiB) Downloaded 78 times
-
- factorio-current.log
- (25.95 KiB) Downloaded 69 times
Re: [0.18.47] Crash with invalid iconspecification
Thanks for the report. I wasn't able to reproduce the game letting me load without 'icon' set but I was able to reproduce it loading with icons = {} and it reproduced the same crash you're getting. So, probably something erased the mipmap values you set before it finished the data stage?
Anyway, if you can get me a mod that reproduces the crash I can verify it's fixed. Otherwise it looks like the fix I found will address it.
Anyway, if you can get me a mod that reproduces the crash I can verify it's fixed. Otherwise it looks like the fix I found will address it.
If you want to get ahold of me I'm almost always on Discord.