[0.17.62] Crash when loading save with alert in "--disable-audio" mode

This subforum contains all the issues which we already resolved.
dnsdhrj
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Apr 28, 2017 3:12 am
Contact:

[0.17.62] Crash when loading save with alert in "--disable-audio" mode

Post by dnsdhrj »

OS: Windows 10

Reproduce setup:
Run factorio with command line option "--disable-audio" is on, (or maybe with no audio output device?) and try to load attached savefile.
The savefile contains a programmable speaker which has alert on.

Result:
The game crashes:

Code: Select all

  55.785 Error CrashHandler.cpp:462: Exception Code: c0000005, Address: 0x00007ff66e759e12
ModuleBase: 0x00007ff66e570000, ImageSize: 0175f000, RelativeAddress: 001e9e12
  55.786 Error CrashHandler.cpp:468: Access Violation: Read at address 0000000000000038
  55.787 Error CrashHandler.cpp:482: Exception Context:
rax=000001b2d9117ea0, rbx=000001b2eab86a28, rcx=0000000000000000,
rdx=000001b2e9043010, rsi=0000000000000000, rdi=0000000000000000,
rip=00007ff66e759e12, rsp=00000017b5bfec10, rbp=000001b2eab869b0,
 r8=0000000000000000,  r9=000001b2eab86910, r10=000001b2e9197420,
r11=000001b2efc08000, r12=0000000000000e0e, r13=0000000000000000,
r14=0000000000000000, r15=000001b2e756bd18
  55.788 Crashed in I:\Factorio_0.17.62\bin\x64\factorio.exe (0x00007ff66e570000 - 0x00007ff66fccf000)
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-c3ygos\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-build-c3ygos\src\util\logger.cpp (537): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-build-c3ygos\src\util\logger.cpp (544): Logger::logStacktrace
c:\cygwin64\tmp\factorio-build-c3ygos\src\util\crashhandler.cpp (184): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-build-c3ygos\src\util\crashhandler.cpp (511): CrashHandler::SehHandler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9CA6A6B2C)
00007FF9CA6A6B2C (KERNELBASE): (filename not available): UnhandledExceptionFilter
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9CD9281CB)
00007FF9CD9281CB (ntdll): (filename not available): memset
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9CD90FD56)
00007FF9CD90FD56 (ntdll): (filename not available): _C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9CD92477F)
00007FF9CD92477F (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9CD884BEF)
00007FF9CD884BEF (ntdll): (filename not available): RtlWalkFrameChain
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9CD9234EE)
00007FF9CD9234EE (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-build-c3ygos\src\entity\programmablespeaker.cpp (259): ProgrammableSpeaker::playNote
c:\cygwin64\tmp\factorio-build-c3ygos\src\entity\programmablespeaker.cpp (136): ProgrammableSpeaker::update
c:\cygwin64\tmp\factorio-build-c3ygos\src\surface\chunk.cpp (577): Chunk::updateActiveEntities
c:\cygwin64\tmp\factorio-build-c3ygos\src\surface\chunk.cpp (634): Chunk::updateEntities
c:\cygwin64\tmp\factorio-build-c3ygos\src\surface\surface.cpp (1399): Surface::update
c:\cygwin64\tmp\factorio-build-c3ygos\src\map\map.cpp (1496): Map::updateEntities
c:\cygwin64\tmp\factorio-build-c3ygos\src\game.cpp (201): Game::update
c:\cygwin64\tmp\factorio-build-c3ygos\src\scenario\scenario.cpp (1215): Scenario::update
c:\cygwin64\tmp\factorio-build-c3ygos\src\mainloop.cpp (1191): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-build-c3ygos\src\mainloop.cpp (1060): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-build-c3ygos\src\util\workerthread.cpp (42): WorkerThread::loop
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\thr\xthread (230): std::_LaunchPad<std::unique_ptr<std::tuple<void (__cdecl MapGenerationHelper::*)(void),MapGenerationHelper *>,std::default_delete<std::tuple<void (__cdecl MapGenerationHelper::*)(void),MapGenerationHelper *> > > >::_Go
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\thr\xthread (209): std::_Pad::_Call_func
minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (115): thread_start<unsigned int (__cdecl*)(void * __ptr64)>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9CD037974)
00007FF9CD037974 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9CD8EA271)
00007FF9CD8EA271 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
  58.311 Error CrashHandler.cpp:189: Map tick at moment of crash: 3598
  58.312 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.
  62.364 Uploading log file
  62.478 Error CrashHandler.cpp:245: Heap validation: success.
  62.480 Creating crash dump.
  62.686 CrashDump success
More specification:
If you load savefile which doesn't have any alerts ringing (even when you have programmable speaker), the game doesn't crash.
You can easily test this by modifying programmable speaker in attached savefile.
Attachments
factorio-current.log
(9.18 KiB) Downloaded 130 times
alertbug.zip
Factorio savefile
(1.01 MiB) Downloaded 120 times

posila
Factorio Staff
Factorio Staff
Posts: 5330
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.62] Crash when loading save with alert in "--disable-audio" mode

Post by posila »

Thanks for the report.
Fixed for 0.17.66

Post Reply

Return to “Resolved Problems and Bugs”