[0.17.17] Crashes sometimes when calling open_map(position, scale) while already in the map

This subforum contains all the issues which we already resolved.
Post Reply
jarcionek
Fast Inserter
Fast Inserter
Posts: 137
Joined: Thu Mar 10, 2016 11:26 am
Contact:

[0.17.17] Crashes sometimes when calling open_map(position, scale) while already in the map

Post by jarcionek »

I am working on a mod.

I am executing the following command: /c game.player.open_map({0, 0}, 0.0035)

If I don't have a map open, it always works (it opens a map, sets the position and the zoom level). However, if I have a map already open, it sometimes works (by changing the position and the zoom level), but sometimes the game crashes instead.

Code: Select all

   0.000 2019-03-23 20:53:21; Factorio 0.17.17 (build 43958, win64, steam)
   0.000 Operating system: Windows 7 Service Pack 1
   0.000 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe" 
   0.001 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
   0.001 Write data path: C:/Users/Jarcionek/AppData/Roaming/Factorio [20044/476710MB]
   0.001 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
   0.005 System info: [CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz, 4 cores, RAM: 5023/32706 MB, page: 5225/65411 MB, virtual: 173/8388607 MB, extended virtual: 0 MB]
   0.005 Display options: [FullScreen: 0] [VSync: 1] [UIScale: automatic (100.0%)] [Native DPI: 1] [Screen: 255] [Special: 00] [Lang: en]
   0.013 Available displays: 2
   0.013  [0]: \\.\DISPLAY1 - NVIDIA GeForce GTX 1070 {0x05, [0,0], 2560x1440, 32bit, 59Hz}
   0.014  [1]: \\.\DISPLAY2 - NVIDIA GeForce GTX 1070 {0x01, [2560,183], 1920x1080, 32bit, 60Hz}
   0.050 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: 0; d3dcompiler_47.dll
   0.101 Initialised Direct3D[0]: NVIDIA GeForce GTX 1070; id: 10de-1b81; driver: nvd3dumx.dll 22.21.13.8541
   0.101   D3D Feature Level: 11.0, DXGI 1.2+, SwapChain: 1,discard,-,-,none
   0.101   BGR 565 Supported: No
   0.101   MaximumFrameLatency: 3, GPUThreadPriority: 0
   0.130 Desktop composition is active.
   0.130 Graphics settings preset: very-high
   0.130   Dedicated video memory size 8070 MB
   0.130 Graphics options: [Graphics quality: high] [Video memory usage: high] [Light scale: 100%] [DXT: high-quality]
   0.130                   [Max load threads: 32] [Max texture size: 0] [Tex.Stream.: 1] [Rotation quality: normal] [Color: 32bit]
   0.151 DSound: Starting _dsound_update thread
   0.151 DSound: Enter _dsound_update; tid=6896
   0.208 Loading mod settings AutoDeconstruct 0.1.12 (settings.lua)
   0.208 Loading mod settings Bottleneck 0.10.3 (settings.lua)
   0.208 Loading mod settings long-reach 0.0.13 (settings.lua)
   0.209 Loading mod settings Noxys_Waterfill 0.1.3 (settings.lua)
   0.209 Loading mod settings ZoomPresets 1.0.0 (settings.lua)
   0.211 Loading mod core 0.0.0 (data.lua)
   0.264 Loading mod base 0.17.17 (data.lua)
   0.415 Loading mod artillery-bombardment-remote 0.17.0 (data.lua)
   0.475 Loading mod Bottleneck 0.10.3 (data.lua)
   0.532 Loading mod Noxys_Waterfill 0.1.3 (data.lua)
   0.588 Loading mod PersonalTeleporter 0.3.3 (data.lua)
   0.645 Loading mod Power Armor MK3 0.2.6 (data.lua)
   0.702 Loading mod power-grid-comb 0.17.2 (data.lua)
   0.758 Loading mod RealisticDecorationCleanup 0.17.3 (data.lua)
   0.815 Loading mod ZoomPresets 1.0.0 (data.lua)
   0.873 Loading mod base 0.17.17 (data-updates.lua)
   0.929 Loading mod Noxys_Waterfill 0.1.3 (data-updates.lua)
   0.990 Checksum for core: 2126933501
   0.990 Checksum of base: 1967292039
   0.990 Checksum of artillery-bombardment-remote: 479873759
   0.990 Checksum of AutoDeconstruct: 2582707891
   0.990 Checksum of Bottleneck: 3138809866
   0.990 Checksum of long-reach: 4166847516
   0.990 Checksum of Noxys_Waterfill: 564526632
   0.990 Checksum of PersonalTeleporter: 874598730
   0.990 Checksum of Power Armor MK3: 434612122
   0.990 Checksum of power-grid-comb: 497877933
   0.990 Checksum of RealisticDecorationCleanup: 1659264837
   0.990 Checksum of ZoomPresets: 3575779364
   1.379 Loading sounds...
   1.421 Info PlayerData.cpp:69: Local player-data.json unavailable
   1.421 Info PlayerData.cpp:72: Cloud player-data.json available, timestamp 1553374057
   1.512 Initial atlas bitmap size is 16384
   1.537 Created atlas bitmap 16384x16384 [none]
   1.539 Created atlas bitmap 16384x4440 [none]
   1.540 Created atlas bitmap 16384x2116 [decal]
   1.541 Created atlas bitmap 16384x3808 [low-object]
   1.542 Created atlas bitmap 16384x1888 [mipmap, linear-minification, linear-magnification, linear-mip-level, no-crop, no-scale]
   1.544 Created atlas bitmap 16384x6880 [terrain, mipmap, linear-minification, linear-mip-level, no-crop]
   1.544 Created atlas bitmap 16384x480 [smoke, mipmap, linear-minification, linear-magnification]
   1.545 Created atlas bitmap 16384x456 [not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, no-crop, no-scale]
   1.545 Created atlas bitmap 16384x748 [alpha-mask]
   1.548 Created atlas bitmap 16384x12640 [shadow, linear-magnification, alpha-mask]
   1.549 Created atlas bitmap 16384x1264 [shadow, mipmap, linear-magnification, alpha-mask]
   1.668 Created virtual atlas pages 4096x4096x7
   1.677 Texture processor created. GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
   2.184 Parallel Sprite Loader initialized (threads: 3)
  12.117 Sprites loaded
  12.177 Generated mipmaps for atlas of size 16384x3808
  12.207 Generated mipmaps for atlas of size 16384x1888
  12.227 Generated mipmaps for atlas of size 16384x6880
  12.237 Generated mipmaps for atlas of size 16384x480
  12.247 Generated mipmaps for atlas of size 16384x456
  12.257 Generated mipmaps for atlas of size 16384x1264
  12.344 Generated mipmaps for virtual atlas of size 8192x16384
  12.347 Custom inputs active: 9
  12.413 Factorio initialised
  19.027 Loading map C:\Users\Jarcionek\AppData\Roaming\Factorio\saves\Version17-126.zip: 63945507 bytes.
  19.051 Loading level.dat: 153799474 bytes.
  19.055 Info Scenario.cpp:161: Map version 0.17.17-2
  24.499 Loading script.dat: 621081 bytes.
  24.501 Checksum for script C:/Users/Jarcionek/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 1848333929
  24.502 Checksum for script __artillery-bombardment-remote__/control.lua: 1621779943
  24.504 Checksum for script __AutoDeconstruct__/control.lua: 2848553575
  24.505 Checksum for script __Bottleneck__/control.lua: 1724301457
  24.505 Checksum for script __long-reach__/control.lua: 2450699146
  24.506 Checksum for script __Noxys_Waterfill__/control.lua: 408073012
  24.508 Checksum for script __PersonalTeleporter__/control.lua: 106596475
  24.509 Checksum for script __power-grid-comb__/control.lua: 3620692324
  24.509 Checksum for script __RealisticDecorationCleanup__/control.lua: 2315431632
  24.510 Checksum for script __ZoomPresets__/control.lua: 2834672464
 106.602 Time travel logging:
  33.555 Player 0 ran command: game.player.open_map({0, 0}, 0.005)
  40.378 Player 0 ran command: game.player.open_map({0, 0}, 0.003)
  50.052 Player 0 ran command: game.player.open_map({0, 0}, 0.003)
  55.790 Player 0 ran command: game.player.open_map({0, 0}, 0.001)
  63.363 Player 0 ran command: game.player.open_map({0, 0}, 0.002)
  69.952 Player 0 ran command: game.player.open_map({0, 0}, 0.0015)
  75.589 Player 0 ran command: game.player.open_map({0, 0}, 0.003)
  81.194 Player 0 ran command: game.player.open_map({0, 0}, 0.004)
  87.916 Player 0 ran command: game.player.open_map({0, 0}, 0.0035)
 106.601 Player 0 ran command: game.player.open_map({0, 0}, 0.0035)
 106.602 Error CrashHandler.cpp:548: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-build-zeryjy\libraries\stackwalker\stackwalker.cpp (924): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-build-zeryjy\src\util\logger.cpp (376): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-build-zeryjy\src\util\logger.cpp (527): Logger::logStacktrace
c:\cygwin64\tmp\factorio-build-zeryjy\src\util\crashhandler.cpp (170): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-build-zeryjy\src\util\crashhandler.cpp (557): 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: 00000001401DEB78)
00000001401DEB78 (Factorio): (filename not available): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076D0812D)
0000000076D0812D (ntdll): (filename not available): RtlDecodePointer
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076CF855F)
0000000076CF855F (ntdll): (filename not available): RtlUnwindEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076D2BCB8)
0000000076D2BCB8 (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-build-zeryjy\src\graphics\spritedraworder.cpp (106): renderSpriteDrawOrderRange<<lambda_e3341df70ffcc94a63c1da103d9a378f> >
c:\cygwin64\tmp\factorio-build-zeryjy\src\graphics\drawengine.cpp (541): DrawEngine::drawEntities
c:\cygwin64\tmp\factorio-build-zeryjy\src\graphics\drawengine.cpp (231): DrawEngine::drawSpecialQueues
c:\cygwin64\tmp\factorio-build-zeryjy\src\graphics\drawengine.cpp (158): DrawEngine::render
c:\cygwin64\tmp\factorio-build-zeryjy\src\graphics\gamerenderer.cpp (233): GameRenderer::renderInternal
c:\cygwin64\tmp\factorio-build-zeryjy\src\graphics\gamerenderer.cpp (196): GameRenderer::render
c:\cygwin64\tmp\factorio-build-zeryjy\src\game.cpp (383): Game::render
c:\cygwin64\tmp\factorio-build-zeryjy\src\mainloop.cpp (618): MainLoop::mainLoopStep
c:\cygwin64\tmp\factorio-build-zeryjy\src\mainloop.cpp (374): MainLoop::run
c:\cygwin64\tmp\factorio-build-zeryjy\src\main.cpp (1248): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (288): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076BD59CD)
0000000076BD59CD (kernel32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 0000000076D0A561)
0000000076D0A561 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
 108.761 Error CrashHandler.cpp:175: Map tick at moment of crash: 43294862
 108.761 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.
 238.497 Uploading log file
 238.502 Error CrashHandler.cpp:197: Heap validation: success.
 238.503 Creating crash dump.
 238.619 CrashDump success
Attachments
factorio-current.log
(10.06 KiB) Downloaded 113 times

jarcionek
Fast Inserter
Fast Inserter
Posts: 137
Joined: Thu Mar 10, 2016 11:26 am
Contact:

Re: [0.17.17] Crashes sometimes when calling open_map(position, scale) while already in the map

Post by jarcionek »

close_map() called while not in map also sometimes crashes the game (and sometimes it does nothing as expected).
Attachments
factorio-current.log
(9.98 KiB) Downloaded 122 times

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

Re: [0.17.17] Crashes sometimes when calling open_map(position, scale) while already in the map

Post by posila »

Thanks for the report.
Fixed for 0.17.22.

Post Reply

Return to “Resolved Problems and Bugs”