[0.18.26] Saving scenario failed: vector<T> too long

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
cablegunmaster
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Apr 25, 2019 2:16 pm
Contact:

[0.18.26] Saving scenario failed: vector<T> too long

Post by cablegunmaster »

in version 0.18.26 the game gets harder to save first I thought it was the hdd.
Maybe because of some incorrectable sectors, but the game would not let me save.

Last Save I could make or is made: http://dev.jasperlankhorst.nl/factorio/_autosave2.zip

17.483 Checksum for script C:/Users/<user>/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 2031664712
17.484 Checksum for script __AtomicArtillery__/control.lua: 457908234
17.488 Checksum for script __bobinserters__/control.lua: 1820651268
17.489 Script @__even-distribution__/framework.lua:72: 0 [ED] Initializing framework... DEBUG = false
17.489 Script @__even-distribution__/framework.lua:72: 0 [ED] Registering custom scripts...
17.489 Script @__even-distribution__/framework.lua:72: 0 [ED] Script: metatables
17.489 Script @__even-distribution__/framework.lua:72: 0 [ED] Script: util
17.490 Script @__even-distribution__/framework.lua:72: 0 [ED] Script: helpers
17.490 Script @__even-distribution__/framework.lua:72: 0 [ED] Script: setup
17.491 Script @__even-distribution__/framework.lua:72: 0 [ED] Script: visuals
17.491 Script @__even-distribution__/framework.lua:72: 0 [ED] Script: drag
17.491 Script @__even-distribution__/framework.lua:72: 0 [ED] Script: cleanup
17.492 Script @__even-distribution__/framework.lua:72: 0 [ED] Registering default event handlers...
17.492 Script @__even-distribution__/framework.lua:72: 0 [ED] Registering custom inputs...
17.492 Script @__even-distribution__/framework.lua:72: 0 [ED] Input: inventory-cleanup event: on_inventory_cleanup
17.493 Script @__even-distribution__/framework.lua:72: 0 [ED] Successfully initialized
17.493 Checksum for script __even-distribution__/control.lua: 4024128330
4696.428 Info AppManager.cpp:297: Saving to _autosave2 (blocking).
4704.683 Info AppManagerStates.cpp:1844: Saving finished
5408.041 Info AppManagerStates.cpp:1844: Saving finished
9007.772 Info AppManager.cpp:297: Saving to _autosave3 (blocking).
9011.299 Warning WriteFileGuard.cpp:57: Writing C:\Users\<user>\AppData\Roaming\Factorio\saves\_autosave3.zip failed; previous version (if any) should still be available
9011.300 Error ParallelScenarioSaver.cpp:114: Saving scenario failed: vector<T> too long
12845.131 Info AppManager.cpp:297: Saving to _autosave1 (blocking).
12847.108 Warning WriteFileGuard.cpp:57: Writing C:\Users\<user>\AppData\Roaming\Factorio\saves\_autosave1.zip failed; previous version (if any) should still be available
12847.109 Error ParallelScenarioSaver.cpp:114: Saving scenario failed: vector<T> too long
12877.238 Warning WriteFileGuard.cpp:57: Writing C:/Users/<user>/AppData/Roaming/Factorio/saves\citygrid v1.0 24-05-2020-v2 save.zip failed; previous version (if any) should still be available
12877.239 Error ParallelScenarioSaver.cpp:114: Saving scenario failed: vector<T> too long
Attachments
factorio-dump-previous.dmp
(909.32 KiB) Downloaded 89 times
factorio-current.log
(12.18 KiB) Downloaded 86 times

cablegunmaster
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Apr 25, 2019 2:16 pm
Contact:

Re: [0.18.26] Saving scenario failed: vector<T> too long

Post by cablegunmaster »

added previous dump.

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

Re: [0.18.26] Saving scenario failed: vector<T> too long

Post by Rseding91 »

Thanks for the report. That error comes from the C++ standard library and is given when something tries to make a vector<T> with a size > 9,223,372,036,854,775,807

Which should literally never happen. The only case that could happen is memory corruption - since during normal gameplay if you had anything with that many elements you would have looong run out of RAM.

I suggest you run this: https://www.memtest.org/ and see if it spots anything.
If you want to get ahold of me I'm almost always on Discord.

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

Re: [0.18.26] Saving scenario failed: vector<T> too long

Post by Rseding91 »

Also based off your other bug report: your PC is busted :P you need to figure it out on your end.
If you want to get ahold of me I'm almost always on Discord.

cablegunmaster
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Apr 25, 2019 2:16 pm
Contact:

Re: [0.18.26] Saving scenario failed: vector<T> too long

Post by cablegunmaster »

16301.693 Verbose Scenario.cpp:838: Saving game as C:/Users/<user>/AppData/Roaming/Factorio/saves/citygrid v2.0-try2
16301.740 Info LuaGameScript.cpp:735: level state size: 314 bytes.
16301.740 Info LuaGameScript.cpp:735: mod-AtomicArtillery state size: 26 bytes.
16301.741 Info LuaGameScript.cpp:735: mod-bobinserters state size: 2140 bytes.
16301.743 Info LuaGameScript.cpp:735: mod-even-distribution state size: 5293 bytes.
16303.412 Info Serialiser.cpp:37: circuit-network 19kB
16303.412 Info Serialiser.cpp:37: electric-network-manager 20705kB
16303.412 Info Serialiser.cpp:37: force-data 15kB
16303.412 Info Serialiser.cpp:37: force-data.build-count-statistics 2005kB
16303.412 Info Serialiser.cpp:37: force-data.chart 14627kB
16303.412 Info Serialiser.cpp:37: force-data.chart.targetable 0kB
16303.412 Info Serialiser.cpp:37: force-data.custom-prototypes 84kB
16303.412 Info Serialiser.cpp:37: force-data.fluid-production-statistics 162kB
16303.412 Info Serialiser.cpp:37: force-data.item-production-statistics 2613kB
16303.412 Info Serialiser.cpp:37: force-data.kill-count-statistics 2090kB
16303.412 Info Serialiser.cpp:37: force-data.logistic-manager 105kB
16303.412 Info Serialiser.cpp:37: force-data.logistic-manager.targetable 0kB
16303.412 Info Serialiser.cpp:37: id-mapping 59kB
16303.412 Info Serialiser.cpp:37: map-mod-settings 0kB
16303.412 Info Serialiser.cpp:37: train-manager 891kB
16303.412 Info Serialiser.cpp:37: train-manager.targetable 0kB
16303.423 Warning WriteFileGuard.cpp:57: Writing C:/Users/<user>/AppData/Roaming/Factorio/saves\citygrid v2.0-try2.zip failed; previous version (if any) should still be available
16303.424 Error ParallelScenarioSaver.cpp:114: Saving scenario failed: vector<T> too long

cablegunmaster
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Apr 25, 2019 2:16 pm
Contact:

Re: [0.18.26] Saving scenario failed: vector<T> too long

Post by cablegunmaster »

Rseding91 wrote:
Sun May 24, 2020 5:36 pm
Also based off your other bug report: your PC is busted :P you need to figure it out on your end.
Memtest is queued on usb and starting.

cablegunmaster
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Apr 25, 2019 2:16 pm
Contact:

Re: [0.18.26] Saving scenario failed: vector<T> too long

Post by cablegunmaster »

This happened when I exited the "corrupted" save.

Code: Select all

16566.325 Time travel logging:
  17.729 Popped blueprint record (player-index: 2, ID: 68)
16566.325 Error CrashHandler.cpp:621: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-bhugfc\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-build-bhugfc\src\util\logger.cpp (542): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-build-bhugfc\src\util\logger.cpp (549): Logger::logStacktrace
c:\cygwin64\tmp\factorio-build-bhugfc\src\util\crashhandler.cpp (185): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-build-bhugfc\src\util\crashhandler.cpp (630): CrashHandler::SignalHandler
minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp (219): _seh_filter_exe
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (304): `__scrt_common_main_seh'::`1'::filt$0
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF6E3890E10)
00007FF6E3890E10 (Factorio): (filename not available): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9AC6611CF)
00007FF9AC6611CF (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9AC62A209)
00007FF9AC62A209 (ntdll): (filename not available): RtlRaiseException
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9AC65FE3E)
00007FF9AC65FE3E (ntdll): (filename not available): KiUserExceptionDispatcher
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF6E29645C3)
00007FF6E29645C3 (Factorio): (filename not available): Rail::`scalar deleting destructor'
c:\cygwin64\tmp\factorio-build-bhugfc\src\map\advancedtile.cpp (86): AdvancedTile::~AdvancedTile
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF6E387386E)
00007FF6E387386E (Factorio): (filename not available): `eh vector destructor iterator'
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF6E279BEE2)
00007FF6E279BEE2 (Factorio): (filename not available): std::array<AdvancedTile,16>::~array<AdvancedTile,16>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF6E387386E)
00007FF6E387386E (Factorio): (filename not available): `eh vector destructor iterator'
c:\cygwin64\tmp\factorio-build-bhugfc\src\surface\chunk.cpp (781): Chunk::~Chunk
c:\cygwin64\tmp\factorio-build-bhugfc\src\surface\surface.cpp (1004): Surface::deleteAllChunks
c:\cygwin64\tmp\factorio-build-bhugfc\src\surface\surface.cpp (990): Surface::~Surface
c:\cygwin64\tmp\factorio-build-bhugfc\src\map\map.cpp (1404): Map::~Map
c:\cygwin64\tmp\factorio-build-bhugfc\src\scenario\scenario.cpp (1079): Scenario::~Scenario
c:\cygwin64\tmp\factorio-build-bhugfc\src\appmanager.cpp (341): AppManager::quitGameAndGoToMainMenu
c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.15.26726\include\functional (15732480): std::_Func_impl_no_alloc<<lambda_24b8b322054ad7a975b1956d0a201aad>,void>::_Do_call
c:\cygwin64\tmp\factorio-build-bhugfc\src\appmanagerstates.cpp (2433): ConfirmationBoxHelper::executeAndClose
c:\cygwin64\tmp\factorio-build-bhugfc\src\appmanagerstates.hpp (1072): InConfirmationBoxTemplate<ConfirmationBox>::process
c:\cygwin64\tmp\factorio-build-bhugfc\src\appmanager.cpp (237): AppManager::process
c:\cygwin64\tmp\factorio-build-bhugfc\src\mainloop.cpp (506): MainLoop::prePrepare
c:\cygwin64\tmp\factorio-build-bhugfc\src\mainloop.cpp (609): MainLoop::mainLoopStep
c:\cygwin64\tmp\factorio-build-bhugfc\src\mainloop.cpp (378): MainLoop::run
c:\cygwin64\tmp\factorio-build-bhugfc\src\main.cpp (1087): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (288): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9AC3B7BD4)
00007FF9AC3B7BD4 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF9AC62CE51)
00007FF9AC62CE51 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
16571.072 E:\games\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe
16571.072 C:\WINDOWS\SYSTEM32\ntdll.dll
16571.072 C:\WINDOWS\System32\KERNEL32.DLL
16571.072 C:\WINDOWS\System32\KERNELBASE.dll
16571.072 C:\WINDOWS\System32\WLDAP32.dll
16571.072 C:\WINDOWS\System32\ucrtbase.dll
16571.072 C:\WINDOWS\System32\GDI32.dll
16571.072 C:\WINDOWS\System32\win32u.dll
16571.072 C:\WINDOWS\System32\gdi32full.dll
16571.072 C:\WINDOWS\System32\msvcp_win.dll
16571.072 C:\WINDOWS\System32\USER32.dll
16571.072 C:\WINDOWS\System32\ole32.dll
16571.072 C:\WINDOWS\System32\combase.dll
16571.072 C:\WINDOWS\System32\RPCRT4.dll
16571.072 C:\WINDOWS\System32\bcryptPrimitives.dll
16571.072 C:\WINDOWS\System32\advapi32.dll
16571.072 C:\WINDOWS\System32\msvcrt.dll
16571.072 C:\WINDOWS\System32\sechost.dll
16571.072 C:\WINDOWS\System32\PSAPI.DLL
16571.072 C:\WINDOWS\System32\SHELL32.dll
16571.072 C:\WINDOWS\System32\cfgmgr32.dll
16571.072 C:\WINDOWS\System32\shcore.dll
16571.072 C:\WINDOWS\System32\windows.storage.dll
16571.072 C:\WINDOWS\System32\profapi.dll
16571.072 C:\WINDOWS\System32\powrprof.dll
16571.072 C:\WINDOWS\System32\UMPDC.dll
16571.072 C:\WINDOWS\System32\shlwapi.dll
16571.072 E:\games\Steam\steamapps\common\Factorio\bin\x64\steam_api64.dll
16571.072 C:\WINDOWS\System32\kernel.appcore.dll
16571.072 C:\WINDOWS\System32\cryptsp.dll
16571.072 C:\WINDOWS\System32\IMM32.dll
16571.072 C:\WINDOWS\System32\OLEAUT32.dll
16571.072 C:\WINDOWS\System32\WS2_32.dll
16571.072 C:\WINDOWS\System32\CRYPT32.dll
16571.072 C:\WINDOWS\System32\MSASN1.dll
16571.072 C:\WINDOWS\System32\WINTRUST.dll
16571.072 C:\WINDOWS\System32\imagehlp.dll
16571.072 C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.18362.836_none_17afac286da192bb\gdiplus.dll
16571.073 C:\WINDOWS\SYSTEM32\WINMM.dll
16571.073 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
16571.073 C:\WINDOWS\SYSTEM32\DSOUND.dll
16571.073 C:\WINDOWS\SYSTEM32\VERSION.dll
16571.073 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
16571.073 E:\games\Steam\gameoverlayrenderer64.dll
16571.073 E:\games\Steam\steamclient64.dll
16571.073 C:\WINDOWS\System32\SETUPAPI.dll
16571.073 C:\WINDOWS\System32\bcrypt.dll
16571.073 E:\games\Steam\vstdlib_s64.dll
16571.073 E:\games\Steam\tier0_s64.dll
16571.073 C:\WINDOWS\SYSTEM32\MSWSOCK.dll
16571.073 C:\WINDOWS\SYSTEM32\Secur32.dll
16571.073 C:\WINDOWS\SYSTEM32\SSPICLI.DLL
16571.073 C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
16571.073 C:\WINDOWS\system32\uxtheme.dll
16571.073 C:\WINDOWS\SYSTEM32\dxgi.dll
16571.073 C:\WINDOWS\SYSTEM32\dxcore.dll
16571.073 C:\WINDOWS\SYSTEM32\d3d11.dll
16571.073 C:\WINDOWS\SYSTEM32\d3d9.dll
16571.073 C:\WINDOWS\SYSTEM32\dwmapi.dll
16571.073 C:\WINDOWS\SYSTEM32\d3dcompiler_47.dll
16571.073 C:\WINDOWS\System32\MSCTF.dll
16571.073 C:\WINDOWS\SYSTEM32\TextInputFramework.dll
16571.073 C:\WINDOWS\SYSTEM32\CoreMessaging.dll
16571.073 C:\WINDOWS\SYSTEM32\CoreUIComponents.dll
16571.073 C:\WINDOWS\SYSTEM32\ntmarta.dll
16571.073 C:\WINDOWS\SYSTEM32\wintypes.dll
16571.073 C:\WINDOWS\SYSTEM32\iertutil.dll
16571.073 C:\WINDOWS\System32\clbcatq.dll
16571.074 C:\WINDOWS\system32\explorerframe.dll
16571.074 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
16571.074 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_87086da927dcdf63\nvldumdx.dll
16571.074 C:\WINDOWS\SYSTEM32\cryptnet.dll
16571.074 C:\WINDOWS\system32\rsaenh.dll
16571.074 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_87086da927dcdf63\nvwgf2umx.dll
16571.074 C:\WINDOWS\system32\nvspcap64.dll
16571.074 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_87086da927dcdf63\NvCamera\NvCamera64.dll
16571.074 C:\WINDOWS\SYSTEM32\HID.DLL
16571.074 C:\WINDOWS\SYSTEM32\DINPUT8.dll
16571.074 C:\WINDOWS\SYSTEM32\XINPUT9_1_0.dll
16571.074 C:\WINDOWS\SYSTEM32\urlmon.dll
16571.074 C:\WINDOWS\SYSTEM32\WININET.dll
16571.074 C:\WINDOWS\SYSTEM32\inputhost.dll
16571.074 C:\WINDOWS\SYSTEM32\PROPSYS.dll
16571.074 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_87086da927dcdf63\NvCamera\d3dcompiler_47_64.dll
16571.074 C:\WINDOWS\System32\DEVOBJ.dll
16571.074 C:\WINDOWS\system32\nvapi64.dll
16571.074 C:\WINDOWS\system32\nvcuda.dll
16571.074 C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_87086da927dcdf63\nvd3dumx.dll
16571.074 C:\WINDOWS\System32\MMDevApi.dll
16571.074 C:\WINDOWS\SYSTEM32\AUDIOSES.DLL
16571.074 C:\WINDOWS\SYSTEM32\resourcepolicyclient.dll
16571.075 C:\Windows\System32\Windows.UI.dll
16571.075 C:\Program Files\NVIDIA Corporation\NvContainer\MessageBus.dll
16571.075 C:\WINDOWS\SYSTEM32\mscms.dll
16571.075 C:\WINDOWS\SYSTEM32\USERENV.dll
16571.075 C:\WINDOWS\SYSTEM32\ColorAdapterClient.dll
16571.075 C:\WINDOWS\SYSTEM32\icm32.dll
16571.075 C:\Users\Jasper Lankhorst\AppData\Roaming\discord\0.0.306\modules\discord_hook\e3bbef833e\DiscordHook64.dll
16571.075 C:\WINDOWS\SYSTEM32\avrt.dll
16571.075 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.

cablegunmaster
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Apr 25, 2019 2:16 pm
Contact:

Re: [0.18.26] Saving scenario failed: vector<T> too long

Post by cablegunmaster »

Yep memtest giving errors out ...
sad... for my pc... its not factorio related issue:

Test 13:
Addr 3F1AB75C
Expected: B254DFE3 actual: B254D7E3
Cpu: 0

Post Reply

Return to “1 / 0 magic”