[2.0.20] Crash on save consistency checking (AsteroidCollectorControlBehavior)

This subforum contains all the issues which we already resolved.
Doublect
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Nov 18, 2024 9:10 pm
Contact:

[2.0.20] Crash on save consistency checking (AsteroidCollectorControlBehavior)

Post by Doublect »

Currently, my pre-2.0.20 save file experiences a CTD upon trying load it up on 2.0.20. An assertion is failing related to Asteroid Collectors, during the consistency check phase when loading the particular save file. This is on an unmodded game state (other than the SA mods).

The key log lines being:
69.417 Error AsteroidCollectorControlBehavior.cpp:123: cargoSignalsCopy == this->computeCargoSignals() was not true
69.417 Error CrashHandler.cpp:643: Received 22
Importantly, the save does contain Asteroid Collector (AC) control circuitry, which was updated/changed with 2.0.20 as mentioned here.

Loading it up on 2.0.19 and saving again does not solve it. Deleting all ACs fixes the issue.

After carefully testing (is it ghost ACs? probably not, etc.), the most I could narrow it down is four ACs on a space platform (called World Render). Further deletion of any single Asteroid Collector results in a working save file, perhaps pointing to the issue being temporal, as such it might be in an incorrect state when the saves occurred.

Attached are the log file and dump (generated when loading Solo84b3CrashWRRight.zip).

The following three save files are available through ProtonDrive here:
  • Solo84b3.zip - The original save file that had the crashes
  • Solo84b3CrashWRRight.zip - The "minimal" crashing state, only four ACs on the platform World Render
  • Solo84b3CrashWRRight1.zip - A working state, with one of the aforementioned ACs removed

Code: Select all

   0.000 2024-11-18 23:15:44; Factorio 2.0.20 (build 80511, win64, steam, space-age)
   0.000 Operating system: Windows 10 (build 19045) 
   0.000 Initializing Steam API.
   0.001 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.001 Config path: C:/Users/Doublect/AppData/Roaming/Factorio/config/config.ini
   0.001 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.001 Write data path: C:/Users/Doublect/AppData/Roaming/Factorio [80081/674631MB]
   0.001 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.013 System info: [CPU: AMD Ryzen 9 4900HS with Radeon Graphics, 16 cores, RAM: 11535/32173 MB, page: 15883/56173 MB, virtual: 4345/134217727 MB, extended virtual: 0 MB]
   0.076 Memory info:
   0.076  [0]: Micron Technology 8ATF2G64HZ-3G2B1 16384 MB 3200 MHz 1.2 v
   0.076  [1]: Samsung M471A2K43DB1-CWE 16384 MB 3200 MHz 1.2 v
   0.079 Display options: [FullScreen: true] [VSync: true] [UIScale: automatic (100.0%)] [Native DPI: true] [Screen: 255] [Special: lmw] [Lang: en]
   0.315 Video driver: windows
   0.315 Available displays: 1
   0.315  [0]: \\.\DISPLAY1 - AMD Radeon(TM) Graphics {0x80005, [0,0], 3840x2160, 32bit, 120Hz}
   0.371 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: -1; d3dcompiler_47.dll
   0.845 Initialised Direct3D[0]: NVIDIA GeForce RTX 2060 with Max-Q Design; id: 10de-1f12; driver: nvldumdx.dll 32.0.15.6109
   0.845   D3D Feature Level: 11.1, DXGI 1.5+, SwapChain: 3,flip-discard,-,-,-,none
   0.845   [Local Video Memory] Budget: 5187MB, CurrentUsage: 22MB, Reservation: 0/2721MB
   0.845   [Non-Local Vid.Mem.] Budget: 15318MB, CurrentUsage: 7MB, Reservation: 0/7787MB
   0.845   Tiled resources: Tier 2
   0.845   Unified Memory Architecture: No
   0.845   BGR 565 Supported: Yes
   0.845   MaximumFrameLatency: 3, GPUThreadPriority: 0
   0.845 Graphics settings preset: very-high
   0.845   Dedicated video memory size 5955 MB
   0.901 Desktop composition is active.
   0.901 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality]
   0.901                   [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: false] [Rotation quality: normal] [Other: STDCWTl] [B:0,C:0,S:100]
   0.995 [Audio] Driver:wasapi, Device:Default device, Depth:16, Frequency:44100, Channels:2, Interpolation:linear
   1.300 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
   1.300 Info ModManager.cpp:434: FeatureFlag freezing = true
   1.300 Info ModManager.cpp:434: FeatureFlag quality = true
   1.301 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
   1.301 Info ModManager.cpp:434: FeatureFlag segmented-units = true
   1.301 Info ModManager.cpp:434: FeatureFlag space-travel = true
   1.301 Info ModManager.cpp:434: FeatureFlag spoiling = true
   1.311 Loading mod core 0.0.0 (data.lua)
   1.353 Loading mod base 2.0.20 (data.lua)
   1.614 Loading mod elevated-rails 2.0.20 (data.lua)
   1.657 Loading mod quality 2.0.20 (data.lua)
   1.678 Loading mod space-age 2.0.20 (data.lua)
   2.200 Loading mod base 2.0.20 (data-updates.lua)
   2.243 Loading mod quality 2.0.20 (data-updates.lua)
   2.279 Loading mod space-age 2.0.20 (data-updates.lua)
   2.444 Checksum for core: 2863993211
   2.444 Checksum of base: 3548713318
   2.444 Checksum of elevated-rails: 2929976872
   2.444 Checksum of quality: 3484764141
   2.444 Checksum of space-age: 1973748825
   2.969 Prototype list checksum: 3872509593
   3.056 Loading sounds...
   3.502 Info PlayerData.cpp:68: Local player-data.json unavailable
   3.502 Info PlayerData.cpp:71: Cloud player-data.json available, timestamp 1731967208
   4.009 Initial atlas bitmap size is 16384
   4.039 Created an atlas bitmap (size 16384x16380) [none]
   4.087 Created an atlas bitmap (size 16384x16384) [none]
   4.154 Created an atlas bitmap (size 16384x16384) [none]
   4.157 Created an atlas bitmap (size 16384x15420) [none]
   4.157 Created an atlas bitmap (size 16384x8392) [decal]
   4.166 Created an atlas bitmap (size 16384x16384) [low-object]
   4.167 Created an atlas bitmap (size 4096x960) [low-object]
   4.168 Created an atlas bitmap (size 16384x13440) [corpse-decay]
   4.168 Created an atlas bitmap (size 16384x5596) [none]
   4.169 Created an atlas bitmap (size 1676x79) [not-compressed]
   4.169 Created an atlas bitmap (size 8192x6112) [mipmap, linear-minification, linear-magnification, linear-mip-level]
   4.188 Created an atlas bitmap (size 16384x16320) [terrain, mipmap, linear-minification, linear-mip-level]
   4.188 Created an atlas bitmap (size 16384x4832) [terrain, mipmap, linear-minification, linear-mip-level]
   4.189 Created an atlas bitmap (size 8192x3872) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   4.189 Created an atlas bitmap (size 4096x3104) [smoke, mipmap, linear-minification, linear-magnification]
   4.189 Created an atlas bitmap (size 8192x2576) [mipmap]
   4.190 Created an atlas bitmap (size 2048x1520) [mipmap]
   4.190 Created an atlas bitmap (size 4096x3152) [mipmap]
   4.190 Created an atlas bitmap (size 4096x3152) [mipmap]
   4.190 Created an atlas bitmap (size 4096x3152) [mipmap]
   4.191 Created an atlas bitmap (size 8192x3808) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   4.193 Created an atlas bitmap (size 16384x6120) [alpha-mask]
   4.257 Created an atlas bitmap (size 16384x16380) [shadow, linear-magnification, alpha-mask]
   4.268 Created an atlas bitmap (size 16384x16368) [shadow, linear-magnification, alpha-mask]
   4.268 Created an atlas bitmap (size 16384x8364) [shadow, linear-magnification, alpha-mask]
   4.268 Created an atlas bitmap (size 8192x2352) [shadow, mipmap, linear-magnification, alpha-mask]
   4.269 Created an atlas bitmap (size 2048x496) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   4.440 Loading 3D bitmaps.
   4.465 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   4.488 Parallel sprite loader initialized (threads: 15, bitmaps: 8228)
  28.137 Sprites loaded
  28.162 Generated mipmaps (4) for atlas [5] of size 16384x16384   
  28.174 Generated mipmaps (4) for atlas [6] of size 4096x960   
  28.186 Generated mipmaps (3) for atlas [10] of size 8192x6112   
  28.198 Generated mipmaps (3) for atlas [11] of size 16384x16320   
  28.209 Generated mipmaps (3) for atlas [12] of size 16384x4832   
  28.221 Generated mipmaps (3) for atlas [13] of size 8192x3872   
  28.233 Generated mipmaps (3) for atlas [14] of size 4096x3104   
  28.287 Generated mipmaps (3) for atlas [15] of size 8192x2576   
  28.299 Generated mipmaps (3) for atlas [16] of size 2048x1520   
  28.311 Generated mipmaps (3) for atlas [17] of size 4096x3152   
  28.346 Generated mipmaps (3) for atlas [18] of size 4096x3152   
  28.358 Generated mipmaps (3) for atlas [19] of size 4096x3152   
  28.370 Generated mipmaps (5) for atlas [20] of size 8192x3808   
  28.383 Generated mipmaps (3) for atlas [25] of size 8192x2352   
  28.423 Custom mipmaps uploaded (3203)
  28.435 Video memory usage: 3556.15 MB (Atlases: 3425.84 MB, Textures: 130.30 MB)
  28.552 Factorio initialised
  28.552 RivaTuner Statistics Server hook detected (rtsshooks64.dll)
  28.610 Steam Storage Quota: 20403/23841
  31.387 Loading map C:\Users\Doublect\AppData\Roaming\Factorio\saves\Solo84b3CrashWRRight4.zip: 35271757 bytes.
  31.446 Loading level.dat: 105318301 bytes.
  31.452 Info Scenario.cpp:178: Map version 2.0.19-0
  34.568 Loading blueprint storage: Local timestamp 1731267411, Cloud timestamp 1731267419
  35.638 Loading script.dat: 1231 bytes.
  35.644 Checksum for script __level__/control.lua: 1487321736
  40.384 Info AppManagerStates.cpp:1419: Deleting active scenario.
  40.769 Loading map C:\Users\Doublect\AppData\Roaming\Factorio\saves\Solo84b3CrashWRRight3.zip: 35233394 bytes.
  40.831 Loading level.dat: 105205508 bytes.
  40.836 Info Scenario.cpp:178: Map version 2.0.19-0
  43.985 Loading blueprint storage: Local timestamp 1731267411, Cloud timestamp 1731267419
  45.071 Loading script.dat: 1231 bytes.
  45.076 Checksum for script __level__/control.lua: 1487321736
  47.871 Info AppManagerStates.cpp:1419: Deleting active scenario.
  48.253 Loading map C:\Users\Doublect\AppData\Roaming\Factorio\saves\Solo84b3CrashWRRight2.zip: 35230749 bytes.
  48.318 Loading level.dat: 105223995 bytes.
  48.323 Info Scenario.cpp:178: Map version 2.0.19-0
  51.466 Loading blueprint storage: Local timestamp 1731267411, Cloud timestamp 1731267419
  52.570 Loading script.dat: 1231 bytes.
  52.575 Checksum for script __level__/control.lua: 1487321736
  55.043 Info AppManagerStates.cpp:1419: Deleting active scenario.
  55.440 Loading map C:\Users\Doublect\AppData\Roaming\Factorio\saves\Solo84b3CrashWRRight1.zip: 35047349 bytes.
  55.509 Loading level.dat: 104478966 bytes.
  55.514 Info Scenario.cpp:178: Map version 2.0.19-0
  58.676 Loading blueprint storage: Local timestamp 1731267411, Cloud timestamp 1731267419
  59.752 Loading script.dat: 1231 bytes.
  59.757 Checksum for script __level__/control.lua: 1487321736
  62.710 Info AppManagerStates.cpp:1419: Deleting active scenario.
  63.116 Loading map C:\Users\Doublect\AppData\Roaming\Factorio\saves\Solo84b3CrashWRRight.zip: 35549921 bytes.
  63.184 Loading level.dat: 105698639 bytes.
  63.189 Info Scenario.cpp:178: Map version 2.0.19-0
  66.356 Loading blueprint storage: Local timestamp 1731267411, Cloud timestamp 1731267419
  67.297 Time travel logging:
  40.384 Scenario is being deleted
  47.871 Scenario is being deleted
  55.043 Scenario is being deleted
  62.710 Scenario is being deleted
Factorio crashed. Generating symbolized stacktrace, please wait ...
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Util\ReleaseAssert.cpp(7): ReleaseAssertFailed
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\CircuitNetwork\Behaviors\AsteroidCollectorControlBehavior.cpp(65): AsteroidCollectorControlBehavior::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Entity\Entity.cpp(1895): Entity::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Entity\EntityWithHealth.cpp(145): EntityWithHealth::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Entity\EntityWithOwner.cpp(348): EntityWithOwner::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Entity\EntityGhost.cpp(629): EntityGhost::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Surface\Surface.cpp(136): Surface::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Map\Map.cpp(1719): Map::checkConsistency
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Map\MapSetupHelper.cpp(189): MapSetupHelper::MapSetupHelper
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Map\Map.cpp(827): Map::setupEntities
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Scenario\Scenario.cpp(331): Scenario::loadFactory
C:\Users\build\AppData\Local\Temp\factorio-build-5qgi5w\src\Scenario\ParallelScenarioLoader.cpp(192): ParallelScenarioLoader::doLoad
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*)(MapInterface,ParallelScenarioLoader *,MapDeserialiser *,enum InputType,InputSource *,MultiplayerManagerBase *,NamedBool<EnableReplayTag>),MapInterface,ParallelScenarioLoader *,MapDeserialiser *,enum InputType,InputSource *,MultiplayerManagerBase *,enum NamedBool<EnableReplayTag>::Enum>,0,1,2,3,4,5,6,7>
minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(97): thread_start<unsigned int (__cdecl*)(void *),1>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5E247614)
00007FFA5E247614 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFA5FFE26A1)
00007FFA5FFE26A1 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
  69.417 Error AsteroidCollectorControlBehavior.cpp:123: cargoSignalsCopy == this->computeCargoSignals() was not true
  69.417 Error CrashHandler.cpp:643: Received 22
Logger::writeStacktrace skipped.
  69.493 Info CrashHandler.cpp:318: Executable CRC: 1438233420
  69.493 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.
  70.565 Error CrashHandler.cpp:270: Heap validation: success.
  70.566 Creating crash dump.
  70.823 CrashDump success
I hope I could help with this!
Attachments
factorio-dump-current.dmp
(1.12 MiB) Downloaded 5 times
factorio-current.log
(12.62 KiB) Downloaded 3 times
playa_one
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Nov 19, 2024 5:22 pm
Contact:

Re: [2.0.20] Crash on save consistency checking (AsteroidCollectorControlBehavior)

Post by playa_one »

I'm have the same crash, I can't load my main Space Age save. I'll try using 2.0.19 and deleting some ACs to see if that helps.

I do have one space platform that has been neglected in orbit for a while taking asteroid damage. It quite possibly has a AC ghost at this point.

Doublect, thanks for troubleshooting!
playa_one
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Nov 19, 2024 5:22 pm
Contact:

Re: [2.0.20] Crash on save consistency checking (AsteroidCollectorControlBehavior)

Post by playa_one »

I did have one Asteroid Collector ghost with a circuit network connected. I loaded up 2.0.19 I removed the ghost and the save works with 2.0.20 now.

Thanks again Doublect!
al0a
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Nov 20, 2024 12:53 pm
Contact:

Re: [2.0.20] Crash on save consistency checking (AsteroidCollectorControlBehavior)

Post by al0a »

I have the same issue, in 2.0.19 a spaceship got badly damaged because turrets did not get enough bullets to keep the asteroids at bay. Since 2.0.20 I can't open my savegame. Will try the revert version fix if the itch gets to out of hand
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3078
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.20] Crash on save consistency checking (AsteroidCollectorControlBehavior)

Post by boskid »

This was fixed in 2.0.21
Post Reply

Return to “Resolved Problems and Bugs”