[12.30][posila] Crash when loading save with mod migration

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

[12.30][posila] Crash when loading save with mod migration

Post by Afforess »

I was trying to debug a user bug report, with their save and mods, and I experience a very interesting stack trace from the game engine when loading the save with mods enabled. Disabling all mods allows the save to load, but not exactly helpful in debugging what mod the user has that is causing a crash. The user seems to imply the mods work on their system, which may mean a Linux ~ Windows compatibility issue? I am going boot up Windows 10 and test next.

Factorio-current.log: http://pastie.org/pastes/10798330/text

Modpack: https://gitlab.konghack.com/GameCharmer ... ref=master

Save: download/file.php?id=9958

Context of Report: viewtopic.php?f=93&t=18932&p=148748#p148744

Specs:
OS: Ubuntu 16.04 Xenial x64
CPU: i7-3770K
GPU: GTX 680 Superclocked, 2GB VRAM
RAM: 16GB 1333 MHZ
Storage: 1TB WD Black HDD

Any idea which mod is causing this, and why it is causing the game to bomb?

Edit: Also crashed on Win10. Better stack trace though:

Code: Select all

initialised
  43.159 Loading map C:/Users\Afforess\Downloads\Factorio_x64_0.12.30\Factorio_0.12.30\saves\QuickSave.zip
  43.718 Info Scenario.cpp:124: Map version 0.12.29-0
  44.335 Error CrashHandler.cpp:105: Exception Code: c0000005, Address: 00007FF6EDE4B31F
  44.337 Error CrashHandler.cpp:115: Exception Context:
rax=00000000ffff2d80, rbx=00000000ffff2d80, rcx=0000022faf96bee8,
rdx=0000022faf37a9c0, rsi=0000022f55003cf0, rdi=0000022fa392b568,
rip=00007ff6ede4b31f, rsp=00000086f34ff2e8, rbp=0000022faf37a9c0,
 r8=0000022f55003d08,  r9=0000000000000000, r10=0000000000000000,
r11=0000022faf37a9c0, r12=0000022f9c0d5710, r13=0000022f9e229e10,
r14=0000000000000000, r15=0000000000000001
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-zkymte\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-zkymte\src\util\logger.cpp (306): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-zkymte\src\util\logger.cpp (360): Logger::logStacktrace
c:\cygwin64\tmp\factorio-zkymte\src\util\crashhandler.cpp (84): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-zkymte\src\util\crashhandler.cpp (125): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFEE86F7E2E)
00007FFEE86F7E2E (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFEEBFBD698)
00007FFEEBFBD698 (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFEEBFA5826)
00007FFEEBFA5826 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFEEBFB97FD)
00007FFEEBFB97FD (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFEEBF44C99)
00007FFEEBF44C99 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFEEBFB890A)
00007FFEEBFB890A (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-zkymte\src\logistics\logisticnetwork.cpp (820): LogisticNetwork::isInNetworkArea
c:\cygwin64\tmp\factorio-zkymte\src\logistics\logisticmanager.cpp (263): LogisticManager::findMatchingNetworkByPosition
c:\cygwin64\tmp\factorio-zkymte\src\logistics\logisticmanager.cpp (121): LogisticManager::registerNewLogisticMember
c:\cygwin64\tmp\factorio-zkymte\src\entity\inserter.cpp (929): Inserter::setup
c:\cygwin64\tmp\factorio-zkymte\src\map\map.cpp (615): Map::setupEntities
c:\cygwin64\tmp\factorio-zkymte\src\scenario\scenario.cpp (188): Scenario::loadFactory
c:\cygwin64\tmp\factorio-zkymte\src\scenario\parallelscenarioloader.cpp (66): ParallelScenarioLoader::doLoad
c:\boost_1_58_0\boost\thread\detail\thread.hpp (117): boost::detail::thread_data<boost::_bi::bind_t<void,void (__cdecl*)(ParallelScenarioLoader * __ptr64,MapDeserialiser * __ptr64,enum InputType,InputHandler * __ptr64,MultiplayerManager * __ptr64,bool),boost::_bi::list6<boost::_bi::value<ParallelScenarioLoader * __ptr64>,boost::_bi::value<MapDeserialiser * __ptr64>,boost::_bi::value<enum InputType>,boost::_bi::value<InputHandler * __ptr64>,boost::_bi::value<MultiplayerManager * __ptr64>,boost::_bi::value<bool> > > >::run
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF6EDC60F33)
00007FF6EDC60F33 (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: 00007FFEEBD68102)
00007FFEEBD68102 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFEEBF6C2E4)
00007FFEEBF6C2E4 (ntdll): (filename not available): RtlUserThreadStart
  46.781 Error Util.cpp:78: Unexpected error occurred. You can help us to solve the problem by posting the contents of the log file on the Factorio forums.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [12.30] Crash when loading save

Post by Klonan »

Thanks for the report,

I can confirm that the save provided crashes with the mods:
Image
Log
Its something in Ammo_box migration json

Code: Select all

{
  "entity":
  [
    ["gun-turret-2", "ammobox-gun-turret-2"],
    ["gun-turret-2-ui", "ammobox-gun-turret-2-ui"]
  ],
  "item":
  [
    ["gun-turret-2", "ammobox-gun-turret-2"],
    ["gun-turret-2-ui", "ammobox-gun-turret-2-ui"]
  ]
}
But actually it still crashes with the migration deleted:
Log

User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

Re: [12.30] Crash when loading save with mod migration

Post by Afforess »

Klonan, thanks for confirming the report. Really interesting the migration is somehow related.

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

Re: [12.30] Crash when loading save with mod migration

Post by Rseding91 »

There are a few mods being removed plus some migrations happening at the same time and with the sheer number of mods it's difficult to tell what's actually happening.

Do you know fully what has actually changed between it working and now crashing? If that was known I might be able to debug it and figure out what's going on. But, without it - there's too much to get a good idea of where I should start.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

Re: [12.30] Crash when loading save with mod migration

Post by Afforess »

Rseding91 wrote:There are a few mods being removed plus some migrations happening at the same time and with the sheer number of mods it's difficult to tell what's actually happening.

Do you know fully what has actually changed between it working and now crashing? If that was known I might be able to debug it and figure out what's going on. But, without it - there's too much to get a good idea of where I should start.
Not exactly, no. I'm only relaying a report from a user. However, they are using a git repo to track their mods, so it may have the information you need: https://gitlab.konghack.com/GameCharmer ... its/master

If I had to guess, I would say the save was originally using this set of mods https://gitlab.konghack.com/GameCharmer ... cb269113dd

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [12.30][posila] Crash when loading save with mod migration

Post by posila »

Thanks, the issue is fixed for 0.12.31. The save should be loadable on that version.

User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

Re: [12.30][posila] Crash when loading save with mod migration

Post by Afforess »

posila wrote:Thanks, the issue is fixed for 0.12.31. The save should be loadable on that version.
Thanks, you guys rock. Out of curiosity, what was the issue?

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [12.30][posila] Crash when loading save with mod migration

Post by posila »

One of the modded inserters became programmable (= can be connected to circuit and logistic network), so it wanted to register to logistic network which was not setup yet.

Post Reply

Return to “Resolved Problems and Bugs”