Page 1 of 1

[Rseding91] [2.0.24] Crash loading save, no stacktrace

Posted: Mon Dec 09, 2024 10:31 am
by wizarth
A few seconds after loading the attached save, Factorio crashes to the desktop with no message etc.

First experienced in 2.0.23, updated to 2.0.24 to test if resolved.

Please let me know if any additional diagnosis/reproduction steps would be helpful, e.g. crash dumps or such (I work as a C++ developer so have assorted Windows debugging tools).

Edit: I tested again after rebooting. Game ran for longer, approximately half a minute, before crashing. I felt like the crash before the reboot was variable. It may have been related to how long I took to zoom the camera out from my player?

Another test, with Task Manager showing RAM and GPU RAM usage. Factorio ran for probably two minutes. RAM and GPU memory usage were stable, no run away leak/usage.

Edit Again: Since there was nothing showing in the logs, and no crash dump created, I kept poking about. This is from Event Viewer.

Code: Select all

Faulting application name: Factorio.exe, version: 2.0.24.15340, time stamp: 0x6751b068
Faulting module name: ntdll.dll, version: 10.0.19041.5007, time stamp: 0x688f8c4b
Exception code: 0xc0000374
Fault offset: 0x00000000000ff3c9
Faulting process ID: 0x9630
Faulting application start time: 0x01db4a26bf16e9c6
Faulting application path: D:\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report ID: 1fa34c30-74e2-464d-974d-ee23c5759675
Faulting package full name: 
Faulting package-relative application ID: 

Code: Select all

Fault bucket 1708318524644381737, type 4
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: Factorio.exe
P2: 2.0.24.15340
P3: 6751b068
P4: StackHash_8b73
P5: 10.0.19041.5007
P6: 688f8c4b
P7: c0000374
P8: PCH_44_FROM_ntdll+0x000000000009E044
P9: 
P10: 

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERF172.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERF2DA.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERF30A.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERF308.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERF329.tmp.txt

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Factorio.exe_7e4da42bdf736bf77c6ab2647ed430944444cf_899926c2_c3a8a328-04c7-4c8f-a939-0a5ec2be9dfe

Analysis symbol: 
Rechecking for solution: 0
Report Id: 1fa34c30-74e2-464d-974d-ee23c5759675
Report Status: 268435456
Hashed bucket: 6d33116aa40ffa42d7b52aa5a8a5d429
Cab Guid: 0
Edit some more:
Because I don't know how to leave it alone: Attached WinDbg and caught the crash in the debugger. Attatched the minidump.

> kb16

Code: Select all

 # RetAddr           : Args to Child                                                           : Call Site
00 00007ffa`787d8112 : 000002e3`180a3aa0 00007ffa`788397f0 00000000`0000000f 000002e3`58bc0000 : ntdll!RtlReportCriticalFailure+0x56
01 00007ffa`787d83fa : 00000000`0000000f 00000000`00000030 000002e3`58bc0000 000000ed`a7d5c770 : ntdll!RtlpHeapHandleError+0x12
02 00007ffa`787de081 : 000002e4`59978610 00000000`000000f3 00000000`00000014 000002e3`58ad11d0 : ntdll!RtlpHpHeapHandleError+0x7a
03 00007ffa`7878309f : 00000000`02420001 00000000`000000f3 000002e3`081d7420 00000000`00000000 : ntdll!RtlpLogHeapFailure+0x45
04 00007ffa`786fb3c7 : 000002e3`58ad0000 7fffffff`0000000a 00000000`00000028 00000000`00000000 : ntdll!RtlpLowFragHeapAllocFromContext+0x87a4f
05 00007ff6`069f10a8 : 00000000`00000000 00000000`00000028 00010a03`fffd5037 000108fb`fffd0000 : ntdll!RtlpAllocateHeapInternal+0x9a7
06 00007ff6`069bc91f : 00000000`ffffffea 00000000`00000008 000002e4`5f49d540 00000000`00000085 : Factorio!_malloc_base+0x44 [minkernel\crts\ucrt\src\appcrt\heap\malloc_base.cpp @ 34] 
07 00007ff6`05eee2b9 : 00000000`00000008 000000ed`a7d5c8a9 00000000`00000005 00000000`00000085 : Factorio!operator new+0x1f [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp @ 35] 
08 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!AdvancedTile::registerEntity+0x2c [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Map\AdvancedTile.cpp @ 50] 
09 00007ff6`05622197 : 000002e3`06b9b540 000108fb`fffd4d3b 000108f8`fffffea7 000002e3`06b9b558 : Factorio!Surface::addEntityWithoutSetup+0x129 [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Surface\Surface.cpp @ 204] 
0a 00007ff6`0562c9ff : 00000000`3efe9c00 00000000`ffffffea 0001097b`fffd4eb9 00000000`000108fb : Factorio!Segment::changeSegmentPosition+0x247 [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Entity\Segments\Segment.cpp @ 250] 
0b 00007ff6`056273e6 : 00000201`7ffa022f 000002e4`607ea150 000001e2`b18b3e14 000002e4`408a6fb0 : Factorio!SegmentEngine::updateSegments+0x25f [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Entity\Segments\SegmentEngine.cpp @ 115] 
0c (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!SegmentEngine::update+0x29 [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Entity\Segments\SegmentEngine.cpp @ 96] 
0d (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!SegmentedUnitNavigation::moveUnit+0xc4 [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Entity\Segments\SegmentedUnitNavigation.cpp @ 133] 
0e 00007ff6`05efa98c : 00000200`00000000 00000000`00000003 000001e2`b18b3e14 000002e4`408a6fb0 : Factorio!SegmentedUnitController::update+0x176 [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Entity\Segments\SegmentedUnitController.cpp @ 118] 
0f 00007ff6`05bdbbe5 : 000001e2`b18d5fc8 00000000`000000a2 00000000`00000003 00000000`00000000 : Factorio!Surface::update+0x67c [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Surface\Surface.cpp @ 2486] 
10 00007ff6`051ac61c : 000002e3`2f518580 000002e3`17ac8970 000002e3`17ac8970 000001e2`b183c33c : Factorio!Map::updateEntities+0x375 [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Map\Map.cpp @ 1273] 
11 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!Map::update+0x10 [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Map\Map.cpp @ 1223] 
12 00007ff6`05cedd43 : 000002e4`7b18b4a0 00000000`00000000 00000000`00000000 000002e4`7b18bbb2 : Factorio!Game::update+0x7c [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Game.cpp @ 175] 
13 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!Scenario::update+0xdc [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Scenario\Scenario.cpp @ 1247] 
14 00007ff6`05226080 : 00000000`00000000 000000ed`a7d5cce0 00000000`00000000 00000000`00000000 : Factorio!Scenario::updateStep+0x103 [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\Scenario\Scenario.cpp @ 1160] 
15 00007ff6`05225408 : 00000000`00000000 000002e4`7b18b4a0 000002e3`17b0e940 00000000`00000000 : Factorio!MainLoop::gameUpdateStep+0x930 [C:\Users\build\AppData\Local\Temp\factorio-build-mzgSZi\src\MainLoop.cpp @ 1400] 

Re: [2.0.24] Crash loading save, no stacktrace

Posted: Fri Dec 13, 2024 7:00 am
by wizarth
Still occurring in 2.0.25

Stack trace from WinDbg:

Code: Select all

0:148> kb16
 # RetAddr           : Args to Child                                                           : Call Site
00 00007fff`f8398112 : 00000000`00000000 00007fff`f83f97f0 00000000`0000000f 0000013c`c0dd0000 : ntdll!RtlReportCriticalFailure+0x56
01 00007fff`f83983fa : 00000000`0000000f 00000000`00000030 0000013c`c0dd0000 00007fff`f830a0f3 : ntdll!RtlpHeapHandleError+0x12
02 00007fff`f839e081 : 0000013d`e231deb0 00000000`0000007c 00000000`00000014 0000013c`c0fa1110 : ntdll!RtlpHpHeapHandleError+0x7a
03 00007fff`f834309f : 00000000`01bf0001 00000000`0000007c 0000013d`e0347380 00000000`00000000 : ntdll!RtlpLogHeapFailure+0x45
04 00007fff`f82bb3c7 : 0000013c`c0fa0000 7fffffff`00000001 00000000`00000028 0000013d`00000000 : ntdll!RtlpLowFragHeapAllocFromContext+0x87a4f
*** WARNING: Unable to verify checksum for D:\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe
05 00007ff6`51667258 : 00000000`00000000 00000000`00000028 00029359`0001c4b6 00029359`00010000 : ntdll!RtlpAllocateHeapInternal+0x9a7
06 00007ff6`51632acf : 00000000`0000000e 00000000`00000014 0000013d`ebab25c0 00000000`00000147 : Factorio!_malloc_base+0x44 [minkernel\crts\ucrt\src\appcrt\heap\malloc_base.cpp @ 34] 
07 00007ff6`50b62559 : 00000000`00000014 0000001d`7181c7d9 00000000`00000007 00000000`00000147 : Factorio!operator new+0x1f [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp @ 35] 
08 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!AdvancedTile::registerEntity+0x2c [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Map\AdvancedTile.cpp @ 50] 
09 00007ff6`50293977 : 0000013d`cc9cd010 00028dfb`0001bffe 00028dfe`000000df 0000013d`cc9cd028 : Factorio!Surface::addEntityWithoutSetup+0x129 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Surface\Surface.cpp @ 204] 
0a 00007ff6`5029e1ff : 00000000`3f5ad100 00000000`0000000e 000290ad`0001c25e 00000000`00028dfb : Factorio!Segment::changeSegmentPosition+0x247 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Entity\Segments\Segment.cpp @ 250] 
0b 00007ff6`50298be6 : 00000101`b1b39abf 0000013d`e989d050 0000010a`3b0b39e8 0000013d`c91c4b60 : Factorio!SegmentEngine::updateSegments+0x25f [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Entity\Segments\SegmentEngine.cpp @ 115] 
0c (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!SegmentEngine::update+0x29 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Entity\Segments\SegmentEngine.cpp @ 96] 
0d (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!SegmentedUnitNavigation::moveUnit+0xc4 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Entity\Segments\SegmentedUnitNavigation.cpp @ 133] 
0e 00007ff6`50b6ec2c : 00000100`00000000 00000000`0000000c 0000010a`3b0b39e8 0000013d`c91c4b60 : Factorio!SegmentedUnitController::update+0x176 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Entity\Segments\SegmentedUnitController.cpp @ 118] 
0f 00007ff6`5084e955 : 0000010a`3b0cf670 00000000`0000008a 00000000`00000003 00000000`00000000 : Factorio!Surface::update+0x67c [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Surface\Surface.cpp @ 2486] 
10 00007ff6`4fe1d38c : 0000013c`eb3f5030 0000013d`ce0a5e00 0000013d`ce0a5e00 0000010a`3b05486c : Factorio!Map::updateEntities+0x375 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Map\Map.cpp @ 1273] 
11 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!Map::update+0x10 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Map\Map.cpp @ 1223] 
12 00007ff6`50960ee3 : 0000013d`d0811850 00000000`00000000 00000000`00000000 0000013d`d0811f62 : Factorio!Game::update+0x7c [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Game.cpp @ 175] 
13 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!Scenario::update+0xdc [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Scenario\Scenario.cpp @ 1247] 
14 00007ff6`4fe96fa0 : 00000000`00000000 0000001d`7181cc10 00000000`00000000 00000000`00000000 : Factorio!Scenario::updateStep+0x103 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Scenario\Scenario.cpp @ 1160] 
15 00007ff6`4fe96328 : 00000000`00000000 0000013d`d0811850 0000013c`80cd3d40 00000000`00000000 : Factorio!MainLoop::gameUpdateStep+0x930 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\MainLoop.cpp @ 1403] 

Re: [2.0.24] Crash loading save, no stacktrace

Posted: Fri Dec 13, 2024 7:08 am
by IsaacOscar
wizarth wrote: Fri Dec 13, 2024 7:00 am Still occurring in 2.0.25

Stack trace from WinDbg:

Code: Select all

0:148> kb16
 # RetAddr           : Args to Child                                                           : Call Site
00 00007fff`f8398112 : 00000000`00000000 00007fff`f83f97f0 00000000`0000000f 0000013c`c0dd0000 : ntdll!RtlReportCriticalFailure+0x56
01 00007fff`f83983fa : 00000000`0000000f 00000000`00000030 0000013c`c0dd0000 00007fff`f830a0f3 : ntdll!RtlpHeapHandleError+0x12
02 00007fff`f839e081 : 0000013d`e231deb0 00000000`0000007c 00000000`00000014 0000013c`c0fa1110 : ntdll!RtlpHpHeapHandleError+0x7a
03 00007fff`f834309f : 00000000`01bf0001 00000000`0000007c 0000013d`e0347380 00000000`00000000 : ntdll!RtlpLogHeapFailure+0x45
04 00007fff`f82bb3c7 : 0000013c`c0fa0000 7fffffff`00000001 00000000`00000028 0000013d`00000000 : ntdll!RtlpLowFragHeapAllocFromContext+0x87a4f
*** WARNING: Unable to verify checksum for D:\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe
05 00007ff6`51667258 : 00000000`00000000 00000000`00000028 00029359`0001c4b6 00029359`00010000 : ntdll!RtlpAllocateHeapInternal+0x9a7
06 00007ff6`51632acf : 00000000`0000000e 00000000`00000014 0000013d`ebab25c0 00000000`00000147 : Factorio!_malloc_base+0x44 [minkernel\crts\ucrt\src\appcrt\heap\malloc_base.cpp @ 34] 
07 00007ff6`50b62559 : 00000000`00000014 0000001d`7181c7d9 00000000`00000007 00000000`00000147 : Factorio!operator new+0x1f [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp @ 35] 
08 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!AdvancedTile::registerEntity+0x2c [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Map\AdvancedTile.cpp @ 50] 
09 00007ff6`50293977 : 0000013d`cc9cd010 00028dfb`0001bffe 00028dfe`000000df 0000013d`cc9cd028 : Factorio!Surface::addEntityWithoutSetup+0x129 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Surface\Surface.cpp @ 204] 
0a 00007ff6`5029e1ff : 00000000`3f5ad100 00000000`0000000e 000290ad`0001c25e 00000000`00028dfb : Factorio!Segment::changeSegmentPosition+0x247 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Entity\Segments\Segment.cpp @ 250] 
0b 00007ff6`50298be6 : 00000101`b1b39abf 0000013d`e989d050 0000010a`3b0b39e8 0000013d`c91c4b60 : Factorio!SegmentEngine::updateSegments+0x25f [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Entity\Segments\SegmentEngine.cpp @ 115] 
0c (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!SegmentEngine::update+0x29 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Entity\Segments\SegmentEngine.cpp @ 96] 
0d (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!SegmentedUnitNavigation::moveUnit+0xc4 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Entity\Segments\SegmentedUnitNavigation.cpp @ 133] 
0e 00007ff6`50b6ec2c : 00000100`00000000 00000000`0000000c 0000010a`3b0b39e8 0000013d`c91c4b60 : Factorio!SegmentedUnitController::update+0x176 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Entity\Segments\SegmentedUnitController.cpp @ 118] 
0f 00007ff6`5084e955 : 0000010a`3b0cf670 00000000`0000008a 00000000`00000003 00000000`00000000 : Factorio!Surface::update+0x67c [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Surface\Surface.cpp @ 2486] 
10 00007ff6`4fe1d38c : 0000013c`eb3f5030 0000013d`ce0a5e00 0000013d`ce0a5e00 0000010a`3b05486c : Factorio!Map::updateEntities+0x375 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Map\Map.cpp @ 1273] 
11 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!Map::update+0x10 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Map\Map.cpp @ 1223] 
12 00007ff6`50960ee3 : 0000013d`d0811850 00000000`00000000 00000000`00000000 0000013d`d0811f62 : Factorio!Game::update+0x7c [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Game.cpp @ 175] 
13 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!Scenario::update+0xdc [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Scenario\Scenario.cpp @ 1247] 
14 00007ff6`4fe96fa0 : 00000000`00000000 0000001d`7181cc10 00000000`00000000 00000000`00000000 : Factorio!Scenario::updateStep+0x103 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\Scenario\Scenario.cpp @ 1160] 
15 00007ff6`4fe96328 : 00000000`00000000 0000013d`d0811850 0000013c`80cd3d40 00000000`00000000 : Factorio!MainLoop::gameUpdateStep+0x930 [C:\Users\build\AppData\Local\Temp\factorio-build-pI8o6E\src\MainLoop.cpp @ 1403] 
Hmm, it's crashing in malloc, perhaps you're out of ram or have memory issues?

Re: [2.0.24] Crash loading save, no stacktrace

Posted: Fri Dec 13, 2024 2:34 pm
by Loewchen
If loading the same save crashes at different times then this is a hardware issue. If you find a way to reliable reproduce a crash (as in always and always at the same time), let us know.

Re: [2.0.24] Crash loading save, no stacktrace

Posted: Sat Dec 14, 2024 12:16 am
by wizarth
I fully understand why a hardware issue is a possible explanation for this crash. To check this, I just ran the Windows Memory Diagnostic Tool and it found no issues. Doesn't rule it out, of course. And I'm as surprised as anyone that software with such reliable determinism as Factorio is showing variable behavior like this.

The part that makes me suspect it's not a hardware issue is the crash is always in the same set of functions/callstack. I'd expect a memory hardware issue to cause crashes in other functions using memory allocation, but it's always in the SegmentedUnitNavigation::moveUnit through to AdvancedTile::registerEntity stack.

I might see if I can get another machine up and install Factorio on there and see if it reproduces on different machines.

Re: [2.0.24] Crash loading save, no stacktrace

Posted: Mon Dec 16, 2024 12:27 am
by Muche
Searching the internet for "RtlpLogHeapFailure RtlpLowFragHeapAllocFromContext" suggests it might be due to some heap corruption in multithreaded environments?
Seeing as you have 16 cores system, you could try to play with advanced debug setting "update-runner-threads-count" (Ctrl+Shift+click Settings in main menu, The rest)?

Re: [Rseding91] [2.0.24] Crash loading save, no stacktrace

Posted: Mon Dec 16, 2024 2:56 pm
by Rseding91
I'm able to load the save file and run it for 5-10 minutes or more without issue. Is there anything special you're doing once loaded that makes it crash?

I noticed this entry in the stack trace you've got:

Code: Select all

[D:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp @ 35] 
Which seems slightly off to me, but I don't know if that's a build artifact from our end of if you actually have that file at that location on disk.

Re: [Rseding91] [2.0.24] Crash loading save, no stacktrace

Posted: Mon Dec 16, 2024 4:48 pm
by Muche
I'd say the path is a build artifact. I get a similar path in the log

Code: Select all

D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288): __scrt_common_main_seh
it I enable log-stack-trace-on-non-critical-exception and enter "1e" into a combinator's constant number field.

Re: [Rseding91] [2.0.24] Crash loading save, no stacktrace

Posted: Tue Dec 17, 2024 8:00 am
by wizarth
I wasn't doing anything special, just panning the camera around, zooming in and out, starting to continue playing.

I'm pretty sure all the paths come from the debug symbols from the build process, I don't have any paths like those on my machine.

I can confirm I can't reproduce it on a Linux laptop with this save. I haven't gotten to trying it on another Windows machine...

I also saw threads suggesting it could be caused by heap corruption. I'll try out the thread count setting on this machine and see if it has any effect.

Re: [Rseding91] [2.0.24] Crash loading save, no stacktrace

Posted: Tue Dec 17, 2024 8:42 am
by wizarth
Got a different stack trace after updating to 2.0.26, but still within a minute of loading the save (leaving Factorio at the menu doesn't seem to trigger it, by the way).

When I tried running it again, to sanity check, it's not crashing. I've loaded the save with and without the debugger attached, tried flicking between random planets etc. Ran various figure 8s

Intermittent unreproducable bugs are the worst. Sorry to not be able to help more.

For reference, here's the stack trace I caught that first time. I didn't grab a dump.

Code: Select all

 # RetAddr           : Args to Child                                                           : Call Site
00 00007ffe`2d758112 : 00000000`00000000 00007ffe`2d7b97f0 00000000`0000000f 0000020f`3d690000 : ntdll!RtlReportCriticalFailure+0x56
01 00007ffe`2d7583fa : 00000000`0000000f 00000000`00000030 0000020f`3d690000 00007ffe`2d6ca0f3 : ntdll!RtlpHeapHandleError+0x12
02 00007ffe`2d75e081 : 00000210`684080a0 00000000`000000eb 0000020f`3d5f0e70 0000020f`3d5f1290 : ntdll!RtlpHpHeapHandleError+0x7a
03 00007ffe`2d70309f : 00000000`00b40001 00000000`000000eb 0000020f`73105b90 00000000`00000000 : ntdll!RtlpLogHeapFailure+0x45
04 00007ffe`2d67b3c7 : 0000020f`3d5f0000 0000020f`00000009 00000000`00000028 00000000`00000000 : ntdll!RtlpLowFragHeapAllocFromContext+0x87a4f
05 00007ff6`9ebf8be8 : 00000000`00000000 00000000`00000028 00000002`00000088 00007ffe`2d670000 : ntdll!RtlpAllocateHeapInternal+0x9a7
06 00007ff6`9ebc445f : 0000020f`6bf465f0 00000210`684082f0 0000020f`4c58f340 00000210`684082f0 : Factorio!_malloc_base+0x44 [minkernel\crts\ucrt\src\appcrt\heap\malloc_base.cpp @ 34] 
07 00007ff6`9e740014 : 0000020f`671a49d8 00000000`00000028 00000000`000000d8 00000000`00000000 : Factorio!operator new+0x1f [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp @ 35] 
08 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::_Default_allocate_traits::_Allocate+0xa [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory @ 79] 
09 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::_Allocate+0xa [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory @ 235] 
0a (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::allocator<std::_Tree_node<EnergySource const *,void *> >::allocate+0xa [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory @ 801] 
0b (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::_Alloc_construct_ptr<std::allocator<std::_Tree_node<EnergySource const *,void *> > >::_Allocate+0x13 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xmemory @ 966] 
0c (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::_Tree_node<EnergySource const *,void *>::_Buynode+0x18 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xtree @ 358] 
0d (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::_Tree<std::_Tset_traits<EnergySource const *,std::less<EnergySource const *>,std::allocator<EnergySource const *>,0> >::_Buynode+0x18 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xtree @ 1923] 
0e (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::_Tree<std::_Tset_traits<EnergySource const *,std::less<EnergySource const *>,std::allocator<EnergySource const *>,0> >::_Copy_or_move+0x18 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xtree @ 1637] 
0f 00007ff6`9e74006e : 0000020f`671a49d8 00000210`684082f0 00000000`000000d8 00000502`e4a72d30 : Factorio!std::_Tree<std::_Tset_traits<EnergySource const *,std::less<EnergySource const *>,std::allocator<EnergySource const *>,0> >::_Copy_nodes<std::_Tree<std::_Tset_traits<EnergySource const *,std::less<EnergySource const *>,std::allocator<EnergySource const *>,0> >::_Copy_tag>+0x44 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xtree @ 1658] 
10 00007ff6`9e645b83 : 0000020f`671a49d8 0000020f`4c58f340 0000004d`45f7bdc8 00000000`00000028 : Factorio!std::_Tree<std::_Tset_traits<EnergySource const *,std::less<EnergySource const *>,std::allocator<EnergySource const *>,0> >::_Copy_nodes<std::_Tree<std::_Tset_traits<EnergySource const *,std::less<EnergySource const *>,std::allocator<EnergySource const *>,0> >::_Copy_tag>+0x9e [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xtree @ 1667] 
11 00007ff6`9e2a2b45 : 0000004d`45f7bdc8 00007ff6`9ebc445f 0000004d`45f7bdc8 0000020f`6bf45c60 : Factorio!std::_Tree<std::_Tset_traits<unsigned __int64,std::less<unsigned __int64>,std::allocator<unsigned __int64>,0> >::_Copy<std::_Tree<std::_Tset_traits<unsigned __int64,std::less<unsigned __int64>,std::allocator<unsigned __int64>,0> >::_Copy_tag>+0x23 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xtree @ 1624] 
12 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::_Tree<std::_Tset_traits<unsigned __int64,std::less<unsigned __int64>,std::allocator<unsigned __int64>,0> >::{ctor}+0x40 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\xtree @ 900] 
13 00007ff6`9e20ea8f : 0000020f`671a49d8 0000020f`64a29950 0000020f`7a529748 00000000`00000000 : Factorio!std::set<unsigned __int64,std::less<unsigned __int64>,std::allocator<unsigned __int64> >::set<unsigned __int64,std::less<unsigned __int64>,std::allocator<unsigned __int64> >+0x55 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\set @ 86] 
14 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::deque<NavMeshRaySearch,std::allocator<NavMeshRaySearch> >::_Emplace_back_internal+0xa1 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\deque @ 1119] 
15 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::deque<NavMeshRaySearch,std::allocator<NavMeshRaySearch> >::emplace_back+0xa1 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\deque @ 814] 
16 00007ff6`9e21601f : 00000000`00000078 0000004d`45f7bde0 0000004d`fffff300 0000020f`0679ad10 : Factorio!AsteroidCollectorNavMesh::expandRaySearch+0x98f [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Util\AsteroidNavMesh\AsteroidCollectorNavmesh.cpp @ 1037] 
17 00007ff6`9d5fdc53 : 0000004d`45f7c2e0 0000020f`7a529748 fffff580`fffff1e7 fffff050`fffff4f3 : Factorio!NavMeshPathfinding::findPath+0x4df [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Util\AsteroidNavMesh\AsteroidCollectorNavmeshPathfinding.cpp @ 120] 
18 00007ff6`9d5fd273 : fffff580`fffff1e7 fffff050`fffff4f3 0000004d`45f7c450 00000210`82531120 : Factorio!AsteroidCollectorArm::pathFindToChunk+0x153 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Entity\AsteroidCollectorArm.cpp @ 450] 
19 00007ff6`9d5f7e07 : 0000004d`45f7c588 00007ff6`9d5fd9aa 0000020f`0686a4a0 00000210`6ca8c280 : Factorio!AsteroidCollectorArm::setAsteroidChunkTarget+0xf3 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Entity\AsteroidCollectorArm.cpp @ 326] 
1a 00007ff6`9d5f7ad6 : 00000000`00000002 ffffee00`ffffe800 0000020f`0686a4a0 0000004d`45f7c600 : Factorio!AsteroidCollector::assignArmTarget+0x167 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Entity\AsteroidCollector.cpp @ 484] 
1b 00007ff6`9d5f6e89 : 000029de`ffffe901 0000020f`03fa3801 00000210`74db8e08 4072c000`00000000 : Factorio!AsteroidCollector::updateArmTargets+0x5a6 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Entity\AsteroidCollector.cpp @ 464] 
1c 00007ff6`9e28bb6e : 0000020f`03fa38d0 0000004d`45f7c780 0000020f`03fa4fb8 00000000`00000000 : Factorio!AsteroidCollector::update+0x369 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Entity\AsteroidCollector.cpp @ 309] 
1d (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!EntityOrderHelpers::EntityOrderList<LogisticRobot,ConstructionRobot,Inserter,Roboport,Loader,AssemblingMachine,AgriculturalTower,OldAgriculturalTower,Furnace,MiningDrill,FluidWagon,ArtilleryWagon,CargoWagon,Locomotive,Character,Boiler,Generator,BurnerGenerator,Reactor,Lab,LandMine,ArtilleryFlare,ArtilleryProjectile,ArtilleryTurret,Beam,Car,SpiderVehicle,TemporaryContainer,CharacterCorpse,CombatRobot,CaptureRobot,Corpse,ElectricEnergyInterface,EnemySpawner,Explosion,FlameThrowerExplosion,FluidStream,FluidTurret,FlyingTextEntity,FusionGenerator,FusionReactor,Gate,HeatInterface,HighlightBoxEntity,InfinityContainer,InfinityPipe,ItemRequestProxy,OffshorePump,ParticleSource,PowerSwitch,Projectile,Pump,Radar,ProgrammableSpeaker,RocketSilo,RocketSiloRocket,CargoPod,SmokeWithTrigger,SpeechBubble,Sticker,Turret,AsteroidCollector,Asteroid,Thruster,SpiderUnit,Unit>::update+0x90 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Surface\ActiveEntitiesOrder.hpp @ 136] 
1e 00007ff6`9e0ffb5a : 00000502`e4a67534 0000020f`6a2328b8 00000210`6ac38700 00000000`00000004 : Factorio!EntityOrderHelpers::EntityOrderList<LogisticRobot,ConstructionRobot,Inserter,Roboport,Loader,AssemblingMachine,AgriculturalTower,OldAgriculturalTower,Furnace,MiningDrill,FluidWagon,ArtilleryWagon,CargoWagon,Locomotive,Character,Boiler,Generator,BurnerGenerator,Reactor,Lab,LandMine,ArtilleryFlare,ArtilleryProjectile,ArtilleryTurret,Beam,Car,SpiderVehicle,TemporaryContainer,CharacterCorpse,CombatRobot,CaptureRobot,Corpse,ElectricEnergyInterface,EnemySpawner,Explosion,FlameThrowerExplosion,FluidStream,FluidTurret,FlyingTextEntity,FusionGenerator,FusionReactor,Gate,HeatInterface,HighlightBoxEntity,InfinityContainer,InfinityPipe,ItemRequestProxy,OffshorePump,ParticleSource,PowerSwitch,Projectile,Pump,Radar,ProgrammableSpeaker,RocketSilo,RocketSiloRocket,CargoPod,SmokeWithTrigger,SpeechBubble,Sticker,Turret,AsteroidCollector,Asteroid,Thruster,SpiderUnit,Unit>::update+0x288e [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Surface\ActiveEntitiesOrder.hpp @ 144] 
1f (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!ActiveEntitiesList::update+0x27 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Surface\ActiveEntitiesList.hpp @ 13] 
20 00007ff6`9dddf685 : 00000502`e4a61260 00000000`0000008d 00000000`00000004 00000000`00000000 : Factorio!Surface::update+0x42a [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Surface\Surface.cpp @ 2458] 
21 00007ff6`9d3ad2dc : 0000020f`220ba440 0000020f`122dacf0 0000020f`122dacf0 00000502`e4954e94 : Factorio!Map::updateEntities+0x375 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Map\Map.cpp @ 1274] 
22 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!Map::update+0x10 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Map\Map.cpp @ 1224] 
23 00007ff6`9def1d03 : 00000210`77f79ae0 00000000`00000000 00000000`00000000 00000210`77f7a1f2 : Factorio!Game::update+0x7c [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Game.cpp @ 175] 
24 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!Scenario::update+0xdc [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Scenario\Scenario.cpp @ 1247] 
25 00007ff6`9d426f20 : 00000000`00000000 0000004d`45f7caa0 00000000`00000000 00000000`00000000 : Factorio!Scenario::updateStep+0x103 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Scenario\Scenario.cpp @ 1160] 
26 00007ff6`9d4262a8 : 00000000`00000000 00000210`77f79ae0 0000020f`7a043eb0 00000000`00000000 : Factorio!MainLoop::gameUpdateStep+0x930 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\MainLoop.cpp @ 1403] 
27 00007ff6`9e79d6c1 : 0000004d`41cf6420 00000000`00000000 00000000`00000000 0000004d`41cf6470 : Factorio!MainLoop::gameUpdateLoop+0x1c8 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\MainLoop.cpp @ 1212] 
28 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!MainLoop::mainLoopStep::__l2::<lambda_1>::operator()+0xd [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\MainLoop.cpp @ 712] 
29 (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::invoke+0xd [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\type_traits @ 1524] 
2a (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::_Invoker_ret<void,1>::_Call+0xd [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\functional @ 651] 
2b 00007ff6`9e2077d0 : 0000004d`41cf6420 00000000`00000000 0000004d`41cf6420 0000004d`45f7f860 : Factorio!std::_Func_impl_no_alloc<`MainLoop::mainLoopStep'::`2'::<lambda_1>,void>::_Do_call+0x11 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\functional @ 823] 
2c (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::_Func_class<void>::operator()+0x6 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\functional @ 869] 
2d 00007ff6`9e7fe9af : 0000004d`41cf6420 0000020f`12c027f0 00000000`00000005 00000000`00000005 : Factorio!WorkerThread::loop+0x80 [C:\Users\build\AppData\Local\Temp\factorio-build-sXYIz4\src\Util\WorkerThread.cpp @ 71] 
2e (Inline Function) : --------`-------- --------`-------- --------`-------- --------`-------- : Factorio!std::invoke+0x6 [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\type_traits @ 1540] 
2f 00007ff6`9ebd7bd0 : 0000020f`658afc20 00000000`00000000 00000000`00000000 00000000`00000000 : Factorio!std::thread::_Invoke<std::tuple<void (__cdecl LogitechLEDController::*)(void),LogitechLEDController *>,0,1>+0xf [C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\thread @ 56] 
30 00007ffe`2d357374 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : Factorio!thread_start<unsigned int (__cdecl*)(void *),1>+0x50 [minkernel\crts\ucrt\src\appcrt\startup\thread.cpp @ 97] 
31 00007ffe`2d69cc91 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x14
Huh I also do have a Logitech LED keyboard, which may or may not be relevant. I don't think I was doing anything that would trigger anything on the keyboard though - didn't have a technology finish or anything.

Separately to the crash I caught above, I have fiddled a bit with `update-runner-threads-count` as suggested earlier, but didn't see any change from it (as in, everything Just Works now).

Re: [Rseding91] [2.0.24] Crash loading save, no stacktrace

Posted: Tue Dec 17, 2024 2:04 pm
by Rseding91
In that case, and because the stack trace is in a completely different location, I'm going to have to agree with Loewchen, this is likely failing hardware.