on_marked_for_deconstruction

This subforum contains all the issues which we already resolved.
mophydeen
Filter Inserter
Filter Inserter
Posts: 529
Joined: Sun Nov 22, 2015 5:02 pm
Contact:

on_marked_for_deconstruction

Post by mophydeen »

story:
I mark some entities for deconstruction using the deconstruction planner
I change a few entities before "on_marked_for_deconstruction" is called/finished.
The game crashes

I try to upgrade items using the deconstruction planner in some circumstances(button active or not)
When upgrading underground-belt, I try to find the other entity (neighbours).
I update both ends the first time. When that's done the game seems to crash...
Probably when the second entity is processed but I can't get it. It's before the second item's on_marked_for_deconstruction is called.

My current solution is don't search for neighbours but that's lame.


note: on_marked_for_deconstruction loops all entities that were selected.
note2: I know upgrade planner uses custom selector and area but that's not an option (autodownload mod, savefile)

Code: Select all

 
....
107.980 Error CrashHandler.cpp:230: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
 108.729 Warning Logger.cpp:369: Symbols.size() == 24, usedSize == 15
#0  0x000000000085c24d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-ZKDrW7/src/Util/Logger.cpp:391
#1  0x000000000063251b in CrashHandler::writeStackTrace() at /tmp/factorio-ZKDrW7/src/Util/CrashHandler.cpp:105
#2  0x00000000006327b4 in CrashHandler::SignalHandler(int) at /tmp/factorio-ZKDrW7/src/Util/CrashHandler.cpp:235
#3  0x00007f51644ab7e0 in ?? at ??:0
#4  0x0000000000670732 in ConstructionManager::orderRobotToDeconstruct(ConstructionRobot*, Entity*) at /tmp/factorio-ZKDrW7/src/Logistics/ConstructionManager.cpp:540
#5  0x000000000084a6ff in ConstructionManager::processToDeconstructQueue(std::deque<DeconstructionOrder, std::allocator<DeconstructionOrder> >&) at /tmp/factorio-ZKDrW7/src/Logistics/ConstructionManager.cpp:457
#6  0x00000000009628ca in sendRobotsToDeconstruct at /tmp/factorio-ZKDrW7/src/Logistics/ConstructionManager.cpp:362
#7  0x0000000000c5a81b in update at /tmp/factorio-ZKDrW7/src/Logistics/ConstructionManager.cpp:143
#8  0x0000000000c5eb0a in update at /tmp/factorio-ZKDrW7/src/Force/ForceData.cpp:421
#9  0x0000000000c70eaa in update at /tmp/factorio-ZKDrW7/src/Force/ForceManager.cpp:85
#10 0x0000000000c71c21 in update at /tmp/factorio-ZKDrW7/src/Map/Map.cpp:1135
#11 0x0000000000636e6b in update at /tmp/factorio-ZKDrW7/src/Game.cpp:144
#12 0x00000000011a6bc0 in update at /tmp/factorio-ZKDrW7/src/Scenario/Scenario.cpp:842
#13 0x00007f516623f5ca in MainLoop::gameUpdateStep(MultiplayerManagerBase*, Scenario*, AppManager*, MainLoop::HeavyMode) [clone .constprop.72077] at /tmp/factorio-ZKDrW7/src/MainLoop.cpp:761
#14 0x00007f516457a0ed in getBaseMultiplayerManager at /tmp/factorio-ZKDrW7/src/GlobalContext.cpp:972
Factorio crashed. Generating symbolized stacktrace, please wait ...
Rseding91
Factorio Staff
Factorio Staff
Posts: 16000
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: on_marked_for_deconstruction

Post by Rseding91 »

Fixed for 0.15.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”