Page 1 of 1

item-request-proxy crashes on undo

Posted: Sat Aug 16, 2025 11:40 pm
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.

Re: item-request-proxy crashes on undo

Posted: Sat Aug 16, 2025 11:45 pm
by Loewchen
What version of the game is this?

Re: item-request-proxy crashes on undo

Posted: Tue Aug 19, 2025 12:56 pm
by Rseding91
Can you please provide some Lua code that will reproduce this?

Re: item-request-proxy crashes on undo

Posted: Tue Aug 19, 2025 1:46 pm
by Rseding91
Actually I was able to reproduce it. It's now fixed for the next release.