[1.1.101] (UPDATE - FIXED IT) Crash loading save, force.getIndex() check fails

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
rudyauction509
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Jan 26, 2024 6:37 am
Contact:

[1.1.101] (UPDATE - FIXED IT) Crash loading save, force.getIndex() check fails

Post by rudyauction509 »

EDIT2: Reinstalled the game and all mods after a Reddit user loaded my save without problems, all saves are now loading properly!

EDIT: attached original save file. Also, I should note that I used the editor to upgrade bot speed to I think level 250 when I created the world.

Factory was performing well. Saved to quit and install a new mod (didn't install it, didn't make it that far), game crashed right after (or right before finishing, it was close) saving. Restarted PC, checked drivers, tried to re-load world, load bar gets to the end then the game crashes. Same for all 3 auto-saves and my manual backup (15 minutes old). Other worlds work fine but everything I have for this one is gone. Log file copied below. Mods: miniloader, ultimate belts, ultimate belts smart fix. PC specs: I9 12900k, 32gb RAM, 512gb SSD, RTX 4070, win10. I can upload the save file if needed, if this looks recoverable please let me know.

Code: Select all

0.000 2024-01-25 23:33:21; Factorio 1.1.101 (build 62011, win64, steam)
   0.000 Operating system: Windows 10 (build 19045) 
   0.000 Initializing Steam API.
   0.000 Program arguments: "G:\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" "--wait-to-close" "13328" 
   0.000 Config path: C:/Users/user1/AppData/Roaming/Factorio/config/config.ini
   0.000 Read data path: G:/Steam/steamapps/common/Factorio/data
   0.000 Write data path: C:/Users/user1/AppData/Roaming/Factorio [27440/121586MB]
   0.000 Binaries path: G:/Steam/steamapps/common/Factorio/bin
   0.014 System info: [CPU: 12th Gen Intel(R) Core(TM) i9-12900KF, 24 cores, RAM: 6485/32624 MB, page: 8935/37488 MB, virtual: 4354/134217727 MB, extended virtual: 0 MB]
   0.025 Memory info:
   0.025  [0]: Patriot Memory (PDP Systems) 4000 C20 Series 16384 MB 4000 MHz 1.35 v
   0.025  [1]: Patriot Memory (PDP Systems) 4000 C20 Series 16384 MB 4000 MHz 1.35 v
   0.026 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: en]
   0.118 Video driver: windows
   0.118 Available displays: 1
   0.118  [0]: \\.\DISPLAY1 - NVIDIA GeForce RTX 4070 {0x05, [0,0], 3840x2160, 32bit, 60Hz}
   0.148 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: 0; d3dcompiler_47.dll
   0.310 Initialised Direct3D[0]: NVIDIA GeForce RTX 4070; id: 10de-2786; driver: nvldumdx.dll 31.0.15.4617
   0.310   D3D Feature Level: 11.1, DXGI 1.5+, SwapChain: 3,flip-discard,-,-,-,none
   0.310   [Local Video Memory] Budget: 11258MB, CurrentUsage: 7MB, Reservation: 0/5757MB
   0.310   [Non-Local Vid.Mem.] Budget: 15544MB, CurrentUsage: 0MB, Reservation: 0/7900MB
   0.310   Tiled resources: Tier 2
   0.310   Unified Memory Architecture: No
   0.310   BGR 565 Supported: Yes
   0.310   MaximumFrameLatency: 3, GPUThreadPriority: 0
   0.310 Graphics settings preset: very-high
   0.310   Dedicated video memory size 12026 MB
   0.370 Desktop composition is active.
   0.370 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality] [Color: 32bit]
   0.370                   [Max threads (load/render): 32/24] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Other: STDCWT] [B:19,C:0,S:112]
   0.413 [Audio] Backend:SDL(default); Driver:wasapi, Device:INSIGNIA-TV (NVIDIA High Definition Audio), Depth:16, Channels:2, Frequency:44100
   0.578 Loading mod settings miniloader 1.15.7 (settings.lua)
   0.582 Loading mod core 0.0.0 (data.lua)
   0.675 Loading mod base 1.1.101 (data.lua)
   1.136 Loading mod flib 0.13.0 (data.lua)
   1.144 Loading mod UltimateBelts 1.1.1 (data.lua)
   1.153 Loading mod miniloader 1.15.7 (data.lua)
   1.163 Loading mod UltimateBeltsSmartFix 0.1.0 (data.lua)
   1.170 Loading mod base 1.1.101 (data-updates.lua)
   1.182 Loading mod UltimateBelts 1.1.1 (data-updates.lua)
   1.189 Loading mod miniloader 1.15.7 (data-updates.lua)
   1.265 Checksum for core: 905122912
   1.265 Checksum of base: 1054619811
   1.265 Checksum of flib: 574468295
   1.265 Checksum of UltimateBelts: 2009818595
   1.265 Checksum of miniloader: 3779101518
   1.265 Checksum of UltimateBeltsSmartFix: 3193552362
   1.452 Prototype list checksum: 1260587016
   1.482 Loading sounds...
   5.473 Info PlayerData.cpp:78: Local player-data.json unavailable
   5.473 Info PlayerData.cpp:81: Cloud player-data.json available, timestamp 1706250765
   5.603 Initial atlas bitmap size is 16384
   5.630 Created atlas bitmap 16384x16380 [none]
   5.633 Created atlas bitmap 16384x13080 [none]
   5.633 Created atlas bitmap 8192x4208 [decal]
   5.634 Created atlas bitmap 16384x7616 [low-object, linear-minification]
   5.634 Created atlas bitmap 8192x4432 [mipmap, linear-minification, linear-magnification, linear-mip-level]
   5.634 Created atlas bitmap 16384x6064 [terrain, mipmap, linear-minification, linear-mip-level]
   5.635 Created atlas bitmap 4096x3216 [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
   5.635 Created atlas bitmap 4096x1856 [smoke, mipmap, linear-minification, linear-magnification]
   5.635 Created atlas bitmap 4096x3088 [mipmap]
   5.636 Created atlas bitmap 8192x2352 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
   5.636 Created atlas bitmap 8192x1496 [alpha-mask]
   5.638 Created atlas bitmap 16384x14776 [shadow, linear-magnification, alpha-mask]
   5.638 Created atlas bitmap 8192x2352 [shadow, mipmap, linear-magnification, alpha-mask]
   5.638 Created atlas bitmap 2048x240 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
   5.645 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
  18.667 Parallel Sprite Loader initialized (threads: 23)
  22.633 Sprites loaded
  22.645 Generated mipmaps (4) for atlas [3] of size 16384x7616   
  22.656 Generated mipmaps (3) for atlas [4] of size 8192x4432   
  22.667 Generated mipmaps (3) for atlas [5] of size 16384x6064   
  22.678 Generated mipmaps (3) for atlas [6] of size 4096x3216   
  22.689 Generated mipmaps (3) for atlas [7] of size 4096x1856   
  22.715 Generated mipmaps (3) for atlas [8] of size 4096x3088   
  22.727 Generated mipmaps (5) for atlas [9] of size 8192x2352   
  22.739 Generated mipmaps (3) for atlas [12] of size 8192x2352   
  22.754 Custom mipmaps uploaded (1942)
  22.937 Factorio initialised
  22.938 Steam Storage Quota: 23752/23841
  24.643 Loading map C:\Users\user1\AppData\Roaming\Factorio\saves\peaceful maxed bots.zip: 14902602 bytes.
  24.681 Loading level.dat: 41736692 bytes.
  24.683 Info Scenario.cpp:204: Map version 1.1.101-1
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\users\build\appdata\local\temp\factorio-build-yrsvnh\src\entity\militarytarget.cpp (146): MilitaryTarget::checkNearbyForcesUnRegistration
c:\users\build\appdata\local\temp\factorio-build-yrsvnh\src\entity\militarytarget.cpp (93): MilitaryTarget::unregisterOnChunk
c:\users\build\appdata\local\temp\factorio-build-yrsvnh\src\entity\entitywithowner.cpp (347): EntityWithOwner::setIsMilitaryTarget
c:\users\build\appdata\local\temp\factorio-build-yrsvnh\src\map\saveloadhelper.cpp (7): LoadHelper::setup
c:\users\build\appdata\local\temp\factorio-build-yrsvnh\src\map\map.cpp (1101): Map::setupEntities
c:\users\build\appdata\local\temp\factorio-build-yrsvnh\src\map\map.cpp (1184): Map::setupEntities
c:\users\build\appdata\local\temp\factorio-build-yrsvnh\src\scenario\scenario.cpp (352): Scenario::loadFactory
c:\users\build\appdata\local\temp\factorio-build-yrsvnh\src\scenario\parallelscenarioloader.cpp (172): ParallelScenarioLoader::doLoad
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\thr\xthread (230): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl*)(MapInterface,ParallelScenarioLoader *,MapDeserialiser *,enum InputType,InputHandler *,MultiplayerManagerBase *,NamedBool<EnableReplayTag>),MapInterface,ParallelScenarioLoader *,MapDeserialiser *,enum InputType,InputHandler *,MultiplayerManagerBase *,enum NamedBool<EnableReplayTag>::Enum>,std::default_delete<std::tuple<void (__cdecl*)(MapInterface,ParallelScenarioLoader *,MapDeserialiser *,enum InputType,InputHandler *,MultiplayerManagerBase *,NamedBool<EnableReplayTag>),MapInterface,ParallelScenarioLoader *,MapDeserialiser *,enum InputType,InputHandler *,MultiplayerManagerBase *,enum NamedBool<EnableReplayTag>::Enum> > > >::_Go
c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\thr\xthread (209): std::_Pad::_Call_func
minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (97): thread_start<unsigned int (__cdecl*)(void *),1>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9B8C17344)
00007FF9B8C17344 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9B8D826B1)
00007FF9B8D826B1 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
  26.664 Error Chunk.cpp:828: force.getIndex() - 1u < this->activeNeighbourForces.size() was not true
  26.664 Error CrashHandler.cpp:641: Received 22
Logger::writeStacktrace skipped.
  26.697 Info CrashHandler.cpp:315: Executable CRC: 2602457318
  26.697 Error Util.cpp:100: 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.
  29.465 Uploading log file
  29.472 Error CrashHandler.cpp:266: Heap validation: success.
  29.473 Creating crash dump.
  29.651 CrashDump success
Attachments
peaceful maxed bots.zip
Save file
(14.21 MiB) Downloaded 28 times
Last edited by rudyauction509 on Fri Jan 26, 2024 9:39 pm, edited 1 time in total.

SoShootMe
Filter Inserter
Filter Inserter
Posts: 476
Joined: Mon Aug 03, 2020 4:16 pm
Contact:

Re: [1.1.101] Crashed after save, corrupted save AND all auto-saves

Post by SoShootMe »

I take it you don't have the log from the first crash (during or just after saving)? Do all the autosaves produce the same stack trace?

The simplest explanation I can think of is that the in-memory game state was corrupted before the oldest autosave, in a way that only shows up on load, and the first crash is a separate problem that had immediate effect. Given the general stability of the game it is more likely this is a hardware issue than a game bug - try running a memory tester for a few hours.

I'd suggest uploading the oldest non-working save that you have available, plus the log from trying to load it, for the developers to look at.

rudyauction509
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Jan 26, 2024 6:37 am
Contact:

Re: [1.1.101] Crash loading save, force.getIndex() check fails

Post by rudyauction509 »

I don’t, I assumed it was a simple one-time glitch and reloaded before checking which cleared the log. Save file is the oldest, all other saves give the exact same errors. Based on a different post I think a bit got flipped but didn’t register an error until I exited the game. Memory last tested a week ago, completely stable through 8 hours and I reduced clocks slightly after for additional safety margin.

SoShootMe
Filter Inserter
Filter Inserter
Posts: 476
Joined: Mon Aug 03, 2020 4:16 pm
Contact:

Re: [1.1.101] Crash loading save, force.getIndex() check fails

Post by SoShootMe »

rudyauction509 wrote:
Fri Jan 26, 2024 8:51 am
I don’t, I assumed it was a simple one-time glitch and reloaded before checking which cleared the log.
I rather doubt it helps now but the previous log is also retained (factorio-previous.log). I think you've provided all you can and will have to see what the devs make of it.

rudyauction509
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Jan 26, 2024 6:37 am
Contact:

Re: [1.1.101] Crash loading save, force.getIndex() check fails

Post by rudyauction509 »

I made a couple dozen attempts after reinstalling drivers etc., but I’ll definitely remember for next time.

Post Reply

Return to “1 / 0 magic”