[0.17.4] - Crash when deconstructing stack inserter
Posted: Sun Mar 03, 2019 11:34 pm
00007FFAF162E70E (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-build-ocil06\src\entity\inserter.cpp (974): Inserter::dropHeldItem
c:\cygwin64\tmp\factorio-build-ocil06\src\entity\inserter.cpp (1100): Inserter::update
c:\cygwin64\tmp\factorio-build-ocil06\src\surface\chunk.cpp (555): Chunk::updateActiveEntities
c:\cygwin64\tmp\factorio-build-ocil06\src\surface\chunk.cpp (604): Chunk::updateEntities
c:\cygwin64\tmp\factorio-build-ocil06\src\surface\surface.cpp (1362): Surface::update
c:\cygwin64\tmp\factorio-build-ocil06\src\map\map.cpp (1435): Map::updateEntities
c:\cygwin64\tmp\factorio-build-ocil06\src\game.cpp (189): Game::update
Save file is attached.
Context: I'm replacing my existing copper drop-off at the top-right of the main base. There's a train there that has no path but has some copper ore left in it because the conditions to leave the station have been met. On setting the train to manual to force the existing copper ore to unload, then marking the train and the unloader assembly for deconstruction, I get a crash to desktop. Replicated this twice.
At a guess I'd say that the inserter is getting removed then the dropHeldItem event fired the next tick, causing a null reference exception.
c:\cygwin64\tmp\factorio-build-ocil06\src\entity\inserter.cpp (974): Inserter::dropHeldItem
c:\cygwin64\tmp\factorio-build-ocil06\src\entity\inserter.cpp (1100): Inserter::update
c:\cygwin64\tmp\factorio-build-ocil06\src\surface\chunk.cpp (555): Chunk::updateActiveEntities
c:\cygwin64\tmp\factorio-build-ocil06\src\surface\chunk.cpp (604): Chunk::updateEntities
c:\cygwin64\tmp\factorio-build-ocil06\src\surface\surface.cpp (1362): Surface::update
c:\cygwin64\tmp\factorio-build-ocil06\src\map\map.cpp (1435): Map::updateEntities
c:\cygwin64\tmp\factorio-build-ocil06\src\game.cpp (189): Game::update
Save file is attached.
Context: I'm replacing my existing copper drop-off at the top-right of the main base. There's a train there that has no path but has some copper ore left in it because the conditions to leave the station have been met. On setting the train to manual to force the existing copper ore to unload, then marking the train and the unloader assembly for deconstruction, I get a crash to desktop. Replicated this twice.
At a guess I'd say that the inserter is getting removed then the dropHeldItem event fired the next tick, causing a null reference exception.