Factorio

Factorio

View Stats:
Game crashes unclear what causes it
I have been playing factorio in the default mode and the game keeps crashing randomly for an unkown reason. I could be actively doing something, or could be idle. It even crashed one time before I actually started up my world (in the first screen right after you launch the game). I have not seen a solution to this issue.

The logs are here:

0.000 2023-01-14 11:48:34; Factorio 1.1.74 (build 60256, win64, steam) 0.000 Operating system: Windows 10 (build 19045) 0.000 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 0.000 Config path: C:/Users/Benjamin/AppData/Roaming/Factorio/config/config.ini 0.000 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data 0.000 Write data path: C:/Users/Benjamin/AppData/Roaming/Factorio [287184/476312MB] 0.000 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin 0.009 System info: [CPU: AMD Ryzen 7 5800X 8-Core Processor, 16 cores, RAM: 12317/32682 MB, page: 17946/37802 MB, virtual: 4335/134217727 MB, extended virtual: 0 MB] 0.009 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: nl] 0.019 Available displays: 2 0.019 [1]: \\.\DISPLAY2 - NVIDIA GeForce RTX 3060 Ti {0x05, [0,0], 3840x2160, 32bit, 60Hz} 0.019 [0]: \\.\DISPLAY1 - NVIDIA GeForce RTX 3060 Ti {0x01, [-1920,0], 1920x1080, 32bit, 60Hz} 0.058 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: 0; d3dcompiler_47.dll 0.170 Initialised Direct3D[0]: NVIDIA GeForce RTX 3060 Ti; id: 10de-2489; driver: nvldumdx.dll 31.0.15.1694 0.170 D3D Feature Level: 11.1, DXGI 1.5+, SwapChain: 3,flip-discard,-,-,-,none 0.170 [Local Video Memory] Budget: 7282MB, CurrentUsage: 4MB, Reservation: 0/3769MB 0.170 [Non-Local Vid.Mem.] Budget: 15573MB, CurrentUsage: 0MB, Reservation: 0/7914MB 0.170 Tiled resources: Tier 2 0.170 Unified Memory Architecture: No 0.170 BGR 565 Supported: Yes 0.170 MaximumFrameLatency: 3, GPUThreadPriority: 0 0.170 Graphics settings preset: very-high 0.170 Dedicated video memory size 8050 MB 0.208 Desktop composition is active. 0.208 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality] [Color: 32bit] 0.208 [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: 0] [Rotation quality: normal] [Other: STDCWT] [B:0,C:0,S:100] 0.264 [Audio] Backend:SDL(default); Driver:wasapi, Device:Default device, Depth:16, Channels:2, Frequency:44100 0.350 Razer Chroma Controller initialized. 0.356 Loading mod core 0.0.0 (data.lua) 0.400 Loading mod base 1.1.74 (data.lua) 0.619 Loading mod base 1.1.74 (data-updates.lua) 0.699 Checksum for core: 870127790 0.699 Checksum of base: 4211423066 0.842 Prototype list checksum: 3034860339 0.894 Loading sounds... 1.041 Info PlayerData.cpp:73: Local player-data.json unavailable 1.041 Info PlayerData.cpp:76: Cloud player-data.json available, timestamp 1673639834 1.148 Initial atlas bitmap size is 16384 1.184 Created atlas bitmap 16384x16364 [none] 1.187 Created atlas bitmap 16384x13068 [none] 1.187 Created atlas bitmap 8192x4188 [decal] 1.188 Created atlas bitmap 16384x5568 [low-object] 1.189 Created atlas bitmap 8192x4432 [mipmap, linear-minification, linear-magnification, linear-mip-level] 1.189 Created atlas bitmap 16384x6064 [terrain, mipmap, linear-minification, linear-mip-level] 1.190 Created atlas bitmap 4096x3216 [terrain-effect-map, mipmap, linear-minification, linear-mip-level] 1.190 Created atlas bitmap 4096x1856 [smoke, mipmap, linear-minification, linear-magnification] 1.190 Created atlas bitmap 4096x3088 [mipmap] 1.191 Created atlas bitmap 8192x2240 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level] 1.191 Created atlas bitmap 8192x1496 [alpha-mask] 1.194 Created atlas bitmap 16384x14772 [shadow, linear-magnification, alpha-mask] 1.194 Created atlas bitmap 8192x2352 [shadow, mipmap, linear-magnification, alpha-mask] 1.194 Created atlas bitmap 2048x240 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ] 1.198 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82 1.794 Parallel Sprite Loader initialized (threads: 15) 6.669 Sprites loaded 6.691 Generated mipmaps (4) for atlas [3] of size 16384x5568 6.702 Generated mipmaps (3) for atlas [4] of size 8192x4432 6.723 Generated mipmaps (3) for atlas [5] of size 16384x6064 6.734 Generated mipmaps (3) for atlas [6] of size 4096x3216 6.745 Generated mipmaps (3) for atlas [7] of size 4096x1856 6.774 Generated mipmaps (3) for atlas [8] of size 4096x3088 6.785 Generated mipmaps (5) for atlas [9] of size 8192x2240 6.796 Generated mipmaps (3) for atlas [12] of size 8192x2352 6.822 Custom mipmaps uploaded. 6.980 Factorio initialised 6.980 Discord overlay detected (DiscordHook64.dll) 6.982 Steam Storage Quota: 4642/4768 14.443 Loading map C:\Users\Benjamin\AppData\Roaming\Factorio\saves\Mega World.zip: 5727798 bytes. 14.470 Loading level.dat: 14082417 bytes. 14.472 Info Scenario.cpp:199: Map version 1.1.74-1 14.649 Loading script.dat: 1182 bytes. 14.652 Checksum for script C:/Users/Benjamin/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 2881393120 63.571 Info AppManager.cpp:306: Saving to _autosave2 (blocking). 63.733 Info AppManagerStates.cpp:1903: Saving finished 123.720 Info AppManager.cpp:306: Saving to _autosave3 (blocking). 123.879 Info AppManagerStates.cpp:1903: Saving finished 183.870 Info AppManager.cpp:306: Saving to _autosave1 (blocking). 184.032 Info AppManagerStates.cpp:1903: Saving finished 244.020 Info AppManager.cpp:306: Saving to _autosave2 (blocking). 244.176 Info AppManagerStates.cpp:1903: Saving finished 261.998 Error CrashHandler.cpp:494: Exception Code: c0000005, Address: 0x00007ff85ba6a1a1 ModuleBase: 0x00007ff7b6f10000, ImageSize: 01de2000, RelativeAddress: a4b5a1a1 261.998 Error CrashHandler.cpp:500: Access Violation: Read at address 0000022400000406 261.998 Error CrashHandler.cpp:514: Exception Context: rax=000002240000000e, rbx=00000224fe85fb90, rcx=00000224e759b620, rdx=0000000000000001, rsi=00000224e759b620, rdi=0000000000000001, rip=00007ff85ba6a1a1, rsp=000000ead01bfaa0, rbp=0000000000000001, r8=00000224e8859c01, r9=0000000000000000, r10=0000000000000001, r11=00000224e3725a70, r12=0000000000000000, r13=0000000000000000, r14=0000000000000001, r15=000002253da3d9d0 261.998 Crashed in C:\Windows\System32\DriverStore\FileRepository\nv_dispig.inf_amd64_ee20464bb4ac57f4\nvwgf2umx.dll (0x00007ff85b810000 - 0x00007ff85e20a000) Factorio crashed. Generating symbolized stacktrace, please wait ... c:\tmp\factorio-build-lsauqk\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack c:\tmp\factorio-build-lsauqk\src\util\logger.cpp (316): Logger::writeStacktrace c:\tmp\factorio-build-lsauqk\src\util\logger.cpp (323): Logger::logStacktrace c:\tmp\factorio-build-lsauqk\src\util\crashhandler.cpp (186): CrashHandler::writeStackTrace c:\tmp\factorio-build-lsauqk\src\util\crashhandler.cpp (543): CrashHandler::SehHandler ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8BB9C0327) 00007FF8BB9C0327 (KERNELBASE): (filename not available): UnhandledExceptionFilter ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8BDED5530) 00007FF8BDED5530 (ntdll): (filename not available): memset ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8BDEBC876) 00007FF8BDEBC876 (ntdll): (filename not available): _C_specific_handler ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8BDED241F) 00007FF8BDED241F (ntdll): (filename not available): _chkstk ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8BDE814A4) 00007FF8BDE814A4 (ntdll): (filename not available): RtlRaiseException ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8BDED0F4E) 00007FF8BDED0F4E (ntdll): (filename not available): KiUserExceptionDispatcher ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF85BA6A1A1) 00007FF85BA6A1A1 (nvwgf2umx): (filename not available): NVDEV_Thunk ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF85C34B5C2) 00007FF85C34B5C2 (nvwgf2umx): (filename not available): NVDEV_Thunk ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF85C37BA2B) 00007FF85C37BA2B (nvwgf2umx): (filename not available): NVDEV_Thunk ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF85C38B64F) 00007FF85C38B64F (nvwgf2umx): (filename not available): NVDEV_Thunk ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF85C38B5CA) 00007FF85C38B5CA (nvwgf2umx): (filename not available): NVDEV_Thunk ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF85C37FD0D) 00007FF85C37FD0D (nvwgf2umx): (filename not available): NVDEV_Thunk ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF85BD3830A) 00007FF85BD3830A (nvwgf2umx): (filename not available): NVDEV_Thunk ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF85CAEE376) 00007FF85CAEE376 (nvwgf2umx): (filename not available): OpenAdapter12 ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8BC187614) 00007FF8BC187614 (KERNEL32): (filename not available): BaseThreadInitThunk ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF8BDE826A1) 00007FF8BDE826A1 (ntdll): (filename not available): RtlUserThreadStart Stack trace logging done 263.663 Include minidump in crash report. 263.663 Error CrashHandler.cpp:191: Map tick at moment of crash: 1477071 263.698 Info CrashHandler.cpp:311: Executable CRC: 3576381844 263.698 Error Util.cpp:97: 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. 286.650 Uploading log file 286.661 Error CrashHandler.cpp:262: Heap validation: success. 286.662 Creating crash dump. 286.867 CrashDump success
< >
Showing 1-13 of 13 comments
Access Violation in the Nvidia driver, you may need to use SFC to check if the driver is not corrupt.

Make sure the driver is up to date and correctly installed, or downgrade it if the most up to date driver is causing the crash (I'm not sure what version the latest driver is).
PunCrathod Jan 14, 2023 @ 3:56am 
Do you use discord overlay or some other overlay? It has been a long time issue that for some people overlays like that can crash factorio.
Come to think of it that log does list Razer Chroma which has been known to cause issues in the past with many games.
RiO Jan 14, 2023 @ 7:06am 
Originally posted by Khan Boyzitbig of Mercia:
Come to think of it that log does list Razer Chroma which has been known to cause issues in the past with many games.
Yeah; but the crash handler's captured stack trace shows the crash originated in the display driver.
The Last Grimm Feb 13, 2023 @ 7:06am 
Hi all, I have reinstalled the drivers and still get the crash. It actually happens instantly now when I try to load my game

0.000 2023-02-13 15:58:33; Factorio 1.1.76 (build 60350, win64, steam)
0.000 Operating system: Windows 10 (build 19045)
0.000 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe"
0.000 Config path: C:/Users/Benjamin/AppData/Roaming/Factorio/config/config.ini
0.000 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
0.000 Write data path: C:/Users/Benjamin/AppData/Roaming/Factorio [277074/476312MB]
0.000 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
0.009 System info: [CPU: AMD Ryzen 7 5800X 8-Core Processor, 16 cores, RAM: 6412/32682 MB, page: 9100/37546 MB, virtual: 4329/134217727 MB, extended virtual: 0 MB]
0.009 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: lmw] [Lang: nl]
0.019 Available displays: 2
0.019 [1]: \\.\DISPLAY2 - NVIDIA GeForce RTX 3060 Ti {0x05, [0,0], 3840x2160, 32bit, 60Hz}
0.019 [0]: \\.\DISPLAY1 - NVIDIA GeForce RTX 3060 Ti {0x01, [-1920,0], 1920x1080, 32bit, 60Hz}
0.058 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: 0; d3dcompiler_47.dll
0.172 Initialised Direct3D[0]: NVIDIA GeForce RTX 3060 Ti; id: 10de-2489; driver: nvldumdx.dll 31.0.15.2849
0.172 D3D Feature Level: 11.1, DXGI 1.5+, SwapChain: 3,flip-discard,-,-,-,none
0.172 [Local Video Memory] Budget: 7270MB, CurrentUsage: 4MB, Reservation: 0/3763MB
0.172 [Non-Local Vid.Mem.] Budget: 15573MB, CurrentUsage: 1MB, Reservation: 0/7914MB
0.172 Tiled resources: Tier 2
0.172 Unified Memory Architecture: No
0.172 BGR 565 Supported: Yes
0.172 MaximumFrameLatency: 3, GPUThreadPriority: 0
0.172 Graphics settings preset: very-high
0.172 Dedicated video memory size 8038 MB
0.202 Desktop composition is active.
0.202 Graphics options: [Graphics quality: normal] [Video memory usage: high] [DXT: low-quality] [Color: 32bit]
0.202 [Max threads (load/render): 32/2] [Max texture size: 8192] [Tex.Stream.: 1] [Rotation quality: normal] [Other: STDCWT] [B:0,C:0,S:100]
0.236 [Audio] Backend:SDL(default); Driver:wasapi, Device:Default device, Depth:16, Channels:2, Frequency:44100
0.290 Razer Chroma Controller initialized.
0.294 Loading mod core 0.0.0 (data.lua)
0.330 Loading mod base 1.1.76 (data.lua)
0.478 Loading mod base 1.1.76 (data-updates.lua)
0.561 Checksum for core: 870127790
0.561 Checksum of base: 3065294274
0.692 Prototype list checksum: 3034860339
0.737 Loading sounds...
0.873 Info PlayerData.cpp:73: Local player-data.json unavailable
0.873 Info PlayerData.cpp:76: Cloud player-data.json available, timestamp 1676300282
0.968 Initial atlas bitmap size is 8192
0.987 Created atlas bitmap 8192x8192 [none]
0.988 Created atlas bitmap 8192x4208 [none]
0.988 Created atlas bitmap 4096x2120 [decal]
0.989 Created atlas bitmap 8192x2928 [low-object, linear-minification]
0.989 Created atlas bitmap 4096x2592 [mipmap, linear-minification, linear-magnification, linear-mip-level]
0.990 Created atlas bitmap 8192x3840 [terrain, mipmap, linear-minification, linear-mip-level]
0.990 Created atlas bitmap 4096x1632 [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
0.990 Created atlas bitmap 4096x1664 [smoke, mipmap, linear-minification, linear-magnification]
0.990 Created atlas bitmap 4096x928 [mipmap]
0.991 Created atlas bitmap 8192x2240 [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
0.991 Created atlas bitmap 4096x828 [alpha-mask]
1.018 Created atlas bitmap 8192x8188 [shadow, linear-magnification, alpha-mask]
1.018 Created atlas bitmap 8192x492 [shadow, linear-magnification, alpha-mask]
1.018 Created atlas bitmap 4096x1312 [shadow, mipmap, linear-magnification, alpha-mask]
1.018 Created atlas bitmap 2048x240 [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
1.037 Created virtual atlas pages 4096x4096x3
1.041 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
1.576 Parallel Sprite Loader initialized (threads: 15)
3.204 Sprites loaded
3.218 Generated mipmaps (3) for atlas [3] of size 8192x2928
3.229 Generated mipmaps (3) for atlas [4] of size 4096x2592
3.240 Generated mipmaps (3) for atlas [5] of size 8192x3840
3.251 Generated mipmaps (3) for atlas [6] of size 4096x1632
3.262 Generated mipmaps (3) for atlas [7] of size 4096x1664
3.280 Generated mipmaps (3) for atlas [8] of size 4096x928
3.291 Generated mipmaps (5) for atlas [9] of size 8192x2240
3.302 Generated mipmaps (3) for atlas [13] of size 4096x1312
3.324 Custom mipmaps uploaded.
3.394 Generated mipmaps for virtual atlas of size 4096x12288
3.563 Factorio initialised
3.565 Steam Storage Quota: 4557/4768
4.677 Loading map C:\Users\Benjamin\AppData\Roaming\Factorio\saves\_autosave2.zip: 28291296 bytes.
4.708 Loading level.dat: 77456638 bytes.
4.711 Info Scenario.cpp:199: Map version 1.1.74-1
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\tmp\factorio-build-gc97q0\src\map\map.cpp (2086): Map::checkActiveEntitiesCountConsistency
c:\tmp\factorio-build-gc97q0\src\map\map.cpp (2105): Map::checkConsistency
c:\tmp\factorio-build-gc97q0\src\map\map.cpp (1161): Map::setupEntities
c:\tmp\factorio-build-gc97q0\src\map\map.cpp (1189): Map::setupEntities
c:\tmp\factorio-build-gc97q0\src\scenario\scenario.cpp (338): Scenario::loadFactory
c:\tmp\factorio-build-gc97q0\src\scenario\parallelscenarioloader.cpp (161): 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: 00007FF83A197614)
00007FF83A197614 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF83A6826A1)
00007FF83A6826A1 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
7.707 Error Map.cpp:2086: Active entities count doesn't match. Current: 63087, expected 63088.
Logger::writeStacktrace skipped.
7.744 Info CrashHandler.cpp:311: Executable CRC: 1960215796
7.744 Error Util.cpp:97: 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.
9.205 Uploading log file
9.215 Error CrashHandler.cpp:262: Heap validation: success.
9.216 Creating crash dump.
9.413 CrashDump success
RiO Feb 13, 2023 @ 10:26am 
7.707 Error Map.cpp:2086: Active entities count doesn't match. Current: 63087, expected 63088.

You have a corrupt save file.
beadlejames Feb 14, 2023 @ 7:28am 
I've been having the same issue. Never had an issue with Factorio before :(
Overeagerdragon Feb 17, 2023 @ 9:53pm 
I'm a bit worried about these lines:

ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF83A197614)
00007FF83A197614 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF83A6826A1)
00007FF83A6826A1 (ntdll): (filename not available): RtlUserThreadStart

It points to a memory access violation in the core files of the install of your OS which CAN point to a corruption on the core-level of your OS/driver install.

Usually Ntdll-related errors point to either a corruption of the installation of either app or OS... when you reinstalled the game/drivers, did you make sure you did a clean uninstall and a clean install? (as in not just uninstalling the game but also making sure it removed remnant files like in the %/appdata, Documents-folder and registry ?)
RiO Feb 18, 2023 @ 3:38am 
Originally posted by Overeagerdragon:
I'm a bit worried about these lines: [..]

Those are just part of the captured and symbolized stack trace.
Factorio has a global error handler that kicks in when the game crashes and which attempts to walk back in the heap to reconstruct the call stack. This gives the developers basically a straight route through the entry point of the executable, down to where the actual error started.

BaseThreadInitThunk and RtlUserThreadStart are called as part of the Windows API when a new thread is started, so they usually pop up at the 'root' of such back traces. But it doesn't mean they're involved in the actual error in any way.

The actual error started here:

4.711 Info Scenario.cpp:199: Map version 1.1.74-1 Factorio crashed. Generating symbolized stacktrace, please wait ... c:\tmp\factorio-build-gc97q0\src\map\map.cpp (2086): Map::checkActiveEntitiesCountConsistency


At timestamp 4.711 an info-level log message was logged by code at line 199 in the Scenario.cpp source file, indicating the version of the game in which the map was created. (namely version 1.1.74.-1)

Directly after, Factorio crashed, starting on line 2086 of map.cpp which according to debug symbols corresponds to the checkActiveEntitiesCountConsistency method of the Map class.

The actual error corresponding to the logged reconstructed stack trace is logged after the trace - which admittedly is kind of weird, but it is what it is:

7.707 Error Map.cpp:2086: Active entities count doesn't match. Current: 63087, expected 63088.


This has nothing to do with the program being unstable; drivers being unstable; or core OS files being damaged. It's simply a corrupted save file.
Last edited by RiO; Feb 18, 2023 @ 3:49am
Overeagerdragon Feb 18, 2023 @ 3:57am 
Originally posted by RiO:
Originally posted by Overeagerdragon:
I'm a bit worried about these lines: [..]

Those are just part of the captured and symbolized stack trace.
Factorio has a global error handler that kicks in when the game crashes and which attempts to walk back in the heap to reconstruct the call stack. This gives the developers basically a straight route through the entry point of the executable, down to where the actual error started.

BaseThreadInitThunk and RtlUserThreadStart are called as part of the Windows API when a new thread is started, so they usually pop up at the 'root' of such back traces. But it doesn't mean they're involved in the actual error in any way.

The actual error started here:

4.711 Info Scenario.cpp:199: Map version 1.1.74-1 Factorio crashed. Generating symbolized stacktrace, please wait ... c:\tmp\factorio-build-gc97q0\src\map\map.cpp (2086): Map::checkActiveEntitiesCountConsistency


At timestamp 4.711 an info-level log message was logged by code at line 199 in the Scenario.cpp source file, indicating the version of the game in which the map was created. (namely version 1.1.74.-1)

Directly after, Factorio crashed, starting on line 2086 of map.cpp which according to debug symbols corresponds to the checkActiveEntitiesCountConsistency method of the Map class.

The actual error corresponding to the logged reconstructed stack trace is logged after the trace - which admittedly is kind of weird, but it is what it is:

7.707 Error Map.cpp:2086: Active entities count doesn't match. Current: 63087, expected 63088.


This has nothing to do with the program being unstable; drivers being unstable; or core OS files being damaged. It's simply a corrupted save file.


I agree if it wasn't for this line:

Logger::writeStacktrace skipped.
SFC should find out if it was a core OS issue, assuming SFC isn't corrupt itself.

Don't even need to have it fix any issue it finds so long as it finds them.
RiO Feb 18, 2023 @ 6:54am 
Originally posted by Overeagerdragon:
Logger::writeStacktrace skipped.
Because a stack trace was already dumped beforehand, so presumably integrated functionality that would otherwise dump it as part of logging something at the Error level, is skipping over it intentionally.

There's probably some gnarly try-catch logic with rethrows going on here that would cause a bit of a mess in the crash logs if it weren't special-cased like that.

Note that the message has no new timestamp; it could just be a continuation of the previous log message on a new line.
Last edited by RiO; Feb 18, 2023 @ 6:56am
Overeagerdragon Feb 18, 2023 @ 8:46am 
Originally posted by RiO:
Originally posted by Overeagerdragon:
Logger::writeStacktrace skipped.
Because a stack trace was already dumped beforehand, so presumably integrated functionality that would otherwise dump it as part of logging something at the Error level, is skipping over it intentionally.

There's probably some gnarly try-catch logic with rethrows going on here that would cause a bit of a mess in the crash logs if it weren't special-cased like that.

Note that the message has no new timestamp; it could just be a continuation of the previous log message on a new line.

yeah; that's kinda my point... if it acertained the Ntdll or kernel32 failed and that's why it can't load entities (or some of them as alluded to the entity mismatch) then it could very well be the crashhandler ellected to stop stacktracing in order to avoid falling into a loop or causing crashhandler reporting bloat.

I WILL agree with you that for whatever reason it either leads into or is caused by an entity mismatch... It's also why I said those lines worried me as Kernel or Ntdll errors usually point to corruption of SOME kind on SOME level (be that app-level, system-level or root level)..
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: Jan 14, 2023 @ 3:01am
Posts: 13