[0.18.47] Crash with invalid iconspecification

This subforum contains all the issues which we already resolved.
lyvgbfh
Fast Inserter
Fast Inserter
Posts: 177
Joined: Fri Jul 10, 2020 6:48 pm
Contact:

[0.18.47] Crash with invalid iconspecification

Post by lyvgbfh »

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
Attachments
Prototype specification
Prototype specification
Untitled.png (36.36 KiB) Viewed 826 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
Rseding91
Factorio Staff
Factorio Staff
Posts: 16029
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.47] Crash with invalid iconspecification

Post by Rseding91 »

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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”