[boskid][2.0.42] Crash loading save (AssemblingMachine::checkConsistency)

This subforum contains all the issues which we already resolved.
Rozkurwozaur
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Mar 23, 2025 4:20 pm
Contact:

[boskid][2.0.42] Crash loading save (AssemblingMachine::checkConsistency)

Post by Rozkurwozaur »

Hello,

I'm playing mod pack - pymod. I was playing, researched 2nd science pack, saved the game, come back after 10 hours (there was no updates) and cant load save or autosave (22 mins behind). Crash logs and save in attachement

Code: Select all

  79.569 Script @__pypostprocessing__/control.lua:94: registered on_nth_tick function aerialfuckinghuge from mod pyae
  79.569 Script @__pypostprocessing__/control.lua:94: registered on_nth_tick function aerial9 from mod pyae
Factorio crashed. Generating symbolized stacktrace, please wait ...
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Util\ReleaseAssert.cpp(7): ReleaseAssertFailed
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Entity\AssemblingMachine.cpp(98): AssemblingMachine::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Blueprint\BlueprintEntities.cpp(1007): BlueprintEntities::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Blueprint\Blueprint.cpp(758): Blueprint::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Item\ItemStack.cpp(745): ItemStack::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Item\Inventory.cpp(449): Inventory::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Item\ItemStack.cpp(745): ItemStack::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Entity\Entity.cpp(1848): Entity::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Entity\EntityWithHealth.cpp(145): EntityWithHealth::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Entity\EntityWithOwner.cpp(354): EntityWithOwner::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Entity\Character.cpp(4820): Character::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Map\ConsistencyScraper.cpp(41): ConsistencyScraper::step
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Game.cpp(175): Game::update
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Scenario\Scenario.cpp(1130): Scenario::updateStep
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\MainLoop.cpp(1417): MainLoop::gameUpdateStep
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\MainLoop.cpp(1212): MainLoop::gameUpdateLoop
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\functional(823): std::_Func_impl_no_alloc<`MainLoop::mainLoopStep'::`2'::<lambda_1>,void>::_Do_call
C:\Users\build\AppData\Local\Temp\factorio-build-YlT6d6\src\Util\WorkerThread.cpp(71): WorkerThread::loop
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\thread(56): std::thread::_Invoke<std::tuple<void (__cdecl WorkerThread::*)(void),WorkerThread *>,0,1>
minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(97): thread_start<unsigned int (__cdecl*)(void *),1>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFADBD27374)
00007FFADBD27374 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFADD83CC91)
00007FFADD83CC91 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
  80.899 Error AssemblingMachine.cpp:98: !this->hasRecipe() || this->getPrototype()->canCraft(*this->recipeID) == CanCraftResult::CanCraft was not true
  80.899 Error CrashHandler.cpp:643: Received 22
Logger::writeStacktrace skipped.
  80.899 Info ConsistencyScraper.cpp:83: queued check: entity [name=character, type=character(Character), position={29.125, 49.602}, direction=East, force=player, surface=nauvis, setup=true, owned-by-ghost=false, to-be-deconstructed=false, to-be-upgraded=false, simulation=false]
  80.899 Error CrashHandler.cpp:190: Map tick at moment of crash: 8280001
  80.935 Info CrashHandler.cpp:318: Executable CRC: 2611162946
  80.935 Error Util.cpp:95: 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.
  82.807 Uploading log file
  82.821 Error CrashHandler.cpp:270: Heap validation: success.
  82.822 Creating crash dump.
  83.132 CrashDump success
factorio-current.log
(144.45 KiB) Downloaded 8 times
pymod.zip
(12.69 MiB) Downloaded 14 times
Related report: https://github.com/pyanodon/pybugreports/issues/926
Rozkurwozaur
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Mar 23, 2025 4:20 pm
Contact:

Re: [2.0.42] Crash loading save (AssemblingMachine::checkConsistency)

Post by Rozkurwozaur »

Also if you need help with testing fix or something, my discord tag: zawodowiec
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3753
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.42] Crash loading save (AssemblingMachine::checkConsistency)

Post by boskid »

Thanks for the report. If you want to continue playing this save file, it is possible to fix the blueprint that is causing the issue by forcing game to load this save file in prototypes changed mode. Basically in the Load game gui, after selecting a save file, hold Control key while pressing green "Load" button.

As for the issue itself, after changing some of the error reporting, the error i got was following:
"Error AssemblingMachine.cpp:105: AssemblingMachine 'automated-factory-mk01' has recipe 'cladding' set it cannot craft because 'DifferentCategory'"

Do you know how you got such a blueprint containing that machine with recipe it was not supposed to be able to craft?
Rozkurwozaur
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Mar 23, 2025 4:20 pm
Contact:

Re: [2.0.42] Crash loading save (AssemblingMachine::checkConsistency)

Post by Rozkurwozaur »

A blueprint book in my inventory is causing this or blueprint placed on map?
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3753
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.42] Crash loading save (AssemblingMachine::checkConsistency)

Post by boskid »

This is specifically a book in your character inventory.
Rozkurwozaur
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Mar 23, 2025 4:20 pm
Contact:

Re: [2.0.42] Crash loading save (AssemblingMachine::checkConsistency)

Post by Rozkurwozaur »

I can't load save while holding CTRL, its crashing in the same way. I tried hold ctrl + click load and hold ctrl all time while loading + click load..

It may be side effect of this bug? viewtopic.php?t=127652
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3753
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.42] Crash loading save (AssemblingMachine::checkConsistency)

Post by boskid »

Given your save file has 2 players inside i suspect you are trying to load this save file in the prototypes changed mode while also trying to host the game. Try loading it in singleplayer (holding control when clicking Load) and then save to get a fixed save.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3753
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [boskid][2.0.42] Crash loading save (AssemblingMachine::checkConsistency)

Post by boskid »

Thanks for the report and the details provided by other means. This issue is now fixed for 2.0.43.
Post Reply

Return to “Resolved Problems and Bugs”