[1.1.74] Crash in RadixSorter

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
Post Reply
sweet.giorni
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Jan 11, 2023 6:27 pm
Contact:

[1.1.74] Crash in RadixSorter

Post by sweet.giorni »

This crash occurred while the game was paused overnight. I'm not using any mods. The closest known issue I could find is the crash when waking from sleep, but my PC doesn't actually have sleep enabled; it only turns the screen off after 15 minutes. Full log, save, and crash dump are attached.

Tail end of the log:

Code: Select all

160050.174 Info AppManager.cpp:306: Saving to _autosave2 (blocking).
160050.371 Info AppManagerStates.cpp:1903: Saving finished
160350.857 Info AppManager.cpp:306: Saving to _autosave3 (blocking).
160351.264 Info AppManagerStates.cpp:1903: Saving finished
160651.258 Info AppManager.cpp:306: Saving to _autosave1 (blocking).
160651.455 Info AppManagerStates.cpp:1903: Saving finished
160951.443 Info AppManager.cpp:306: Saving to _autosave2 (blocking).
160951.637 Info AppManagerStates.cpp:1903: Saving finished
161251.625 Info AppManager.cpp:306: Saving to _autosave3 (blocking).
161251.823 Info AppManagerStates.cpp:1903: Saving finished
161551.807 Info AppManager.cpp:306: Saving to _autosave1 (blocking).
161551.982 Info BlueprintShelf.cpp:720: Saving blueprint storage.
161552.012 Info AppManagerStates.cpp:1903: Saving finished
161761.357 Info BlueprintShelf.cpp:720: Saving blueprint storage.
161761.438 Info AppManagerStates.cpp:1903: Saving finished
178342.740 Time travel logging:
156649.040 Popped blueprint record (player-index: 65535, ID: 1)
156650.105 Popped blueprint record (player-index: 0, ID: 1)
156650.705 Popped blueprint record (player-index: 0, ID: 2)
156651.672 Popped blueprint record (player-index: 0, ID: 1)
156653.255 Popped blueprint record (player-index: 0, ID: 2)
157198.973 Popped blueprint record (player-index: 0, ID: 1)
157201.506 Popped blueprint record (player-index: 0, ID: 5)
157267.490 Popped blueprint record (player-index: 0, ID: 7)
161261.490 Popped blueprint record (player-index: 0, ID: 12)
161285.889 Popped blueprint record (player-index: 0, ID: 15)
161301.755 Popped blueprint record (player-index: 0, ID: 7)
161303.238 Popped blueprint record (player-index: 0, ID: 15)
161304.306 Popped blueprint record (player-index: 0, ID: 7)
161310.205 Popped blueprint record (player-index: 0, ID: 13)
161328.455 Popped blueprint record (player-index: 0, ID: 19)
178342.740 Error CrashHandler.cpp:494: Exception Code: c0000005, Address: 0x00007ff6a52b4d01
ModuleBase: 0x00007ff6a4500000, ImageSize: 01de2000, RelativeAddress: 00db4d01
178342.740 Error CrashHandler.cpp:500: Access Violation: Read at address 0000000000002400
178342.740 Error CrashHandler.cpp:514: Exception Context:
rax=0000009f0f4fa1e0, rbx=000000000000d900, rcx=0000000000000000,
rdx=0000000000002400, rsi=0000026d9d76f3c0, rdi=0000026da29865d8,
rip=00007ff6a52b4d01, rsp=0000009f0f4fa1c0, rbp=0000000000002400,
 r8=000000000000d900,  r9=0000000000000000, r10=0000026d606c34e0,
r11=0000009f0f4fa1e0, r12=0000000000000760, r13=0000000000000089,
r14=00007ff6a61784b6, r15=0000026dbd7462a0
178342.740 Crashed in C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe (0x00007ff6a4500000 - 0x00007ff6a62e2000)
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: 00007FFA9FBE5D91)
00007FFA9FBE5D91 (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFAA218ABAC)
00007FFAA218ABAC (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFAA2173B36)
00007FFAA2173B36 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFAA2188B1F)
00007FFAA2188B1F (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFAA2115B9A)
00007FFAA2115B9A (ntdll): (filename not available): RtlRestoreContext
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFAA2187B2E)
00007FFAA2187B2E (ntdll): (filename not available): KiUserExceptionDispatcher
c:\tmp\factorio-build-lsauqk\src\util\sort\radixsort.hpp (65): RadixSorter<Pair<unsigned __int64,SpriteDrawOrder *>,unsigned __int64,8>::sort<<lambda_8cf94e8b37814efca0add7a2edc83a3a> >
c:\tmp\factorio-build-lsauqk\src\graphics\drawqueue.cpp (2103): DrawQueue::sortSprites
c:\tmp\factorio-build-lsauqk\src\graphics\entityrenderer.cpp (366): EntityRenderer::prepareRow
c:\tmp\factorio-build-lsauqk\src\graphics\entityrenderer.cpp (225): EntityRenderer::threadJob
c:\tmp\factorio-build-lsauqk\src\util\workerthread.cpp (49): WorkerThread::loop
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 TransferSource::*)(void),TransferSource *>,std::default_delete<std::tuple<void (__cdecl TransferSource::*)(void),TransferSource *> > > >::_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: 00007FFAA05F55A0)
00007FFAA05F55A0 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFAA20E485B)
00007FFAA20E485B (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
178344.827 Error CrashHandler.cpp:191: Map tick at moment of crash: 5538467
178345.128 Info CrashHandler.cpp:311: Executable CRC: 3576381844
178345.128 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.
208381.425 Uploading log file
208381.435 Error CrashHandler.cpp:262: Heap validation: success.
208381.437 Creating crash dump.
208381.651 CrashDump success
Minidump summary from Visual Studio:

Code: Select all

Dump Summary
------------
Dump File:	factorio-dump-current.dmp : C:\Users\sweet\AppData\Roaming\Factorio\crash\factorio-dump-current.dmp
Last Write Time:	1/11/2023 9:57:16 AM
Process Name:	factorio.exe : C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\factorio.exe
Process Architecture:	x64
Exception Code:	0xC0000005
Exception Information:	The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Heap Information:	Not Present

System Information
------------------
OS Version:	10.0.22000
CLR Version(s):	
Attachments
factorio-crash.zip
log,minidump,save file
(8.2 MiB) Downloaded 35 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.74] Crash in RadixSorter

Post by Rseding91 »

Thanks for the report. Looking at where it crashed I can’t think of any way for it to ever read invalid memory in that execution path unless something corrupted the memory externally or the cpu executed the wrong instructions.

Do you have any way to reproduce this crash?
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Pending”