item-request-proxy crashes on undo

This subforum contains all the issues which we already resolved.
Funtime60
Burner Inserter
Burner Inserter
Posts: 10
Joined: Wed Apr 09, 2025 2:59 am
Contact:

item-request-proxy crashes on undo

Post by Funtime60 »

I'm trying to create item-request-proxy with my mod, and I found that if you create one with surface.create_entity and assign a player undo queue it will allow you to undo it and then crash. I think there is a check for this since I have a very descriptive line in the log file: 11166.005 Error ItemRequestProxy.cpp:462: Item request proxy should never be marked for deconstruction. They should be destroy()-ed. I think it could instead just pass along to destroy() and maybe do something to draw attention so that modders avoid it yet the game would handle it gracefully if one did end up with one in the queue.
Loewchen
Global Moderator
Global Moderator
Posts: 10324
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: item-request-proxy crashes on undo

Post by Loewchen »

What version of the game is this?
Rseding91
Factorio Staff
Factorio Staff
Posts: 16024
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: item-request-proxy crashes on undo

Post by Rseding91 »

Can you please provide some Lua code that will reproduce this?
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16024
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: item-request-proxy crashes on undo

Post by Rseding91 »

Actually I was able to reproduce it. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”