[0.12.0] [Rseding91] Unexpected error when resuming save

This subforum contains all the issues which we already resolved.
Post Reply
vedrit
Filter Inserter
Filter Inserter
Posts: 292
Joined: Sun Aug 03, 2014 2:25 am
Contact:

[0.12.0] [Rseding91] Unexpected error when resuming save

Post by vedrit »

Fairly heavily modded game, save originally from Factorio 0.11.22
Here's the log:

Code: Select all

   0.002 2015-07-22 21:17:02; Factorio 0.12.0 (Build 103, win64)
   0.002 Operating system: Windows 7 Service Pack 1
   0.002 Read data path: E:/Programs/Factorio/data
   0.002 Write data path: C:/Users/Vedrit/AppData/Roaming/Factorio
   0.002 Binaries path: E:/Programs/Factorio/bin
   0.128 Initialised Direct3D: NVIDIA GeForce GTX 980; driver: nvd3dumx.dll 9.18.13.5306
   0.153 Graphics options: [FullScreen: false] [VSync: true] [UIScale: 100%] [MultiSampling: X 8] [Graphics quality: normal] [Video memory usage: all]
   0.207 Loading mod core 0.0.0 (data.lua)
   0.209 Loading mod base 0.12.0 (data.lua)
   0.262 Loading mod CORE-DyTech-Core 1.2.0 (data.lua)
   0.323 Loading mod Evolution 1.0.7 (data.lua)
   0.367 Loading mod Landfill 2.1.5 (data.lua)
   0.399 Loading mod MAIN-DyTech-Power 1.1.0 (data.lua)
   0.456 Loading mod Transformator 0.0.2 (data.lua)
   0.504 Loading mod tankwerkz 0.1.2 (data.lua)
   0.547 Loading mod AlienWall 0.2.0 (data.lua)
   0.593 Loading mod MAIN-DyTech-Machine 1.1.0 (data.lua)
   0.732 Loading mod MAIN-DyTech-War 1.1.0 (data.lua)
   0.852 Loading mod CORE-DyTech-Core 1.2.0 (data-updates.lua)
   0.941 Loading mod MAIN-DyTech-War 1.1.0 (data-updates.lua)
   1.015 Loading mod CORE-DyTech-Core 1.2.0 (data-final-fixes.lua)
   1.098 Loading mod MAIN-DyTech-War 1.1.0 (data-final-fixes.lua)
   2.107 Initial atlas bitmap size is 16384
   2.110 Created atlas bitmap 16384x12093
  10.322 Info Updater.cpp:720: Downloading https://www.factorio.com/updater/get-available-versions?username=vedrit&token=<private>&apiVersion=2
  10.763 0 packages available to download (experimental updates enabled).
  10.780 Factorio initialised
  12.746 Loading map C:/Users\Vedrit\AppData\Roaming\Factorio\saves\_autosave1.zip
  12.798 Info Scenario.cpp:160: Map version 0.11.22-0
  12.809 Info PrototypeMigrationList.cpp:94: Activating migration base/2015-06-01_Factorio_0.12.0.json
  12.809 Info PrototypeMigrationList.cpp:94: Activating migration CORE-DyTech-Core/CORE-DyTech-Core_1.2.0.json
  12.809 Info PrototypeMigrationList.cpp:94: Activating migration MAIN-DyTech-War/MAIN-DyTech-War_1.1.0.json
  12.994 Applying migration: Base Mod: 2015-07-02_Factorio_0.12.0.lua
  13.027 Applying migration: CORE-DyTech-Core: CORE-DyTech-Core_1.2.0.lua
  13.044 Applying migration: MAIN-DyTech-Power: MAIN-DyTech-Power_1.1.0.lua
  13.061 Applying migration: MAIN-DyTech-Machine: MAIN-DyTech-Machine_1.1.0.lua
  13.085 Applying migration: MAIN-DyTech-War: MAIN-DyTech-War_1.1.0.lua
  13.111 Info LocaleProvider.cpp:127: Using locale files from the pre 0.11.0 structure (__CORE-DyTech-Core__/script-locale/en.cfg)
  13.112 Info LocaleProvider.cpp:127: Using locale files from the pre 0.11.0 structure (__CORE-DyTech-Core__/script-locale/en.cfg)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\temp\factorio-5829127a\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\temp\factorio-5829127a\src\util\logger.cpp (283): Logger::writeStacktrace
c:\temp\factorio-5829127a\src\util\logger.cpp (337): Logger::logStacktrace
c:\temp\factorio-5829127a\src\util\crashhandler.cpp (79): CrashHandler::writeStackTrace
c:\temp\factorio-5829127a\src\util\crashhandler.cpp (88): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077B5B9B0)
0000000077B5B9B0 (kernel32): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077C699C8)
0000000077C699C8 (ntdll): (filename not available): EtwEventSetInformation
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077BF7FA8)
0000000077BF7FA8 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077C091AD)
0000000077C091AD (ntdll): (filename not available): RtlDecodePointer
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077BF8BAF)
0000000077BF8BAF (ntdll): (filename not available): RtlUnwindEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077C2DB38)
0000000077C2DB38 (ntdll): (filename not available): KiUserExceptionDispatcher
c:\temp\factorio-5829127a\src\surface\surface.cpp (72): Surface::getAdvancedTileSafe
c:\temp\factorio-5829127a\src\entity\heuristicentitysearch.cpp (30): HeuristicEntityIterator::HeuristicEntityIterator
c:\temp\factorio-5829127a\src\entity\entitysearch.cpp (26): EntitySearch::EntitySearch
c:\temp\factorio-5829127a\src\script\luasurface.cpp (251): LuaSurface::luaFindEntities
c:\temp\factorio-5829127a\src\script\luabinder.hpp (300): LuaBinder<LuaSurface>::callWrapper
c:\temp\factorio-5829127a\libraries\lua\ldo.c (320): luaD_precall
c:\temp\factorio-5829127a\libraries\lua\lvm.c (723): luaV_execute
c:\temp\factorio-5829127a\libraries\lua\lapi.c (920): f_call
c:\temp\factorio-5829127a\libraries\lua\ldo.c (133): luaD_rawrunprotected
c:\temp\factorio-5829127a\libraries\lua\lapi.c (946): lua_pcallk
c:\temp\factorio-5829127a\src\script\luagamescript.cpp (1751): LuaGameScript::signallingPCall
c:\temp\factorio-5829127a\src\script\luagamescript.cpp (523): LuaGameScript::runEventHandler
c:\temp\factorio-5829127a\src\script\luaeventdispatcher.cpp (164): LuaEventDispatcher::run
c:\temp\factorio-5829127a\src\script\luacontext.cpp (111): LuaContext::update
c:\temp\factorio-5829127a\src\scenario\scenario.cpp (731): Scenario::update
c:\temp\factorio-5829127a\src\mainloop.cpp (250): MainLoop::gameUpdateStep
c:\temp\factorio-5829127a\src\mainloop.cpp (351): MainLoop::updateLoop
c:\boost_1_58_0\boost\function\function_template.hpp (160): boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void,void (__cdecl*)(ThreadBarrier * __ptr64,boost::chrono::time_point<boost::chrono::steady_clock,boost::chrono::duration<__int64,boost::ratio<1,1000000000> > > * __ptr64,boost::chrono::time_point<boost::chrono::steady_clock,boost::chrono::duration<__int64,boost::ratio<1,1000000000> > > * __ptr64,bool * __ptr64,bool),boost::_bi::list5<boost::_bi::value<ThreadBarrier * __ptr64>,boost::_bi::value<boost::chrono::time_point<boost::chrono::steady_clock,boost::chrono::duration<__int64,boost::ratio<1,1000000000> > > * __ptr64>,boost::_bi::value<boost::chrono::time_point<boost::chrono::steady_clock,boost::chrono::duration<__int64,boost::ratio<1,1000000000> > > * __ptr64>,boost::_bi::value<bool * __ptr64>,boost::_bi::value<bool> > >,void>::invoke
c:\temp\factorio-5829127a\src\util\thread.cpp (34): Thread::loop
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000000014015B163)
000000014015B163 (Factorio): (filename not available): boost::`anonymous namespace'::thread_start_function
f:\dd\vctools\crt\crtw32\startup\threadex.c (376): _callthreadstartex
f:\dd\vctools\crt\crtw32\startup\threadex.c (354): _threadstartex
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077AD59CD)
0000000077AD59CD (kernel32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000077C0B981)
0000000077C0B981 (ntdll): (filename not available): RtlUserThreadStart
  19.159 Error Util.cpp:45: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.12.0] Unexpected error when resuming save

Post by Rseding91 »

Do you have the save file and mod(s) you're using when it crashes? Can you post them here?
If you want to get ahold of me I'm almost always on Discord.

vedrit
Filter Inserter
Filter Inserter
Posts: 292
Joined: Sun Aug 03, 2014 2:25 am
Contact:

Re: [0.12.0] Unexpected error when resuming save

Post by vedrit »

I keep trying to upload my mods folder, but the connection keeps timing out, so heres the drop-box link: https://www.dropbox.com/s/ljf4yqm7g0xppko/mods.zip?dl=0
The zip comes at just under 70MB.

Here's the save:
_autosave1.zip
(3.47 MiB) Downloaded 154 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.12.0] [Rseding91] Unexpected error when resuming save

Post by Rseding91 »

Thanks for the report. This is now fixed for 0.12.1.

It turned out that reading LuaSurface from a disconnected player resulted in an invalid LuaSurface object :) in 0.12.1 you can use LuaSurface.valid to check if the reference is usable.

As an added bonus this will also tell you if the player is connected to the game. In 0.12.1 when player.surface.valid is false the player isn't connected.
If you want to get ahold of me I'm almost always on Discord.

vedrit
Filter Inserter
Filter Inserter
Posts: 292
Joined: Sun Aug 03, 2014 2:25 am
Contact:

Re: [0.12.0] [Rseding91] Unexpected error when resuming save

Post by vedrit »

Rseding91 wrote:Thanks for the report. This is now fixed for 0.12.1.

It turned out that reading LuaSurface from a disconnected player resulted in an invalid LuaSurface object :) in 0.12.1 you can use LuaSurface.valid to check if the reference is usable.

As an added bonus this will also tell you if the player is connected to the game. In 0.12.1 when player.surface.valid is false the player isn't connected.
How do we use LuaSurface.valid? Keep getting getting a syntax error when I put it into a control script

Post Reply

Return to “Resolved Problems and Bugs”