[0.16.36] Crash: "FlyingRobot::useEnergyPerTick"

Bugs that are actually features.
johnmegacycle
Inserter
Inserter
Posts: 22
Joined: Tue Jul 26, 2016 1:35 am
Contact:

[0.16.36] Crash: "FlyingRobot::useEnergyPerTick"

Post by johnmegacycle »

Good day,
This is my factorio-current.log that pops up, crashing my game. I don't take any specific action and the save has a few hundred hours into it, so I'm unsure what causes the crash. Thanks in advance for your assistance.
I forgot to mention, that this is vanilla.

Code: Select all

   0.000 2018-06-06 17:11:10; Factorio 0.16.36 (build 36253, win64, steam)
   0.001 Operating system: Windows 10 (version 1709) 
   0.001 Program arguments: "E:\SteamLibrary\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.001 Read data path: E:/SteamLibrary/steamapps/common/Factorio/data
   0.001 Write data path: C:/Users/Mega/AppData/Roaming/Factorio [296321/475513MB]
   0.001 Binaries path: E:/SteamLibrary/steamapps/common/Factorio/bin
   0.008 System info: [CPU: AMD Ryzen 7 1700X Eight-Core Processor         , 16 cores, RAM: 3873/16331 MB, page: 4992/19331 MB, virtual: 240/134217727 MB, extended virtual: 0 MB]
   0.009 Display options: [FullScreen: 0] [VSync: 0] [UIScale: system (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.010 Available display adapters: 2
   0.010  [0]: \\.\DISPLAY1 - NVIDIA GeForce GTX 1080 {0x05, [0,0], 3840x2160, 32bit, 29Hz}
   0.010  [1]: \\.\DISPLAY2 - NVIDIA GeForce GTX 1080 {0x01, [3840,0], 3840x2160, 32bit, 60Hz}
   0.010 Create display on adapter 0. Size 1280x720 at position [1270, 702].
   0.123 Initialised Direct3D:[0] NVIDIA GeForce GTX 1080; driver: nvldumdx.dll 24.21.13.9731
   0.131   Video memory size (dedicated video/dedicated system/shared system/available): 8079/0/8165/4092 MB
   0.176 DSound: Starting _dsound_update thread
   0.177 DSound: Enter _dsound_update; tid=3772
   0.177 Device reset internal.
   0.181 Desktop composition is active.
   0.181 Graphics settings preset: extreme
   0.182 Graphics options: [Graphics quality: normal] [Video memory usage: medium] [Light scale: 100%] [DXT: false] [Shader: 1]
   0.182                   [Parallel sprite loading: 1] [Max texture size: 0/8192] [Bmp cache: 0] [Sprite slicing: 1] [Low quality rotation: 0]
   0.247 Error GlobalModSettings.cpp:107: Failed to migrate mod settings file: Error when opening C:\Users\Mega\AppData\Roaming\Factorio\mods\mod-settings.json for reading: No such file or directory
   0.248 Loading mod core 0.0.0 (data.lua)
   0.270 Loading mod base 0.16.36 (data.lua)
   0.459 Loading mod base 0.16.36 (data-updates.lua)
   0.523 Checksum for core: 1316978547
   0.523 Checksum of base: 4140083139
   0.644 Loading sounds...
   0.713 Info PlayerData.cpp:67: Local player-data.json unavailable
   0.713 Info PlayerData.cpp:70: Cloud player-data.json available, timestamp 1525492775
   0.805 Loaded shader file E:/SteamLibrary/steamapps/common/Factorio/data/core/graphics/shaders/game.cso
   0.805 Loaded shader file E:/SteamLibrary/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.cso
   0.805 Loaded shader file E:/SteamLibrary/steamapps/common/Factorio/data/core/graphics/shaders/alpha-mask.cso
   0.821 Initial atlas bitmap size is 16384
   0.823 Created atlas bitmap 16384x1514 [none]
   0.927 Created atlas bitmap 16384x464 [shadow]
   0.944 Created atlas bitmap 8192x1496 [mipmap]
   0.969 Created atlas bitmap 8192x800 [mipmap, smoke]
   0.988 Created atlas bitmap 8192x2376 [linear-minification, mipmap, terrain]
   1.043 Created atlas bitmap 8192x1036 [no-crop, trilinear-filtering, icon, light]
   1.065 Created atlas bitmap 8192x238 [alpha-mask]
  12.610 Sprites loaded
  12.610 Convert atlas 8192x1496 to: mipmap 
  12.657 Convert atlas 8192x800 to: mipmap 
  12.680 Convert atlas 8192x2376 to: min-linear 
  12.741 Convert atlas 8192x1036 to: trilinear-filtering 
  12.770 Convert atlas 8192x238 to: alpha-mask
  12.816 Custom inputs active: 0
  12.867 Factorio initialised
  63.602 Device reset internal.
  65.800 Loading map C:\Users\Mega\AppData\Roaming\Factorio\saves\LiveStream.zip: 66940783 bytes.
  65.951 Loading Level.dat: 155145021 bytes.
  65.958 Info Scenario.cpp:136: Map version 0.16.36-2
  69.829 Loading script.dat: 308 bytes.
  69.832 Checksum for script C:/Users/Mega/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 55817070
 155.613 Info AppManagerStates.cpp:1642: Saving finished
 177.259 Error CrashHandler.cpp:371: Exception Code: c0000005, Address: 0x00007ff730ddf3aa
ModuleBase: 0x00007ff730c60000, ImageSize: 013cb000, RelativeAddress: 0017f3aa
 177.259 Error CrashHandler.cpp:377: Access Violation: Read at address FFFFFFFFFFFFFFFF
 177.260 Error CrashHandler.cpp:391: Exception Context:
rax=800001d85fd7d1b0, rbx=000001d8c09abaa0, rcx=000001d8c09abaa0,
rdx=000001d8c09abb58, rsi=0000000000000000, rdi=000001d8c09abb58,
rip=00007ff730ddf3aa, rsp=0000001b9b3aef88, rbp=000001d8c09abaa0,
 r8=0000000000000000,  r9=000001d8b6054160, r10=000001d85fdac0a8,
r11=0000001b9b3aefb0, r12=0000000000000001, r13=0000000000000000,
r14=0000000007103c09, r15=0000000000000000
 177.260 Crashed in E:\SteamLibrary\steamapps\common\Factorio\bin\x64\Factorio.exe (0x00007ff730c60000 - 0x00007ff73202b000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-8fzf8a\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-build-8fzf8a\src\util\logger.cpp (408): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-build-8fzf8a\src\util\logger.cpp (510): Logger::logStacktrace
c:\cygwin64\tmp\factorio-build-8fzf8a\src\util\crashhandler.cpp (169): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-build-8fzf8a\src\util\crashhandler.cpp (418): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB661F91A0)
00007FFB661F91A0 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB69948988)
00007FFB69948988 (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB699313D6)
00007FFB699313D6 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB699450BD)
00007FFB699450BD (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB698BD278)
00007FFB698BD278 (ntdll): (filename not available): RtlWalkFrameChain
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB69943FEE)
00007FFB69943FEE (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-build-8fzf8a\src\entity\flyingrobot.cpp (109): FlyingRobot::useEnergyPerTick
c:\cygwin64\tmp\factorio-build-8fzf8a\src\entity\robotwithlogisticinterface.cpp (134): RobotWithLogisticInterface::update
c:\cygwin64\tmp\factorio-build-8fzf8a\src\entity\logisticrobot.cpp (139): LogisticRobot::update
c:\cygwin64\tmp\factorio-build-8fzf8a\src\surface\chunk.cpp (575): Chunk::updateActiveEntities
c:\cygwin64\tmp\factorio-build-8fzf8a\src\surface\chunk.cpp (624): Chunk::updateEntities
c:\cygwin64\tmp\factorio-build-8fzf8a\src\surface\surface.cpp (1191): Surface::update
c:\cygwin64\tmp\factorio-build-8fzf8a\src\map\map.cpp (1302): Map::update
c:\cygwin64\tmp\factorio-build-8fzf8a\src\game.cpp (163): Game::update
c:\cygwin64\tmp\factorio-build-8fzf8a\src\scenario\scenario.cpp (865): Scenario::update
c:\cygwin64\tmp\factorio-build-8fzf8a\src\mainloop.cpp (1001): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-build-8fzf8a\src\mainloop.cpp (868): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-build-8fzf8a\src\util\workerthread.cpp (36): WorkerThread::loop
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.12.25827\include\thr\xthread (232): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl RazerChromaWindowsSDKImpl::*)(void) __ptr64,RazerChromaWindowsSDKImpl * __ptr64>,std::default_delete<std::tuple<void (__cdecl RazerChromaWindowsSDKImpl::*)(void) __ptr64,RazerChromaWindowsSDKImpl * __ptr64> > > >::_Go
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.12.25827\include\thr\xthread (211): std::_Pad::_Call_func
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB68DD1FE4)
00007FFB68DD1FE4 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFB6990F061)
00007FFB6990F061 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
 178.440 Error CrashHandler.cpp:174: Map tick at moment of crash: 118504457
 178.440 Error Util.cpp:67: 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.
 181.660 Uploading log file
 181.668 Error CrashHandler.cpp:225: Heap validation: success.
 181.669 Creating crash dump.
 181.825 CrashDump success
Loewchen
Global Moderator
Global Moderator
Posts: 9253
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [16.36] Crash: "FlyingRobot::useEnergyPerTick"

Post by Loewchen »

Post the dump please.
johnmegacycle
Inserter
Inserter
Posts: 22
Joined: Tue Jul 26, 2016 1:35 am
Contact:

Re: [16.36] Crash: "FlyingRobot::useEnergyPerTick"

Post by johnmegacycle »

Loewchen wrote:Post the dump please.
I did. It's a huge blob of text right under what I said.
Let me know if there is a specific file you need.
Loewchen
Global Moderator
Global Moderator
Posts: 9253
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [16.36] Crash: "FlyingRobot::useEnergyPerTick"

Post by Loewchen »

johnmegacycle wrote:Let me know if there is a specific file you need.
Yes, the dump file, begins with factorio-dump ends with .dmp. It's in the same directory as the log file, you know, where you got the huge blob of text from... :P
johnmegacycle
Inserter
Inserter
Posts: 22
Joined: Tue Jul 26, 2016 1:35 am
Contact:

Re: [0.16.36] Crash: "FlyingRobot::useEnergyPerTick"

Post by johnmegacycle »

Ah, okay sorry. 'Dump file' is what I thought I was brought to, since it can be understood as 'taking a memory dump'.
I didn't know you were looking for a specific file that was literally called dump. ^_^
Attached.
Attachments
factorio-dump-previous.dmp
(637.71 KiB) Downloaded 112 times
User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: [0.16.36] Crash: "FlyingRobot::useEnergyPerTick"

Post by TruePikachu »

Just looking at the register dump in the log file, I suspect faulty memory; note the high bit of RAX is set:

Code: Select all

rax=800001d85fd7d1b0, rbx=000001d8c09abaa0, rcx=000001d8c09abaa0,
rdx=000001d8c09abb58, rsi=0000000000000000, rdi=000001d8c09abb58,
rip=00007ff730ddf3aa, rsp=0000001b9b3aef88, rbp=000001d8c09abaa0,
 r8=0000000000000000,  r9=000001d8b6054160, r10=000001d85fdac0a8,
r11=0000001b9b3aefb0, r12=0000000000000001, r13=0000000000000000,
r14=0000000007103c09, r15=0000000000000000
The crash was caused by a deref of RAX:

Code: Select all

FOLLOWUP_IP: 
factorio!FlyingRobot::useEnergyPerTick+a [c:\cygwin64\tmp\factorio-build-8fzf8a\src\entity\flyingrobot.cpp @ 109]
00007ff7`30ddf3aa f20f108808050000 movsd   xmm1,mmword ptr [rax+508h]
I'd be tempted to 1/0 this.

I would suggest for OP to run a memory test (e.g. http://memtest.org/ )
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.16.36] Crash: "FlyingRobot::useEnergyPerTick"

Post by kovarex »

It would be also good to know, whether this happened only once, or regularly.
johnmegacycle
Inserter
Inserter
Posts: 22
Joined: Tue Jul 26, 2016 1:35 am
Contact:

Re: [0.16.36] Crash: "FlyingRobot::useEnergyPerTick"

Post by johnmegacycle »

Sounds like RAM is the issue for sure (See Attached).
Thanks for your help, all. Feel free to chalk this one up as 'User, not game, issue'.
Have a great rest of your week.
Attachments
IMG_20180607_061005039.jpg
IMG_20180607_061005039.jpg (5.11 MiB) Viewed 2976 times
Post Reply

Return to “Not a bug”