Page 1 of 1

[0.17.4] Crash when saving blueprint to library

Posted: Sat Mar 02, 2019 3:05 pm
by Maracorv
Dear Factorio


This is the first time I have a crash in the new version, it occurred when I tried to save my blueprint to the blueprint library.

Repro:
Create blueprint on one computer and save it to the blueprint library (also keep a copy in the inventory).
Save the game and load on a different computer. (Now the blueprint is in the inventory but not in the library since those are not synced between machines)
Try to save the blueprint from the inventory to the library
-> crash

I've added the log file and the save file. I did not use any mods.

Kind regards
Maracorv

Edit: I've added the string of the blueprint that caused the crash. I was able to reproduce the crash 3 times with this blueprint.

Re: [0.17.4] Crash when saving blueprint to library

Posted: Sat Mar 02, 2019 6:57 pm
by Loewchen

Code: Select all

   0.001 2019-03-02 12:26:28; Factorio 0.17.4 (build 43174, win64, steam)
   0.001 Operating system: Windows 10 (version 1803) 
   0.005 Program arguments: "D:\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.005 Read data path: D:/Steam/steamapps/common/Factorio/data
   0.005 Write data path: C:/Users/quent/AppData/Roaming/Factorio [87247/487220MB]
   0.005 Binaries path: D:/Steam/steamapps/common/Factorio/bin
   0.071 System info: [CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz, 8 cores, RAM: 6738/16336 MB, page: 9772/20944 MB, virtual: 4330/134217727 MB, extended virtual: 0 MB]
   0.071 Display options: [FullScreen: 1] [VSync: 1] [UIScale: automatic (100.0%)] [MultiSampling: OFF] [Screen: 255] [Lang: en]
   0.146 Available displays: 1
   0.146  [0]: \\.\DISPLAY7 - NVIDIA GeForce GTX 1070 {0x05, [0,0], 1920x1080, 32bit, 75Hz}
   0.238 Display: 0 -> Adapter: 0, Output: 0
   0.456 Initialised Direct3D[0]: NVIDIA GeForce GTX 1070; driver: nvldumdx.dll 25.21.14.1917
   0.456   D3D Feature Level: 11.1, DXGI 1.5+
   0.457   [Local Video Memory] Budget: 6868MB, CurrentUsage: 2MB, Reservation: 0/3636MB
   0.457   [Non-Local Vid.Mem.] Budget: 7351MB, CurrentUsage: 0MB, Reservation: 0/3880MB
   0.457   Tiled resources: Tier 2
   0.457   Unified Memory Architecture: No
   0.457   BGR 565 Supported: Yes
   0.457   MaximumFrameLatency: 3, GPUThreadPriority: 0
   0.801 Desktop composition is active.
   0.801 Graphics settings preset: very-high
   0.801   Dedicated video memory size 8081 MB
   0.801 Graphics options: [Graphics quality: high] [Video memory usage: all] [Light scale: 100%] [DXT: high-quality]
   0.801                   [Max load threads: 32] [Max texture size: 0] [Tex.Stream.: 0] [Low quality rotation: 0]
   0.870 DSound: Starting _dsound_update thread
   0.870 DSound: Enter _dsound_update; tid=15248
   1.969 Razer Chroma Controller initialized.
   3.669 Loading mod core 0.0.0 (data.lua)
   4.061 Loading mod base 0.17.4 (data.lua)
   7.556 Loading mod base 0.17.4 (data-updates.lua)
   7.845 Checksum for core: 3928040144
   7.845 Checksum of base: 60305742
  10.151 Loading sounds...
  15.681 Info PlayerData.cpp:69: Local player-data.json unavailable
  15.681 Info PlayerData.cpp:72: Cloud player-data.json available, timestamp 1551382418
  15.992 Crop bitmaps.
  51.496 Parallel Sprite Loader initialized (threads: 7)
  60.280 Initial atlas bitmap size is 16384
  60.324 Created atlas bitmap 16384x16380 [none]
  60.329 Created atlas bitmap 16384x11284 [none]
  60.330 Created atlas bitmap 16384x2116 [decal]
  60.331 Created atlas bitmap 16384x3808 [low-object]
  60.332 Created atlas bitmap 16384x1888 [mipmap, linear-minification, linear-magnification, linear-mip-level]
  60.333 Created atlas bitmap 16384x6592 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
  60.334 Created atlas bitmap 16384x480 [smoke, mipmap, linear-minification, linear-magnification]
  60.335 Created atlas bitmap 16384x456 [not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, no-crop, no-scale]
  60.335 Created atlas bitmap 16384x748 [alpha-mask]
  60.339 Created atlas bitmap 16384x12632 [shadow, linear-magnification, alpha-mask]
  60.339 Created atlas bitmap 16384x1264 [shadow, mipmap, linear-magnification, alpha-mask]
  60.369 Texture processor created. GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
  61.140 Parallel Sprite Loader initialized (threads: 7)
  71.708 Sprites loaded
  71.752 Generated mipmaps for atlas of size 16384x3808
  71.774 Generated mipmaps for atlas of size 16384x1888
  71.785 Generated mipmaps for atlas of size 16384x6592
  71.795 Generated mipmaps for atlas of size 16384x480
  71.807 Generated mipmaps for atlas of size 16384x456
  71.818 Generated mipmaps for atlas of size 16384x1264
  71.953 Custom inputs active: 0
  72.370 Factorio initialised
 100.705 Loading map C:\Users\quent\AppData\Roaming\Factorio\saves\0.17.x.zip: 6554619 bytes.
 100.950 Loading Level.dat: 15724234 bytes.
 100.959 Info Scenario.cpp:147: Map version 0.17.3-0
 102.385 Loading script.dat: 328 bytes.
 102.461 Checksum for script C:/Users/quent/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 2366710471
 647.419 Info AppManager.cpp:266: Saving to _autosave1 (blocking).
 648.030 Info AppManagerStates.cpp:1776: Saving finished
1279.952 Info AppManager.cpp:266: Saving to _autosave2 (blocking).
1280.431 Info AppManagerStates.cpp:1776: Saving finished
1741.150 Info AppManagerStates.cpp:1776: Saving finished
6779.535 Info AppManager.cpp:266: Saving to _autosave3 (blocking).
6779.997 Info AppManagerStates.cpp:1776: Saving finished
7322.593 Loading map C:\Users\quent\AppData\Roaming\Factorio\saves\_autosave3.zip: 6799173 bytes.
7322.690 Loading Level.dat: 15946626 bytes.
7322.694 Info Scenario.cpp:147: Map version 0.17.4-1
7323.132 Loading script.dat: 328 bytes.
7323.136 Checksum for script C:/Users/quent/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 2366710471
7923.552 Info AppManager.cpp:266: Saving to _autosave1 (blocking).
7924.049 Info AppManagerStates.cpp:1776: Saving finished
8562.819 Info AppManager.cpp:266: Saving to _autosave2 (blocking).
8563.308 Info AppManagerStates.cpp:1776: Saving finished
9163.302 Info AppManager.cpp:266: Saving to _autosave3 (blocking).
9163.775 Info AppManagerStates.cpp:1776: Saving finished
9769.817 Info AppManager.cpp:266: Saving to _autosave1 (blocking).
9770.289 Info AppManagerStates.cpp:1776: Saving finished
10370.402 Info AppManager.cpp:266: Saving to _autosave2 (blocking).
10370.904 Info AppManagerStates.cpp:1776: Saving finished
10971.202 Info AppManager.cpp:266: Saving to _autosave3 (blocking).
10971.676 Info AppManagerStates.cpp:1776: Saving finished
11588.135 Info AppManager.cpp:266: Saving to _autosave1 (blocking).
11588.599 Info AppManagerStates.cpp:1776: Saving finished
12198.086 Info AppManager.cpp:266: Saving to _autosave2 (blocking).
12198.564 Info AppManagerStates.cpp:1776: Saving finished
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-ocil06\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-build-ocil06\src\util\logger.cpp (405): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-build-ocil06\src\util\logger.cpp (515): Logger::logStacktrace
c:\cygwin64\tmp\factorio-build-ocil06\src\util\logging.cpp (89): Logging::logAndAbortOrThrow
c:\cygwin64\tmp\factorio-build-ocil06\src\util\logging.cpp (83): Logging::logAndAbortOrThrow
c:\cygwin64\tmp\factorio-build-ocil06\src\blueprint\blueprintshelf.cpp (367): BlueprintShelf::addAt
c:\cygwin64\tmp\factorio-build-ocil06\src\blueprint\blueprintshelf.cpp (358): BlueprintShelf::add
c:\cygwin64\tmp\factorio-build-ocil06\src\blueprint\blueprintshelf.cpp (206): BlueprintShelf::addBlueprint
c:\cygwin64\tmp\factorio-build-ocil06\src\blueprint\blueprintlibrary.cpp (308): BlueprintLibrary::addItem
c:\cygwin64\tmp\factorio-build-ocil06\src\gameactionhandler.cpp (1488): GameActionHandler::exportBlueprint
c:\cygwin64\tmp\factorio-build-ocil06\src\gameactionhandler.cpp (321): GameActionHandler::actionPerformed
c:\cygwin64\tmp\factorio-build-ocil06\src\input\inputhandler.cpp (61): InputHandler::flushActions
c:\cygwin64\tmp\factorio-build-ocil06\src\gameactionhandler.cpp (364): GameActionHandler::update
c:\cygwin64\tmp\factorio-build-ocil06\src\mainloop.cpp (1058): MainLoop::gameUpdateStep
c:\cygwin64\tmp\factorio-build-ocil06\src\mainloop.cpp (931): MainLoop::gameUpdateLoop
c:\cygwin64\tmp\factorio-build-ocil06\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*)(ParallelScenarioSaver *),ParallelScenarioSaver *>,std::default_delete<std::tuple<void (__cdecl*)(ParallelScenarioSaver *),ParallelScenarioSaver *> > > >::_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: 00007FF980173DC4)
00007FF980173DC4 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF981203691)
00007FF981203691 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
12416.719 Error BlueprintShelf.cpp:367: !this->assignsIDs || record->id.id < this->nextRecordID was not true
Logger::writeStacktrace skipped.
12416.719 Error CrashHandler.cpp:174: Map tick at moment of crash: 3648814
12416.719 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.
12484.190 Uploading log file
12484.199 Error CrashHandler.cpp:221: Heap validation: success.
12484.224 Creating crash dump.
12484.700 CrashDump success

Re: [0.17.4] Crash when saving blueprint to library

Posted: Fri Mar 08, 2019 3:31 pm
by kovarex
Hello, I believe that this was fixed in one of the recent updates.