[0.17.5] Crash when loading scenario created with 0.17.4

This subforum contains all the issues which we already resolved.
Post Reply
foamyguy
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Mar 05, 2019 1:45 am
Contact:

[0.17.5] Crash when loading scenario created with 0.17.4

Post by foamyguy »

I started working on this scenario using 0.17.4 Map Editor. I changed some of the tiles (water to earth and vice versa), added some ores, added a flag for the player, and created several entities (roboports, belts, inserters, miners, solar pannels, accumulators, radar, logistics chests, and a few others). I added and I think deleted a few of the 'lua' objects, though I'm not sure how they work so I can't say for certain I deleted them properly. I also edited the control.lua file, adding these lines:

Code: Select all

  player.force.technologies["turrets"].researched = true
  player.force.technologies["military"].researched = true
  player.force.technologies["logistics"].researched = true
  player.force.technologies["worker-robots-speed-1"].researched = true
to enable a few research technologies by default. During the course of creating it, I used 'Save and Play' several times.

After updating my client to 0.17.5 the game crashes when I attempt to load the scenario in the map editor.

I've attempted to re-create the problem by creating a blank new scenario in 0.17.4 and then loading it in 0.17.5. So far I've been unsuccessful in recreating the issue, every time my new scenario is loading fine in 0.17.5, only my actual scenario has this problem. I've tried making a few of the same changes I did in my real scenario: adding ores, lua objects, even edited the control.lua file with the same lines and it continues to load properly in 0.17.5.

I attempted to replace my scenarios control.lua file with a default control.lua file from a new scenario created with 0.17.5 client. After the change the game still crashes when I load my scenario in the map editor.

Hopefully reporting this information can help get it fixed. In the meantime I'm curious if there are any other ideas of ways to try to "fix" my old save so that I can get it loaded in the 0.17.5 client.

factorio-current.log output after the crash:

Code: Select all

   0.008 2019-03-04 19:37:03; Factorio 0.17.5 (build 43269, win64, steam)
   0.008 Operating system: Windows 7 Service Pack 1
   0.008 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.008 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.008 Write data path: C:/Users/o_0/AppData/Roaming/Factorio [33870/238472MB]
   0.008 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.021 System info: [CPU: AMD FX(tm)-8320 Eight-Core Processor           , 8 cores, RAM: 8170/16285 MB, page: 8886/32569 MB, virtual: 175/8388607 MB, extended virtual: 0 MB]
   0.021 Display options: [FullScreen: 0] [VSync: 0] [UIScale: custom (125.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.035 Available displays: 1
   0.035  [0]: \\.\DISPLAY1 - NVIDIA GeForce GTX 1050 Ti {0x05, [0,0], 1920x1080, 32bit, 60Hz}
   0.069 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: 0; d3dcompiler_47.dll
   0.116 Initialised Direct3D[0]: NVIDIA GeForce GTX 1050 Ti; driver: nvd3dumx.dll 23.21.13.8871
   0.116   D3D Feature Level: 11.0, DXGI 1.2+
   0.116   BGR 565 Supported: No
   0.116   MaximumFrameLatency: 3, GPUThreadPriority: 0
   0.170 Desktop composition is active.
   0.170 Graphics settings preset: very-high
   0.170   Dedicated video memory size 4008 MB
   0.170 Graphics options: [Graphics quality: high] [Video memory usage: all] [Light scale: 25%] [DXT: high-quality]
   0.170                   [Max load threads: 32] [Max texture size: 0] [Tex.Stream.: 0] [Low quality rotation: 0]
   0.194 DSound: Starting _dsound_update thread
   0.194 DSound: Enter _dsound_update; tid=4148
   0.308 Error ModManager.cpp:789: Mod package read error. File C:/Users/o_0/AppData/Roaming/Factorio/mods/server_mods.zip/info.json not found
   0.317 Loading mod core 0.0.0 (data.lua)
   0.421 Loading mod base 0.17.5 (data.lua)
   0.711 Loading mod base 0.17.5 (data-updates.lua)
   0.836 Checksum for core: 3928040144
   0.836 Checksum of base: 3918046970
   1.500 Loading sounds...
   1.572 Info PlayerData.cpp:69: Local player-data.json unavailable
   1.572 Info PlayerData.cpp:72: Cloud player-data.json available, timestamp 1551749797
   1.720 Crop bitmaps.
   2.692 Parallel Sprite Loader initialized (threads: 7)
  18.229 Initial atlas bitmap size is 16384
  18.273 Created atlas bitmap 16384x16384 [none]
  18.283 Created atlas bitmap 16384x11296 [none]
  18.285 Created atlas bitmap 16384x2116 [decal]
  18.289 Created atlas bitmap 16384x3808 [low-object]
  18.291 Created atlas bitmap 16384x1888 [mipmap, linear-minification, linear-magnification, linear-mip-level, no-crop, no-scale]
  18.295 Created atlas bitmap 16384x6880 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
  18.296 Created atlas bitmap 16384x480 [smoke, mipmap, linear-minification, linear-magnification]
  18.298 Created atlas bitmap 16384x456 [not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, no-crop, no-scale]
  18.299 Created atlas bitmap 16384x748 [alpha-mask]
  18.304 Created atlas bitmap 16384x12640 [shadow, linear-magnification, alpha-mask]
  18.304 Created atlas bitmap 16384x1264 [shadow, mipmap, linear-magnification, alpha-mask]
  18.318 Texture processor created. GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
  19.314 Parallel Sprite Loader initialized (threads: 7)
  36.884 Sprites loaded
  36.996 Generated mipmaps for atlas of size 16384x3808
  37.036 Generated mipmaps for atlas of size 16384x1888
  37.076 Generated mipmaps for atlas of size 16384x6880
  37.096 Generated mipmaps for atlas of size 16384x480
  37.106 Generated mipmaps for atlas of size 16384x456
  37.116 Generated mipmaps for atlas of size 16384x1264
  37.129 Custom inputs active: 0
  37.242 Factorio initialised
  37.322 Game is running on selected version branch on Steam.
  46.633 Applying migration: Base Mod: 2019-03-04_Factorio_0.17.5.lua
  46.850 Loading Level.dat: 1308459 bytes.
  46.851 Info Scenario.cpp:147: Map version 0.17.5-1
  46.889 Loading script.dat: 328 bytes.
  46.892 Checksum for script C:/Users/o_0/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 1848333929
  76.246 Applying migration: Base Mod: 2019-03-04_Factorio_0.17.5.lua
  76.463 Loading Level.dat: 1308459 bytes.
  76.463 Info Scenario.cpp:147: Map version 0.17.5-1
  76.502 Loading script.dat: 328 bytes.
  76.505 Checksum for script C:/Users/o_0/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 3594796056
 100.238 Applying migration: Base Mod: 2019-03-04_Factorio_0.17.5.lua
 100.240 Error CrashHandler.cpp:376: Exception Code: c0000005, Address: 0x000000014064f78a
ModuleBase: 0x000000013ff70000, ImageSize: 015f0000, RelativeAddress: 006df78a
 100.240 Error CrashHandler.cpp:382: Access Violation: Read at address 0000000000000098
 100.240 Error CrashHandler.cpp:396: Exception Context:
rax=0000000000000000, rbx=0000000000000001, rcx=000000002689f080,
rdx=0000000000000003, rsi=000000002c17c34a, rdi=00000000344424d0,
rip=000000014064f78a, rsp=000000000739e8a0, rbp=000000000739e9a0,
 r8=000000000000000a,  r9=0000000018dbb270, r10=00000000000000d6,
r11=000000002689f080, r12=0000000000000002, r13=00000000229a8c30,
r14=0000000045dede10, r15=0000000000000002
 100.240 Crashed in C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe (0x000000013ff70000 - 0x0000000141560000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-0zstqu\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-build-0zstqu\src\util\logger.cpp (415): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-build-0zstqu\src\util\logger.cpp (566): Logger::logStacktrace
c:\cygwin64\tmp\factorio-build-0zstqu\src\util\crashhandler.cpp (169): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-build-0zstqu\src\util\crashhandler.cpp (423): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076BABC20)
0000000076BABC20 (kernel32): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076DA9015)
0000000076DA9015 (ntdll): (filename not available): longjmp
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076D87388)
0000000076D87388 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076D9BF7D)
0000000076D9BF7D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076D7043A)
0000000076D7043A (ntdll): (filename not available): RtlInitializeResource
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076D9B61E)
0000000076D9B61E (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-build-0zstqu\src\script\luaforce.cpp (430): LuaForce::luaResetTechnologyEffects
c:\cygwin64\tmp\factorio-build-0zstqu\src\script\luabinder.hpp (330): LuaBinder<LuaDecorativePrototype>::callWrapper
c:\cygwin64\tmp\factorio-build-0zstqu\libraries\lua\ldo.c (319): luaD_precall
c:\cygwin64\tmp\factorio-build-0zstqu\libraries\lua\lvm.c (710): luaV_execute
c:\cygwin64\tmp\factorio-build-0zstqu\libraries\lua\lapi.c (1018): f_call
c:\cygwin64\tmp\factorio-build-0zstqu\libraries\lua\ldo.c (131): luaD_rawrunprotected
c:\cygwin64\tmp\factorio-build-0zstqu\libraries\lua\ldo.c (590): luaD_pcall
c:\cygwin64\tmp\factorio-build-0zstqu\libraries\lua\lapi.c (1044): lua_pcallk
c:\cygwin64\tmp\factorio-build-0zstqu\src\util\luahelper.cpp (3262): LuaHelper::pCallWithStackTrace
c:\cygwin64\tmp\factorio-build-0zstqu\src\util\luahelper.cpp (2374): LuaHelper::packageDofile
c:\cygwin64\tmp\factorio-build-0zstqu\src\info\migrationlist.cpp (107): MigrationList::applyMigration
c:\cygwin64\tmp\factorio-build-0zstqu\src\info\migrationlist.cpp (71): MigrationList::applyMissingMigrations
c:\cygwin64\tmp\factorio-build-0zstqu\src\scenario\scenarioprototype.cpp (128): ScenarioPrototype::loadFactory
c:\cygwin64\tmp\factorio-build-0zstqu\src\scenario\scenarioprototype.cpp (40): ScenarioPrototype::loadAndBluePrintScenario
c:\cygwin64\tmp\factorio-build-0zstqu\src\scenario\parallelscenarioloader.cpp (142): ParallelScenarioLoader::doLoad
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*)(ParallelScenarioLoader *,MapDeserialiser *,enum InputType,InputHandler *,MultiplayerManagerBase *,bool),ParallelScenarioLoader *,MapDeserialiser *,enum InputType,InputHandler *,MultiplayerManagerBase *,bool>,std::default_delete<std::tuple<void (__cdecl*)(ParallelScenarioLoader *,MapDeserialiser *,enum InputType,InputHandler *,MultiplayerManagerBase *,bool),ParallelScenarioLoader *,MapDeserialiser *,enum InputType,InputHandler *,MultiplayerManagerBase *,bool> > > >::_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: 0000000076B259CD)
0000000076B259CD (kernel32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076D8385D)
0000000076D8385D (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
 104.261 Error Util.cpp:97: 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.
 150.433 Uploading log file
 150.436 Error CrashHandler.cpp:221: Heap validation: success.
 150.437 Creating crash dump.
 150.655 CrashDump success

Attachments
lost_explorer_scenario.zip
(1.04 MiB) Downloaded 32 times

foamyguy
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Mar 05, 2019 1:45 am
Contact:

Re: [0.17.5] Crash when loading scenario created with 0.17.4

Post by foamyguy »

This was still broken in version 0.17.8, but got fixed in 0.17.9 the scenario loads properly in the map editor in that version. It has also continued to work under 0.17.10 and 0.17.11.

Thanks for the game and continued development =)

Post Reply

Return to “Resolved Problems and Bugs”