[0.15.x] Crash when deleting adjacent chunks

This subforum contains all the issues which we already resolved.
Post Reply
AcThPaU
Burner Inserter
Burner Inserter
Posts: 15
Joined: Thu Feb 23, 2017 11:13 pm
Contact:

[0.15.x] Crash when deleting adjacent chunks

Post by AcThPaU »

For example, I want to delete a line of chunks:

/c game.player.surface.delete_chunk{1,-10}
/c game.player.surface.delete_chunk{2,-10}
/c game.player.surface.delete_chunk{3,-10}
...
--------------------------------------------------------------------------------------------Always crash at some point

/c game.player.surface.delete_chunk{1,-10}
/c game.player.surface.delete_chunk{3,-10}
/c game.player.surface.delete_chunk{5,-10}
...
--------------------------------------------------------------------------------------------Sometimes crash

/c for x=-20,20 do game.player.surface.delete_chunk{0+x,-10} end
--------------------------------------------------------------------------------------------Always crash

/c for x=-10,10 do game.player.surface.delete_chunk{0+x*2,-10} end
-------------------------------------------------------------------------------------------- Some times crash

/c for x=-10,10 do game.player.surface.delete_chunk{0+x*2,-10} end
/c for x=-10,10 do game.player.surface.delete_chunk{1+x*2,-10} end
------------------------------------------------------------------------------------------- Always crash

/c for x=-10,10 do game.player.surface.delete_chunk{0+x*2,-10} end
save game
load game
/c for x=-10,10 do game.player.surface.delete_chunk{1+x*2,-10} end
------------------------------------------------------------------------------------------- Sometimes crash, sometimes work

log:
0.002 2017-04-30 00:52:43; Factorio 0.15.4 (build 29262, win64, steam)
0.002 Operating system: Windows 10 (version 1607)
0.002 Program arguments: "D:\Games\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe"
0.002 Read data path: D:/Games/Steam/steamapps/common/Factorio/data
0.002 Write data path: C:/Users/Shawn/AppData/Roaming/Factorio
0.002 Binaries path: D:/Games/Steam/steamapps/common/Factorio/bin
0.010 System info: [CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 12 cores, RAM: 32679MB]
0.010 Display options: [FullScreen: 1] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255]
0.011 Available display adapters: 1
0.011 [0]: \\.\DISPLAY6 - NVIDIA GeForce GTX 980 Ti {0x05, [0,0], 2560x1440, 32bit, 59Hz}
0.012 Create display on adapter 0. Size 1280x720 at position [630, 342].
0.092 Initialised Direct3D:[0] NVIDIA GeForce GTX 980 Ti; driver: nvldumdx.dll 22.21.13.8165
0.098 Video memory size (dedicated video/dedicated system/shared system/available): 6103/0/16339/4082 MB
0.141 DSound: Starting _dsound_update thread
0.141 DSound: Enter _dsound_update; tid=8420Device reset internal.
0.141 DSound: Enter _dsound_update; tid=8420Device reset internal.
0.145 Desktop composition is active.
0.146 Graphics settings preset: very-high
0.146 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 64%] [DXT: false]
0.219 Loading mod core 0.0.0 (data.lua)
0.227 Loading mod base 0.15.4 (data.lua)
0.327 Loading mod base 0.15.4 (data-updates.lua)
0.397 Checksum for core: 2926038370
0.397 Checksum of base: 181075648
0.566 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1493501669
0.566 Info PlayerData.cpp:60: Cloud player-data.json available, timestamp 1493447637
0.650 Loaded shader file D:/Games/Steam/steamapps/common/Factorio/data/core/graphics/shaders/game.cso
0.650 Loaded shader file D:/Games/Steam/steamapps/common/Factorio/data/core/graphics/shaders/zoom-to-world.cso
0.665 Initial atlas bitmap size is 16384
0.668 Created atlas bitmap 16384x7695
0.987 Created atlas bitmap 4096x1860
0.996 Created atlas bitmap 4096x3648
9.725 Sprites loaded
9.725 Convert atlas 4096x1860 to: trilinear-filtering
9.753 Convert atlas 4096x3648 to: mipmap
9.979 Loading sounds...
12.364 Custom inputs active: 0
12.403 Factorio initialised
15.597 Loading map C:\Users\Shawn\AppData\Roaming\Factorio\saves\test.zip: 16779059 bytes.
15.651 Loading Level.dat: 39064545 bytes.
15.657 Info Scenario.cpp:133: Map version 0.15.4-2
16.683 Loading script.dat: 224 bytes.
16.685 Checksum for script C:/Users/Shawn/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 76911248
65.749 Error CrashHandler.cpp:232: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
c:\cygwin64\tmp\factorio-vqopbo\libraries\stackwalker\stackwalker.cpp (923): StackWalker::ShowCallstack
c:\cygwin64\tmp\factorio-vqopbo\src\util\logger.cpp (354): Logger::writeStacktrace
c:\cygwin64\tmp\factorio-vqopbo\src\util\logger.cpp (408): Logger::logStacktrace
c:\cygwin64\tmp\factorio-vqopbo\src\util\crashhandler.cpp (105): CrashHandler::writeStackTrace
c:\cygwin64\tmp\factorio-vqopbo\src\util\crashhandler.cpp (235): CrashHandler::SignalHandler
d:\th\minkernel\crts\ucrt\src\appcrt\misc\exception_filter.cpp (219): _seh_filter_exe
d:\th\minkernel\crts\ucrt\src\appcrt\startup\thread.cpp (117): `thread_start<unsigned int (__cdecl*)(void * __ptr64)>'::`1'::filt$0
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FF77BF290D8)
00007FF77BF290D8 (Factorio): (filename not available): __C_specific_handler
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF34D4AB9D)
00007FFF34D4AB9D (ntdll): (filename not available): _chkstk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF34CE9913)
00007FFF34CE9913 (ntdll): (filename not available): RtlImageNtHeaderEx
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF34D49CBA)
00007FFF34D49CBA (ntdll): (filename not available): KiUserExceptionDispatcher
c:\cygwin64\tmp\factorio-vqopbo\src\entity\entitywithforce.cpp (92): EntityWithForce::checkNearbyForcesUnRegistration
c:\cygwin64\tmp\factorio-vqopbo\src\entity\entitywithforce.cpp (46): EntityWithForce::forceUnRegistration
c:\cygwin64\tmp\factorio-vqopbo\src\entity\entitywithforce.cpp (102): EntityWithForce::onDestroy
c:\cygwin64\tmp\factorio-vqopbo\src\entity\unit.cpp (350): Unit::onDestroy
c:\cygwin64\tmp\factorio-vqopbo\src\surface\chunk.cpp (931): Chunk::destroyAllEntities
c:\cygwin64\tmp\factorio-vqopbo\src\surface\surface.cpp (1303): Surface::processPendingChunkDeleteRequests
c:\cygwin64\tmp\factorio-vqopbo\src\map\map.cpp (1274): Map::postUpdate
c:\cygwin64\tmp\factorio-vqopbo\src\scenario\scenario.cpp (703): Scenario::postUpdate
c:\cygwin64\tmp\factorio-vqopbo\src\mainloop.cpp (607): MainLoop::prepare
c:\cygwin64\tmp\factorio-vqopbo\src\mainloop.cpp (397): MainLoop::mainLoopStep
c:\cygwin64\tmp\factorio-vqopbo\src\mainloop.cpp (227): MainLoop::run
c:\cygwin64\tmp\factorio-vqopbo\src\main.cpp (881): wmain
f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl (253): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF34748364)
00007FFF34748364 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFF34D070D1)
00007FFF34D070D1 (ntdll): (filename not available): RtlUserThreadStart
67.144 Error CrashHandler.cpp:106: Map tick at moment of crash: 31496865
67.144 Error Util.cpp:76: 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.

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

Re: [0.15.x] Crash when deleting adjacent chunks

Post by Rseding91 »

Thanks for the report and the easy way to reproduce the crash.

It's now fixed for the next version of 0.15.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”