Page 1 of 1

[Dominik][0.17.15][Mod] Crash after assembly machine auto-connects a pipe incorrectly

Posted: Tue Mar 19, 2019 5:54 am
by jevon
0.001 2019-03-19 18:45:54; Factorio 0.17.15 (build 43864, win64, steam)

Randomly came across a crash while playing a Angels/Bobs/SpaceX playthrough.

Had a pipe set up like so... (it's containing "sulfuric waste water" btw but I don't believe it's important)

Image

I created an assembly machine. Tried copying the plastics ("liquid plastic" -> plastic bar) recipe next door (shift-left-click, shift-right-click), the assembly machine connected the pipe incorrectly to the north:

Image

Tried rotating the assembly machine, gave me "fluids can't mix", so deleted it. That's when things got messed up. The pipe still appears to be connected to the south (bit hard to see in the screenshot), but it's not connected to anything:

Image

Trying to delete the selected pipe causes an immediate crash.

Log:
126.255 Error CrashHandler.cpp:409: Exception Code: c0000005, Address: 0x00007ff651271924
ModuleBase: 0x00007ff650ff0000, ImageSize: 01623000, RelativeAddress: 00281924
126.255 Error CrashHandler.cpp:415: Access Violation: Read at address 0000000000000010
126.255 Error CrashHandler.cpp:429: Exception Context:
rax=0000000000000000, rbx=000001f5385c1a00, rcx=0000000000000004,
rdx=000001f5385c1a00, rsi=0000000000000001, rdi=000001f5383f7250,
rip=00007ff651271924, rsp=0000001d54bfe320, rbp=0000000000000000,
r8=0000000000000001, r9=0000000000000000, r10=0000000000000000,
r11=0000000000000000, r12=0000000000000090, r13=000001f4b90f1730,
r14=0000000000000000, r15=0000000000000002
126.255 Crashed in C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe (0x00007ff650ff0000 - 0x00007ff652613000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-z2hre9\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-build-z2hre9\src\util\logger.cpp (376): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-build-z2hre9\src\util\logger.cpp (527): Logger::logStacktrace
c:\cygwin64\tmp\factorio-build-z2hre9\src\util\crashhandler.cpp (170): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-build-z2hre9\src\util\crashhandler.cpp (456): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA04D3669C)
00007FFA04D3669C (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA089580CB)
00007FFA089580CB (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA0893FD36)
00007FFA0893FD36 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA0895468F)
00007FFA0895468F (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA088B4BEF)
00007FFA088B4BEF (ntdll): (filename not available): RtlWalkFrameChain
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA089533FE)
00007FFA089533FE (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-build-z2hre9\src\fluid\fluidmanager.cpp (97): FluidManager::countAndMarkVisitedRecursive
c:\cygwin64\tmp\factorio-build-z2hre9\src\fluid\fluidmanager.cpp (263): FluidManager::moveOut
c:\cygwin64\tmp\factorio-build-z2hre9\src\entity\pipe.cpp (85): PipeToGround::onDestroy
c:\cygwin64\tmp\factorio-build-z2hre9\src\entity\entity.cpp (287): Entity::forceDestroy
c:\cygwin64\tmp\factorio-build-z2hre9\src\manualstorage.cpp (212): ManualStorage::handleMinedEntity
c:\cygwin64\tmp\factorio-build-z2hre9\src\manualminer.cpp (123): ManualMiner::performMining
c:\cygwin64\tmp\factorio-build-z2hre9\src\entity\character.cpp (673): Character::update
c:\cygwin64\tmp\factorio-build-z2hre9\src\surface\chunk.cpp (567): Chunk::updateActiveEntities
c:\cygwin64\tmp\factorio-build-z2hre9\src\surface\chunk.cpp (616): Chunk::updateEntities
c:\cygwin64\tmp\factorio-build-z2hre9\src\surface\surface.cpp (1366): Surface::update
c:\cygwin64\tmp\factorio-build-z2hre9\src\map\map.cpp (1458): Map::updateEntities
c:\cygwin64\tmp\factorio-build-z2hre9\src\game.cpp (191): Game::update
c:\cygwin64\tmp\factorio-build-z2hre9\src\scenario\scenario.cpp (1156): Scenario::update
c:\cygwin64\tmp\factorio-build-z2hre9\src\mainloop.cpp (1104): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-build-z2hre9\src\mainloop.cpp (970): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-build-z2hre9\src\util\workerthread.cpp (42): WorkerThread::loop
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\thr\xthread (230): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl RouterBase::*)(void),ClientRouter *>,std::default_delete<std::tuple<void (__cdecl RouterBase::*)(void),ClientRouter *> > > >::_Go
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\thr\xthread (209): std::_Pad::_Call_func
minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA05FA81F4)
00007FFA05FA81F4 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA0891A251)
00007FFA0891A251 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
127.919 Error CrashHandler.cpp:175: Map tick at moment of crash: 4324254

Re: [Dominik][0.17.15][Mod] Crash after assembly machine auto-connects a pipe incorrectly

Posted: Tue Mar 19, 2019 5:06 pm
by TruePikachu
Strictly speaking, this is a duplicate of 68061

Re: [Dominik][0.17.15][Mod] Crash after assembly machine auto-connects a pipe incorrectly

Posted: Thu Mar 21, 2019 10:14 am
by Dominik
Indeed, this is probably fixed. I actually never run into having a pipe in this state, but I think it is another symptom of the same issue. Please, try it in the current version and let me know.

Re: [Dominik][0.17.15][Mod] Crash after assembly machine auto-connects a pipe incorrectly

Posted: Fri Mar 22, 2019 8:32 am
by jevon
Yep, it doesn't crash now in 0.17.17! Now it says "cannot mix fluids" when trying to paste the recipe, which is perfect. Thank you :)