[wheybags] [16.4] Crash on autosave as server: "!this->state->getType().isSavingMap() was not true"

This subforum contains all the issues which we already resolved.
Post Reply
Filter Inserter
Filter Inserter
Posts: 456
Joined: Sun Oct 23, 2016 11:42 pm

[wheybags] [16.4] Crash on autosave as server: "!this->state->getType().isSavingMap() was not true"

Post by Mylon » Sun Dec 17, 2017 7:59 pm

I was running a dedicated server and it crashed. It seems it crashed in the auto-save-on-last-player-leave.

Attached is the log, the most recent save file (which may or may not work), and the most recent autosave if the save file doesn't work.

No mods, but I am using a custom scenario (included in the save file).
(13.49 MiB) Downloaded 24 times
(13.48 MiB) Downloaded 20 times
(1.04 MiB) Downloaded 29 times

Global Moderator
Global Moderator
Posts: 5483
Joined: Wed Jan 07, 2015 5:53 pm

Re: [16.4] Crash on autosave as server: "!this->state->getType().isSavingMap() was not true"

Post by Loewchen » Sun Dec 17, 2017 8:04 pm

End of log:

Code: Select all

103702.049 Info UnparsedNetworkMessage.cpp:87: Invalid packet (type ClientToServerHeartbeat) received from heartbeat outside latency window
103702.049 Info UnparsedNetworkMessage.cpp:98: Message data: 26 00 4f af ab 07 99 6c 0c 00
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-r5luzy\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-r5luzy\src\util\logger.cpp (371): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-r5luzy\src\util\logger.cpp (470): Logger::logStacktrace
c:\cygwin64\tmp\factorio-r5luzy\src\util\logging.cpp (78): Logging::logAndAbortOrThrow
c:\cygwin64\tmp\factorio-r5luzy\src\util\logging.cpp (73): Logging::logAndAbortOrThrow
c:\cygwin64\tmp\factorio-r5luzy\src\net\servermultiplayermanager.cpp (1022): ServerMultiplayerManager::startSavingMapDuringAutoPause
c:\cygwin64\tmp\factorio-r5luzy\src\net\servermultiplayermanager.cpp (546): ServerMultiplayerManager::updateInternal
c:\cygwin64\tmp\factorio-r5luzy\src\net\servermultiplayermanager.cpp (518): ServerMultiplayerManager::update
c:\cygwin64\tmp\factorio-r5luzy\src\mainloop.cpp (897): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-r5luzy\src\mainloop.cpp (852): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-r5luzy\src\mainloop.cpp (467): MainLoop::mainLoopStepHeadless
c:\cygwin64\tmp\factorio-r5luzy\src\mainloop.cpp (326): MainLoop::run
c:\cygwin64\tmp\factorio-r5luzy\src\main.cpp (674): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (283): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00000000771359CD)
00000000771359CD (kernel32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 000000007726A561)
000000007726A561 (ntdll): (filename not available): RtlUserThreadStart
103706.715 Error ServerMultiplayerManager.cpp:1022: !this->state->getType().isSavingMap() was not true
Logger::writeStacktrace skipped.
103706.715 Error CrashHandler.cpp:128: Map tick at moment of crash: 814233
103706.738 Error Util.cpp:67: 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.
103714.655 Creating crash dump.
103714.859 CrashDump success

User avatar
Factorio Staff
Factorio Staff
Posts: 300
Joined: Fri Jun 02, 2017 1:50 pm

Re: [wheybags] [16.4] Crash on autosave as server: "!this->state->getType().isSavingMap() was not tr

Post by wheybags » Tue Dec 19, 2017 5:09 pm

Fixed for 0.16.7. Thanks for the report!

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: Hansi-TWZ, LeonSkills