Page 1 of 1

[0.13.13] Crash on cancelling crafting

Posted: Wed Aug 03, 2016 3:31 am
by donblas
I ran into the crash while canceling crafting on my new 13.13 save. Here's the stack trace:

https://gist.github.com/anonymous/06c6c ... c47202cf8c

Here's the save.

https://www.dropbox.com/s/nq9b9mgi5a86o ... 2.zip?dl=0

I have not yet been able to reproduce it.

I'm a programmer by trade, so let me know if there is additional information I can get you. I'll post back if I get a repro case.

Re: [0.13.13] Crash on cancelling crafting

Posted: Wed Aug 03, 2016 5:17 am
by TheLetterZ
I think I had a similar crash. I was playing on a 2 person server, friend did what you did while I was checking the power graph. I crashed, his game hung until he was forced to restart both his game and the server. He said that he canceled 5 inserters after realizing he didn't have enough green chips to make them, at the same time (as best we can tell) I clicked on a pole to get the power graph.

Code: Select all

   0.015 2016-08-02 19:18:28; Factorio 0.13.13 (build 23721, win64, steam)
   0.015 Operating system: Windows 10 
   0.015 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.015 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.015 Write data path: C:/Users/zman5_000/AppData/Roaming/Factorio
   0.016 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.220 Graphics options: [FullScreen: true] [VSync: false] [UIScale: 100%] [MultiSampling: OFF] [Graphics quality: normal] [Video memory usage: high] [Light scale: 100%] [Screen: 255] [DXT: false]
   0.224 Available display adapters: 1
   0.224  [0]: \\.\DISPLAY1 - AMD Radeon HD 7900 Series {0x8080005, [0,0], 1920x1200, 32bit, 60Hz}
   0.225 Create display on adapter 0. Size 1280x720 at position [310, 222].
   3.879 Initialised OpenGL:[0] AMD Radeon HD 7900 Series; driver: 4.5.13440 Compatibility Profile Context 16.200.1025.0
   4.129 Desktop composition is active.
   4.651 Loading mod core 0.0.0 (data.lua)
   4.733 Loading mod base 0.13.13 (data.lua)
   6.413 Checksum for core: 3471280900
   6.413 Checksum for mod base: 439759882
   8.624 Initial atlas bitmap size is 16384
   8.628 Created atlas bitmap 16384x6373
   8.628 Created atlas bitmap 4096x968
  49.807 Sprites loaded
  49.807 Convert atlas 4096x968 to: trilinear-filtering 
  49.920 Loading sounds...
  54.340 Custom inputs active: 0
  54.559 Factorio initialised
  69.346 Info Router.cpp:558: Router peerID(65535) shutting down.
  69.346 Info Router.cpp:594: Router state -> Disconnected
  69.401 Joining game 73.237.239.46:34197
  69.401 Info WindowsUDPSocket.cpp:61: Opening socket at port (0)
  69.401 Info Router.cpp:594: Router state -> Connecting
  69.407 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(-1) changing state from(Ready) to(Connecting)
  69.504 Connection to address(73.237.239.46:34197) refused(type(ConnectionReply) confirm(true) status(PasswordMissing) gameName(phxatl) description(Password not provided or not matching.) latency(6) remoteApplicationVersion(0.13.13 (build 23721, win64, steam)) remoteActiveMods((base 0.13.13) ) connectionRequestID(36715) gameID(4294967295)).
  69.538 Info MultiplayerManager.cpp:180: NetworkTick(0) quitting multiplayer connection.
  69.538 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(-1) changing state from(Connecting) to(Disconnected)
  69.541 Info Router.cpp:558: Router peerID(65535) shutting down.
  69.542 Info WindowsUDPSocket.cpp:161: Socket closed
  69.542 Info Router.cpp:594: Router state -> Disconnected
  72.446 Info Router.cpp:558: Router peerID(65535) shutting down.
  72.446 Info Router.cpp:594: Router state -> Disconnected
  72.446 Joining game 73.237.239.46:34197
  72.446 Info WindowsUDPSocket.cpp:61: Opening socket at port (0)
  72.446 Info Router.cpp:594: Router state -> Connecting
  72.446 Info MultiplayerManager.cpp:996: networkTick(0) mapTick(-1) changing state from(Ready) to(Connecting)
  72.554 Info Router.cpp:594: Router state -> WaitingForAccept
  72.654 Info Synchronizer.cpp:56: NetworkTick(3930) initialized Synchronizer local peer(1) latency(6).
  72.660 Info Synchronizer.cpp:522: networkTick(3930) adding peer(0) success(true).
  72.660 Info Router.cpp:594: Router state -> Connected
  72.660 Info Router.cpp:835: ConnectionAccepted ownPeerID(1) nextPeerID(2)
  72.660 Info MultiplayerManager.cpp:996: networkTick(3930) mapTick(-1) changing state from(Connecting) to(VerifyingConnection)
  72.670 Info Router.cpp:893: Received onPeerConnected for already connected peer(1)
  72.770 Info MultiplayerManager.cpp:1527: Received peer info for peer(0) username(macchiad).
  72.770 Info MultiplayerManager.cpp:1143: networkTick(3936) mapTick(-1) received stateChanged peerID(0) oldState(Ready) newState(InGame)
  72.770 Info MultiplayerManager.cpp:1527: Received peer info for peer(1) username(The_Letter_Z).
  72.770 Info MultiplayerManager.cpp:1143: networkTick(3936) mapTick(-1) received stateChanged peerID(1) oldState(Ready) newState(Connecting)
  72.770 Info MultiplayerManager.cpp:1527: Received peer info for peer(1) username(The_Letter_Z).
  72.770 Info MultiplayerManager.cpp:1143: networkTick(3936) mapTick(-1) received stateChanged peerID(1) oldState(Connecting) newState(Connecting)
  72.770 Info MultiplayerManager.cpp:1143: networkTick(3936) mapTick(-1) received stateChanged peerID(1) oldState(Connecting) newState(VerifyingConnection)
  72.921 Info MultiplayerManager.cpp:996: networkTick(3943) mapTick(-1) changing state from(VerifyingConnection) to(ConnectedWaitingForMap)
  73.037 Info MultiplayerManager.cpp:1143: networkTick(3949) mapTick(-1) received stateChanged peerID(1) oldState(VerifyingConnection) newState(ConnectedWaitingForMap)
  73.137 Info MultiplayerManager.cpp:1143: networkTick(3955) mapTick(-1) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
  73.354 Info MultiplayerManager.cpp:1143: networkTick(3968) mapTick(-1) received stateChanged peerID(0) oldState(InGameAligning) newState(InGameAligned)
  73.354 Info MultiplayerManager.cpp:1143: networkTick(3968) mapTick(-1) received stateChanged peerID(0) oldState(InGameAligned) newState(InGameSavingMap)
  75.070 Info MultiplayerManager.cpp:1143: networkTick(4067) mapTick(-1) received stateChanged peerID(0) oldState(InGameSavingMap) newState(InGameSendingMap)
  75.070 Downloading file C:/Users\zman5_000\AppData\Roaming\Factorio\temp\mp-download.zip (10111085 B, 20102 blocks)
  75.074 Info MultiplayerManager.cpp:996: networkTick(4067) mapTick(-1) changing state from(ConnectedWaitingForMap) to(ConnectedDownloadingMap)
  75.074 Info NetworkInputHandler.cpp:45: mapTick(3707912) networkTick(4067) initialized NetworkInputHandler local peer(1).
  75.074 Info NetworkInputHandler.cpp:524: expectedMapTick(3707912) adding peer(0).
  75.074 Info Synchronizer.cpp:428: NetworkTick(4067) mapTick(3707912) applying 22 pending tickClosures
  75.074 Info NetworkInputHandler.cpp:608: assigning playerIndex(2) to peer(0)
  75.074 Info NetworkInputHandler.cpp:608: assigning playerIndex(65535) to peer(1)
  75.074 Info MultiplayerManager.cpp:1732: networkTick(4067) mapTick(-1) adding mapAlignTask(SendPlayerJoinGameAlignTask)
  75.074 Info MultiplayerManager.cpp:1516: Received script checksums: level: 900459546
  75.170 Info MultiplayerManager.cpp:1143: networkTick(4073) mapTick(-1) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  83.846 Finished download (8 s, 10 MB, 1.1 MB/s)
  83.954 Info MultiplayerManager.cpp:1218: networkTick(4398) mapTick(-1) map download finished creating scenario
  83.954 Info MultiplayerManager.cpp:996: networkTick(4398) mapTick(-1) changing state from(ConnectedDownloadingMap) to(ConnectedLoadingMap)
  83.970 Info MultiplayerManager.cpp:1143: networkTick(4404) mapTick(-1) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  84.018 Loading map C:/Users\zman5_000\AppData\Roaming\Factorio\temp\mp-download.zip
  84.170 Info MultiplayerManager.cpp:1143: networkTick(4410) mapTick(-1) received stateChanged peerID(0) oldState(InGameSendingMap) newState(InGameWaitingForOthers)
  84.224 Info Scenario.cpp:127: Map version 0.13.13-0
  85.839 Checksum for script C:/Users/zman5_000/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 900459546
  85.854 Info MultiplayerManager.cpp:996: networkTick(4512) mapTick(3707912) changing state from(ConnectedLoadingMap) to(InGameWaitingForOthers)
  85.970 Info MultiplayerManager.cpp:1143: networkTick(4518) mapTick(3707912) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(InGameWaitingForOthers)
  85.970 Info MultiplayerManager.cpp:1342: networkTick(4518) mapTick(3707912) stopping mapAlign
  85.970 Info MultiplayerManager.cpp:1884: performing map align task (SendPlayerJoinGameAlignTask)
  85.971 Info MultiplayerManager.cpp:996: networkTick(4518) mapTick(3707912) changing state from(InGameWaitingForOthers) to(InGame)
  85.971 Info MultiplayerManager.cpp:1706: networkTick(4518) mapTick(3707912) peerID(1) fullStateLog: local state(InGame) local peers(((peerID(0) state(InGameWaitingForOthers) mapAlignTick(-1))
((peerID(1) state(InGameWaitingForOthers) mapAlignTick(-1))
)
  86.070 Info MultiplayerManager.cpp:1143: networkTick(4524) mapTick(3707918) received stateChanged peerID(0) oldState(InGameWaitingForOthers) newState(InGame)
  86.070 Info MultiplayerManager.cpp:1143: networkTick(4524) mapTick(3707918) received stateChanged peerID(1) oldState(InGameWaitingForOthers) newState(InGame)
  86.105 Info NetworkInputHandler.cpp:754: mapTick(3707921) networkTick(4527) connecting to player(The_Letter_Z).
  86.118 Info NetworkInputHandler.cpp:608: assigning playerIndex(1) to peer(1)
  86.118 Info GameActionHandler.cpp:2675: MapTick(3707921) processed PlayerJoinGame peerID(1) playerIndex(1) mode(connect)
 804.578 Error CrashHandler.cpp:109: Exception Code: c0000005, Address: 00007FF646047BAF
 804.579 Error CrashHandler.cpp:119: Exception Context:
rax=000001d494e915d0, rbx=000001d43a3bd7d0, rcx=0000000000000028,
rdx=000000a7c70ff278, rsi=000000a7c70ff308, rdi=000001d43a3bd820,
rip=00007ff646047baf, rsp=000000a7c70ff210, rbp=000001d465025034,
 r8=000000a7c70ff2e8,  r9=000000a7c70ff408, r10=00007ff645ac0000,
r11=0000000000000000, r12=000000a7c70ff408, r13=000000a7c70ff3c8,
r14=0000000000000001, r15=000000a7c70ff408
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-g1mb6a\libraries\stackwalker\stackwalker.cpp (906): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-g1mb6a\src\util\logger.cpp (328): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-g1mb6a\src\util\logger.cpp (382): Logger::logStacktrace
c:\cygwin64\tmp\factorio-g1mb6a\src\util\crashhandler.cpp (84): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-g1mb6a\src\util\crashhandler.cpp (129): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF891EF5E77)
00007FF891EF5E77 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF894DCDA9B)
00007FF894DCDA9B (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF894DB5946)
00007FF894DB5946 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF894DC991D)
00007FF894DC991D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF894D686D3)
00007FF894D686D3 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF894DC8A3A)
00007FF894DC8A3A (ntdll): (filename not available): KiUserExceptionDispatcher
c:\program files (x86)\microsoft visual studio 14.0\vc\include\map (210): std::map<ID<ItemPrototype,unsigned short>,unsigned int,std::less<ID<ItemPrototype,unsigned short> >,std::allocator<std::pair<ID<ItemPrototype,unsigned short> const ,unsigned int> > >::_Try_emplace<ID<ItemPrototype,unsigned short> >
c:\cygwin64\tmp\factorio-g1mb6a\src\craftingqueue.cpp (286): CraftingQueue::transferResult
c:\cygwin64\tmp\factorio-g1mb6a\src\craftingqueue.cpp (126): CraftingQueue::tryFinishCrafting
c:\cygwin64\tmp\factorio-g1mb6a\src\manualcrafter.cpp (150): ManualCrafter::performCrafting
c:\cygwin64\tmp\factorio-g1mb6a\src\entity\character.cpp (462): Character::update
c:\cygwin64\tmp\factorio-g1mb6a\src\surface\chunk.cpp (479): Chunk::update
c:\cygwin64\tmp\factorio-g1mb6a\src\surface\surface.cpp (857): Surface::update
c:\cygwin64\tmp\factorio-g1mb6a\src\map\map.cpp (1124): Map::update
c:\cygwin64\tmp\factorio-g1mb6a\src\game.cpp (141): Game::update
c:\cygwin64\tmp\factorio-g1mb6a\src\scenario\scenario.cpp (780): Scenario::update
c:\cygwin64\tmp\factorio-g1mb6a\src\mainloop.cpp (630): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-g1mb6a\src\mainloop.cpp (550): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-g1mb6a\src\util\workerthread.cpp (34): WorkerThread::loop
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF6464CBA23)
00007FF6464CBA23 (Factorio): (filename not available): boost::thread::start_thread_noexcept
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF893188364)
00007FF893188364 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF894D85E91)
00007FF894D85E91 (ntdll): (filename not available): RtlUserThreadStart
 808.872 Error CrashHandler.cpp:85: Map tick at moment of crash: 3749436
 808.872 Error Util.cpp:77: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
here is the save https://www.dropbox.com/s/ny3919e6rv608 ... 2.zip?dl=0
I have no mods and I'm running 13.13

Re: [0.13.13] Crash on cancelling crafting

Posted: Wed Aug 03, 2016 7:06 am
by Loewchen
I assume duplicate of: viewtopic.php?f=30&t=29910, if it still occurs in 13.14 let us know.