Page 1 of 1

[0.15.1] Crash in ProductionHelper::canGiveProducts (375)

Posted: Tue Apr 25, 2017 12:38 am
by ElecNinja
I'm using my mod https://mods.factorio.com/mods/ElecNinj ... barrelling and whenever I try to get it to run Factorio crashes with a filename not found error.

However, I'm looking through my code and all the filenames should be correct for my mod

Code: Select all

   
   0.001 2017-04-24 19:31:23; Factorio 0.15.1 (build 29050, win64, steam)
   0.002 Operating system: Windows 10 (version 1607) 
   0.002 Program arguments: "E:\_Game Libraries\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" "--wait-to-close" "14440" 
   0.002 Read data path: E:/_Game Libraries/Steam/steamapps/common/Factorio/data
   0.002 Write data path: C:/Users/KPGM/AppData/Roaming/Factorio
   0.002 Binaries path: E:/_Game Libraries/Steam/steamapps/common/Factorio/bin
   0.033 System info: [CPU: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz, 4 cores, RAM: 16321MB]
   0.033 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 0]
   0.036 Available display adapters: 2
   0.036  [0]: \\.\DISPLAY1 - AMD Radeon HD 7800 Series {0x80005, [0,0], 1920x1080, 32bit, 60Hz}
   0.036  [1]: \\.\DISPLAY2 - AMD Radeon HD 7800 Series {0x80001, [1920,0], 1920x1080, 32bit, 60Hz}
   0.036 Create display on adapter 0. Size 1280x720 at position [310, 162].
   0.560 Initialised OpenGL:[0] AMD Radeon HD 7800 Series; driver: 4.5.13467 Compatibility Profile Context 21.19.413.0
   0.727 DSound: Starting _dsound_update thread
   0.727 Desktop composition is active.
   0.728 Graphics options: [Graphics quality: high] [Video memory usage: high] [Light scale: 100%] [DXT: false]
   0.759 DSound: Enter _dsound_update; tid=17940
   0.865 Loading mod core 0.0.0 (data.lua)
   0.894 Loading mod base 0.15.1 (data.lua)
   1.068 Loading mod rso-mod 3.0.0 (data.lua)
   1.190 Loading mod add-loader 0.0.8 (data.lua)
   1.376 Loading mod Aircraft 1.3.0 (data.lua)
   1.509 Loading mod auto-barrelling 1.0.3 (data.lua)
   1.626 Loading mod bullet-trails 0.2.1 (data.lua)
   1.779 Loading mod crafting_combinator 0.7.0 (data.lua)
   1.910 Loading mod manual-inventory-sort 1.6.0 (data.lua)
   2.051 Loading mod Miner_Planner 0.9.5 (data.lua)
   2.234 Loading mod base 0.15.1 (data-updates.lua)
   2.429 Loading mod rso-mod 3.0.0 (data-updates.lua)
   2.598 Loading mod Aircraft 1.3.0 (data-updates.lua)
   2.778 Loading mod auto-barrelling 1.0.3 (data-updates.lua)
   2.912 Loading mod bullet-trails 0.2.1 (data-updates.lua)
   3.081 Loading mod crafting_combinator 0.7.0 (data-updates.lua)
   3.221 Loading mod manual-inventory-sort 1.6.0 (data-updates.lua)
   3.331 Loading mod add-loader-gfx 0.15.0 (data-updates.lua)
   3.436 Loading mod crafting_combinator 0.7.0 (data-final-fixes.lua)
   3.441 Script data-final-fixes.lua:78: Icon not found for: steam-engine
   3.441 Script data-final-fixes.lua:78: Icon not found for: iron-gear-wheel
   3.441 Script data-final-fixes.lua:78: Icon not found for: electronic-circuit
   3.441 Script data-final-fixes.lua:78: Icon not found for: electric-mining-drill
   3.441 Script data-final-fixes.lua:78: Icon not found for: burner-mining-drill
   3.441 Script data-final-fixes.lua:78: Icon not found for: pipe
   3.441 Script data-final-fixes.lua:78: Icon not found for: submachine-gun
   3.441 Script data-final-fixes.lua:78: Icon not found for: cannon-shell
   3.441 Script data-final-fixes.lua:78: Icon not found for: explosive-cannon-shell
   3.441 Script data-final-fixes.lua:78: Icon not found for: steel-plate
   3.441 Script data-final-fixes.lua:78: Icon not found for: express-transport-belt
   3.441 Script data-final-fixes.lua:78: Icon not found for: assembling-machine-2
   3.441 Script data-final-fixes.lua:78: Icon not found for: tank
   3.441 Script data-final-fixes.lua:78: Icon not found for: advanced-circuit
   3.441 Script data-final-fixes.lua:78: Icon not found for: processing-unit
   3.441 Script data-final-fixes.lua:78: Icon not found for: explosives
   3.441 Script data-final-fixes.lua:78: Icon not found for: battery
   3.441 Script data-final-fixes.lua:78: Icon not found for: low-density-structure
   3.547 Loading mod longer-belts-redux 0.15.0 (data-final-fixes.lua)
   3.651 Checksum for core: 530912544
   3.651 Checksum of base: 2731413614
   3.651 Checksum of rso-mod: 1351416498
   3.651 Checksum of add-loader: 2182132170
   3.651 Checksum of Aircraft: 3079211046
   3.651 Checksum of auto-barrelling: 1013184166
   3.652 Checksum of bullet-trails: 3097468026
   3.652 Checksum of crafting_combinator: 56829819
   3.652 Checksum of elecninja-fixes: 0
   3.652 Checksum of ItemCount: 0
   3.652 Checksum of longer-belts-redux: 883706356
   3.652 Checksum of manual-inventory-sort: 1446376508
   3.652 Checksum of Miner_Planner: 3031174388
   3.652 Checksum of add-loader-gfx: 1404568432
   3.926 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1493079009
   3.926 Info PlayerData.cpp:60: Cloud player-data.json available, timestamp 1493078997
   4.149 Loaded shader file E:/_Game Libraries/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.glsl
   4.150 Loaded shader file E:/_Game Libraries/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.glsl
   4.174 Initial atlas bitmap size is 16384
   4.201 Created atlas bitmap 16384x16371
   4.202 Created atlas bitmap 16384x1999
   4.203 Created atlas bitmap 4096x4008
   4.203 Created atlas bitmap 4096x3644
  62.187 Sprites loaded
  62.187 Convert atlas 4096x4008 to: trilinear-filtering 
  62.330 Convert atlas 4096x3644 to: mipmap 
  62.516 Loading sounds...
  65.819 Custom inputs active: 8
  65.907 Factorio initialised
  70.646 Loading map C:\Users\KPGM\AppData\Roaming\Factorio\saves\Testing.zip: 2145846 bytes.
  70.740 Loading Level.dat: 3143980 bytes.
  70.744 Info Scenario.cpp:133: Map version 0.15.1-0
  70.851 Loading script.dat: 2172 bytes.
  70.853 Checksum for script C:/Users/KPGM/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 1622069129
  70.864 Checksum for script __rso-mod__/control.lua: 3009006274
  70.865 Checksum for script __add-loader__/control.lua: 1462944630
  70.870 Checksum for script __crafting_combinator__/control.lua: 3988449325
  70.872 Checksum for script __elecninja-fixes__/control.lua: 3426275251
  70.872 Checksum for script __ItemCount__/control.lua: 697040298
  70.875 Checksum for script __manual-inventory-sort__/control.lua: 1813841891
  70.877 Checksum for script __Miner_Planner__/control.lua: 3698053190
  73.946 Error CrashHandler.cpp:141: Exception Code: c0000005, Address: 0x00007ff7e018f089
ModuleBase: 0x00007ff7dfdb0000, ImageSize: 0117f000, RelativeAddress: 003df089
  73.946 Error CrashHandler.cpp:151: Exception Context:
rax=000001980d2909e0, rbx=0000000000000000, rcx=8807c7001c3fdd91,
rdx=0000000000000000, rsi=0000000000000001, rdi=000001980c61cac8,
rip=00007ff7e018f089, rsp=0000001c994ff1a0, rbp=0000000000000001,
 r8=00000198090805f0,  r9=0000000000000018, r10=000001987f8b2b38,
r11=0000000000000d0c, r12=0000019881ebd1f8, r13=0000000000000000,
r14=0000000000000001, r15=0000000000000000
  73.946 Crashed in E:\_Game Libraries\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe (0x00007ff7dfdb0000 - 0x00007ff7e0f2f000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-86tci8\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-86tci8\src\util\logger.cpp (354): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-86tci8\src\util\logger.cpp (408): Logger::logStacktrace
c:\cygwin64\tmp\factorio-86tci8\src\util\crashhandler.cpp (105): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-86tci8\src\util\crashhandler.cpp (177): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2B394F77)
00007FFC2B394F77 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EC2ED1B)
00007FFC2EC2ED1B (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EC16BD6)
00007FFC2EC16BD6 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EC2AB9D)
00007FFC2EC2AB9D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EBC9913)
00007FFC2EBC9913 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EC29CBA)
00007FFC2EC29CBA (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-86tci8\src\material\productionhelper.cpp (375): ProductionHelper::canGiveProducts
c:\cygwin64\tmp\factorio-86tci8\src\entity\furnace.cpp (144): Furnace::canInsert
c:\cygwin64\tmp\factorio-86tci8\src\entity\inserter.cpp (696): Inserter::getPickupTarget
c:\cygwin64\tmp\factorio-86tci8\src\entity\inserter.cpp (860): Inserter::update
c:\cygwin64\tmp\factorio-86tci8\src\surface\chunk.cpp (563): Chunk::updateEntities
c:\cygwin64\tmp\factorio-86tci8\src\surface\surface.cpp (968): Surface::update
c:\cygwin64\tmp\factorio-86tci8\src\map\map.cpp (1218): Map::update
c:\cygwin64\tmp\factorio-86tci8\src\game.cpp (157): Game::update
c:\cygwin64\tmp\factorio-86tci8\src\scenario\scenario.cpp (765): Scenario::update
c:\cygwin64\tmp\factorio-86tci8\src\mainloop.cpp (819): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-86tci8\src\mainloop.cpp (688): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-86tci8\src\util\workerthread.cpp (35): WorkerThread::loop
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (247): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl WorkerThread::*)(void) __ptr64,WorkerThread * __ptr64>,std::default_delete<std::tuple<void (__cdecl WorkerThread::*)(void) __ptr64,WorkerThread * __ptr64> > > >::_Run
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (210): 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: 00007FFC2C658364)
00007FFC2C658364 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EBE70D1)
00007FFC2EBE70D1 (ntdll): (filename not available): RtlUserThreadStart
  75.379 Error CrashHandler.cpp:106: Map tick at moment of crash: 36898
  75.379 Error Util.cpp:76: 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.

Re: [0.15.1] Filename not available when trying to run mod

Posted: Tue Apr 25, 2017 12:47 am
by daniel34
You have several other mods installed, are you sure that your mod is causing the crash? Can you reproduce it with only your mod?

If not then please upload the complete mod folder.

Re: [0.15.1] Filename not available when trying to run mod

Posted: Tue Apr 25, 2017 1:52 am
by ElecNinja
While the crash log includes the other mods, the crash occurs with only my mod running.
Here's a crash dump with just my mod loaded in.

Code: Select all

   0.001 2017-04-24 20:50:19; Factorio 0.15.1 (build 29050, win64, steam)
   0.001 Operating system: Windows 10 (version 1607) 
   0.001 Program arguments: "E:\_Game Libraries\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.001 Read data path: E:/_Game Libraries/Steam/steamapps/common/Factorio/data
   0.001 Write data path: C:/Users/KPGM/AppData/Roaming/Factorio
   0.001 Binaries path: E:/_Game Libraries/Steam/steamapps/common/Factorio/bin
   0.008 System info: [CPU: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz, 4 cores, RAM: 16321MB]
   0.008 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 0]
   0.011 Available display adapters: 2
   0.011  [0]: \\.\DISPLAY1 - AMD Radeon HD 7800 Series {0x80005, [0,0], 1920x1080, 32bit, 60Hz}
   0.011  [1]: \\.\DISPLAY2 - AMD Radeon HD 7800 Series {0x80001, [1920,0], 1920x1080, 32bit, 60Hz}
   0.011 Create display on adapter 0. Size 1280x720 at position [310, 162].
   0.431 Initialised OpenGL:[0] AMD Radeon HD 7800 Series; driver: 4.5.13467 Compatibility Profile Context 21.19.413.0
   0.465 DSound: Starting _dsound_update thread
   0.466 DSound: Enter _dsound_update; tid=17228
   0.466 Desktop composition is active.
   0.466 Graphics options: [Graphics quality: high] [Video memory usage: high] [Light scale: 100%] [DXT: false]
   0.560 Loading mod core 0.0.0 (data.lua)
   0.568 Loading mod base 0.15.1 (data.lua)
   0.682 Loading mod auto-barrelling 1.0.3 (data.lua)
   0.760 Loading mod base 0.15.1 (data-updates.lua)
   0.832 Loading mod auto-barrelling 1.0.3 (data-updates.lua)
   0.902 Checksum for core: 530912544
   0.902 Checksum of base: 2731413614
   0.902 Checksum of auto-barrelling: 2662617125
   1.046 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1493082549
   1.046 Info PlayerData.cpp:60: Cloud player-data.json available, timestamp 1493078997
   1.183 Loaded shader file E:/_Game Libraries/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.glsl
   1.184 Loaded shader file E:/_Game Libraries/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.glsl
   1.200 Initial atlas bitmap size is 16384
   1.228 Created atlas bitmap 16384x16381
   1.229 Created atlas bitmap 16384x1765
   1.230 Created atlas bitmap 4096x3980
   1.230 Created atlas bitmap 4096x3648
  28.048 Sprites loaded
  28.048 Convert atlas 4096x3980 to: trilinear-filtering 
  28.145 Convert atlas 4096x3648 to: mipmap 
  28.259 Loading sounds...
  30.265 Custom inputs active: 0
  30.328 Factorio initialised
  58.563 Loading map C:\Users\KPGM\AppData\Roaming\Factorio\saves\Testing.zip: 3811803 bytes.
  58.665 Loading Level.dat: 6311676 bytes.
  58.668 Info Scenario.cpp:133: Map version 0.15.1-0
  58.864 Loading script.dat: 6719 bytes.
  58.865 Checksum for script C:/Users/KPGM/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 1622069129
  76.113 Error CrashHandler.cpp:141: Exception Code: c0000005, Address: 0x00007ff7e018f089
ModuleBase: 0x00007ff7dfdb0000, ImageSize: 0117f000, RelativeAddress: 003df089
  76.113 Error CrashHandler.cpp:151: Exception Context:
rax=000001e59c17aaf0, rbx=0000000000000000, rcx=8c08141e54c8b789,
rdx=0000000000000000, rsi=0000000000000001, rdi=000001e59a977318,
rip=00007ff7e018f089, rsp=00000080b30ff230, rbp=0000000000000001,
 r8=000001e52a089370,  r9=0000000000000018, r10=000001e6045fd128,
r11=0000000000000d0c, r12=000001e5a1dce1f8, r13=0000000000000000,
r14=0000000000000001, r15=0000000000000000
  76.113 Crashed in E:\_Game Libraries\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe (0x00007ff7dfdb0000 - 0x00007ff7e0f2f000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-86tci8\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-86tci8\src\util\logger.cpp (354): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-86tci8\src\util\logger.cpp (408): Logger::logStacktrace
c:\cygwin64\tmp\factorio-86tci8\src\util\crashhandler.cpp (105): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-86tci8\src\util\crashhandler.cpp (177): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2B394F77)
00007FFC2B394F77 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EC2ED1B)
00007FFC2EC2ED1B (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EC16BD6)
00007FFC2EC16BD6 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EC2AB9D)
00007FFC2EC2AB9D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EBC9913)
00007FFC2EBC9913 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EC29CBA)
00007FFC2EC29CBA (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-86tci8\src\material\productionhelper.cpp (375): ProductionHelper::canGiveProducts
c:\cygwin64\tmp\factorio-86tci8\src\entity\furnace.cpp (144): Furnace::canInsert
c:\cygwin64\tmp\factorio-86tci8\src\entity\inserter.cpp (696): Inserter::getPickupTarget
c:\cygwin64\tmp\factorio-86tci8\src\entity\inserter.cpp (860): Inserter::update
c:\cygwin64\tmp\factorio-86tci8\src\surface\chunk.cpp (563): Chunk::updateEntities
c:\cygwin64\tmp\factorio-86tci8\src\surface\surface.cpp (968): Surface::update
c:\cygwin64\tmp\factorio-86tci8\src\map\map.cpp (1218): Map::update
c:\cygwin64\tmp\factorio-86tci8\src\game.cpp (157): Game::update
c:\cygwin64\tmp\factorio-86tci8\src\scenario\scenario.cpp (765): Scenario::update
c:\cygwin64\tmp\factorio-86tci8\src\mainloop.cpp (819): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-86tci8\src\mainloop.cpp (688): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-86tci8\src\util\workerthread.cpp (35): WorkerThread::loop
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (247): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl WorkerThread::*)(void) __ptr64,WorkerThread * __ptr64>,std::default_delete<std::tuple<void (__cdecl WorkerThread::*)(void) __ptr64,WorkerThread * __ptr64> > > >::_Run
c:\program files (x86)\microsoft visual studio 14.0\vc\include\thr\xthread (210): 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: 00007FFC2C658364)
00007FFC2C658364 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC2EBE70D1)
00007FFC2EBE70D1 (ntdll): (filename not available): RtlUserThreadStart
  77.389 Error CrashHandler.cpp:106: Map tick at moment of crash: 126110
  77.389 Error Util.cpp:76: 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.
Sorry for the confusion.

Re: [0.15.1] Crash in ProductionHelper::canGiveProducts (375)

Posted: Tue Apr 25, 2017 9:56 am
by HanziQ
The "filename not available" message is not the error, the game crashed in productionhelper.cpp (375): ProductionHelper::canGiveProducts

Re: [0.15.1] Crash in ProductionHelper::canGiveProducts (375)

Posted: Tue Apr 25, 2017 2:57 pm
by Rseding91
Please upload all of the mods you're using and a save file that can reproduce the crash.

Re: [0.15.1] Crash in ProductionHelper::canGiveProducts (375)

Posted: Tue Apr 25, 2017 3:04 pm
by GodricSeer
Note that I reported a bug last night that appears in the same method, albeit 15 lines earlier. Not sure if they are related or not: viewtopic.php?f=7&t=44707

Re: [0.15.1] Crash in ProductionHelper::canGiveProducts (375)

Posted: Tue Apr 25, 2017 4:47 pm
by Rseding91
GodricSeer wrote:Note that I reported a bug last night that appears in the same method, albeit 15 lines earlier. Not sure if they are related or not: viewtopic.php?f=7&t=44707
Indeed. I've fixed the problem for the next version.