[Rseding91] [2.0.12] Calling entity.die() on a demolisher crashes the game.
Posted: Wed Oct 30, 2024 5:44 pm
I know this is not high priority, not sure why this is happening though. I was attempting to modify demolishers (remove them from the map).
I tried with and without parameters in the die function. Same crash.
I tried .die() on one that I had spawned. Same crash.
.destroy() seems to work fine but I haven't tested much.
No mods.
I tried with and without parameters in the die function. Same crash.
I tried .die() on one that I had spawned. Same crash.
.destroy() seems to work fine but I haven't tested much.
Code: Select all
/c local demolishers = game.surfaces["vulcanus"].find_entities_filtered{ type = "segmented-unit" } game.player.print(#demolishers) demolishers[1].die(game.player.force, game.player.character)
Code: Select all
0.000 2024-10-30 13:27:22; Factorio 2.0.12 (build 79795, win64, steam, space-age)
0.000 Operating system: Windows 10 (build 19045)
0.000 Initializing Steam API.
0.001 Program arguments: "C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\Factorio.exe"
0.001 Config path: C:/Users/justs/AppData/Roaming/Factorio/config/config.ini
0.001 Read data path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/data
0.001 Write data path: C:/Users/justs/AppData/Roaming/Factorio [168170/953223MB]
0.001 Binaries path: C:/Program Files (x86)/Steam/steamapps/common/Factorio/bin
0.031 System info: [CPU: AMD Ryzen 7 3700X 8-Core Processor, 16 cores, RAM: 8544/16333 MB, page: 15267/33741 MB, virtual: 4346/134217727 MB, extended virtual: 0 MB]
0.046 Memory info:
0.046 [0]: Unknown CMK16GX4M2D3600C18 8192 MB 2133 MHz 1.2 v
0.046 [1]: Unknown CMK16GX4M2D3600C18 8192 MB 2133 MHz 1.2 v
0.060 Display options: [FullScreen: true] [VSync: true] [UIScale: manual-pixels (100.0%)] [Native DPI: true] [Screen: 255] [Special: lmw] [Lang: en]
0.321 Video driver: windows
0.321 Available displays: 1
0.321 [0]: \\.\DISPLAY1 - NVIDIA GeForce RTX 2080 SUPER {0x05, [0,0], 2560x1440, 32bit, 144Hz}
0.356 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: -1; d3dcompiler_47.dll
0.678 Initialised Direct3D[0]: NVIDIA GeForce RTX 2080 SUPER; id: 10de-1e81; driver: nvldumdx.dll 32.0.15.6590
0.678 D3D Feature Level: 11.1, DXGI 1.5+, SwapChain: 3,flip-discard,-,-,-,none
0.678 [Local Video Memory] Budget: 7219MB, CurrentUsage: 23MB, Reservation: 0/3737MB
0.678 [Non-Local Vid.Mem.] Budget: 7502MB, CurrentUsage: 7MB, Reservation: 0/3879MB
0.678 Tiled resources: Tier 2
0.678 Unified Memory Architecture: No
0.678 BGR 565 Supported: Yes
0.678 MaximumFrameLatency: 3, GPUThreadPriority: 0
0.678 Graphics settings preset: very-high
0.678 Dedicated video memory size 7987 MB
0.730 Desktop composition is active.
0.730 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality]
0.730 [Max threads (load/render): 32/8] [Max texture size: 0] [Tex.Stream.: false] [Rotation quality: normal] [Other: STDCWT] [B:0,C:0,S:100]
0.765 [Audio] Driver:wasapi, Device:Default device, Depth:16, Channels:2, Frequency:44100
1.946 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
1.946 Info ModManager.cpp:434: FeatureFlag freezing = true
1.946 Info ModManager.cpp:434: FeatureFlag quality = true
1.946 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
1.946 Info ModManager.cpp:434: FeatureFlag segmented-units = true
1.946 Info ModManager.cpp:434: FeatureFlag space-travel = true
1.946 Info ModManager.cpp:434: FeatureFlag spoiling = true
1.950 Loading mod core 0.0.0 (data.lua)
1.975 Loading mod base 2.0.12 (data.lua)
2.268 Loading mod elevated-rails 2.0.12 (data.lua)
2.306 Loading mod quality 2.0.12 (data.lua)
2.326 Loading mod space-age 2.0.12 (data.lua)
2.843 Loading mod base 2.0.12 (data-updates.lua)
2.856 Loading mod quality 2.0.12 (data-updates.lua)
2.875 Loading mod space-age 2.0.12 (data-updates.lua)
3.005 Checksum for core: 1043092351
3.005 Checksum of base: 3158838524
3.005 Checksum of elevated-rails: 4201662503
3.005 Checksum of quality: 4264147466
3.005 Checksum of space-age: 3246333523
3.359 Prototype list checksum: 124222065
3.415 Loading sounds...
15.178 Info PlayerData.cpp:68: Local player-data.json unavailable
15.178 Info PlayerData.cpp:71: Cloud player-data.json available, timestamp 1730260033
15.514 Initial atlas bitmap size is 16384
15.539 Created an atlas bitmap (size 16384x16384) [none]
15.562 Created an atlas bitmap (size 16384x16380) [none]
15.590 Created an atlas bitmap (size 16384x16384) [none]
15.592 Created an atlas bitmap (size 16384x15444) [none]
15.592 Created an atlas bitmap (size 16384x8392) [decal]
15.598 Created an atlas bitmap (size 16384x16384) [low-object]
15.598 Created an atlas bitmap (size 4096x1472) [low-object]
15.599 Created an atlas bitmap (size 16384x13440) [corpse-decay]
15.600 Created an atlas bitmap (size 16384x5596) [none]
15.600 Created an atlas bitmap (size 1676x79) [not-compressed]
15.600 Created an atlas bitmap (size 8192x6096) [mipmap, linear-minification, linear-magnification, linear-mip-level]
15.607 Created an atlas bitmap (size 16384x16320) [terrain, mipmap, linear-minification, linear-mip-level]
15.607 Created an atlas bitmap (size 16384x4832) [terrain, mipmap, linear-minification, linear-mip-level]
15.608 Created an atlas bitmap (size 8192x3872) [terrain-effect-map, mipmap, linear-minification, linear-mip-level]
15.608 Created an atlas bitmap (size 4096x3104) [smoke, mipmap, linear-minification, linear-magnification]
15.608 Created an atlas bitmap (size 8192x2576) [mipmap]
15.608 Created an atlas bitmap (size 2048x1520) [mipmap]
15.609 Created an atlas bitmap (size 4096x3152) [mipmap]
15.609 Created an atlas bitmap (size 4096x3152) [mipmap]
15.609 Created an atlas bitmap (size 4096x3152) [mipmap]
15.610 Created an atlas bitmap (size 8192x3792) [icon, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level]
15.612 Created an atlas bitmap (size 16384x6120) [alpha-mask]
15.637 Created an atlas bitmap (size 16384x16380) [shadow, linear-magnification, alpha-mask]
15.643 Created an atlas bitmap (size 16384x16368) [shadow, linear-magnification, alpha-mask]
15.644 Created an atlas bitmap (size 16384x8364) [shadow, linear-magnification, alpha-mask]
15.644 Created an atlas bitmap (size 8192x2352) [shadow, mipmap, linear-magnification, alpha-mask]
15.644 Created an atlas bitmap (size 2048x496) [icon-background, not-compressed, mipmap, linear-minification, linear-magnification, linear-mip-level, ]
15.644 Loading 3D bitmaps.
15.659 Texture processor created (2048). GPU accelerated compression Supported: yes, Enabled: yes/yes. Test passed. YCoCgDXT PSNR: 35.83, BC3 PSNR: 33.82
15.665 Parallel sprite loader initialized (threads: 13, bitmaps: 8227)
36.672 Sprites loaded
36.685 Generated mipmaps (4) for atlas [5] of size 16384x16384
36.696 Generated mipmaps (4) for atlas [6] of size 4096x1472
36.707 Generated mipmaps (3) for atlas [10] of size 8192x6096
36.719 Generated mipmaps (3) for atlas [11] of size 16384x16320
36.730 Generated mipmaps (3) for atlas [12] of size 16384x4832
36.741 Generated mipmaps (3) for atlas [13] of size 8192x3872
36.752 Generated mipmaps (3) for atlas [14] of size 4096x3104
36.793 Generated mipmaps (3) for atlas [15] of size 8192x2576
36.804 Generated mipmaps (3) for atlas [16] of size 2048x1520
36.815 Generated mipmaps (3) for atlas [17] of size 4096x3152
36.842 Generated mipmaps (3) for atlas [18] of size 4096x3152
36.853 Generated mipmaps (3) for atlas [19] of size 4096x3152
36.864 Generated mipmaps (5) for atlas [20] of size 8192x3792
36.875 Generated mipmaps (3) for atlas [25] of size 8192x2352
36.908 Custom mipmaps uploaded (3203)
37.069 Factorio initialised
37.075 Game is running on selected version branch on Steam.
37.075 Steam Storage Quota: 23587/23841
178.614 Loading blueprint storage: Local timestamp 1730259955, Cloud timestamp 1730260031
179.355 Loading level.dat: 1069326 bytes.
179.355 Info Scenario.cpp:178: Map version 2.0.12-2
179.374 Loading blueprint storage: Local timestamp 1730259955, Cloud timestamp 1730260031
179.393 Checksum for script __level__/control.lua: 2463946943
321.651 Time travel logging:
211.915 Player 0 ran command: local demolishers = game.surfaces["vulcanus"].find_entities_filtered{ type = "segmented-unit" } game.player.print(#demolishers)
317.015 Player 0 ran command: local demolishers = game.surfaces["vulcanus"].find_entities_filtered{ type = "segmented-unit" } game.player.print(#demolishers)
321.648 Player 0 ran command: local demolishers = game.surfaces["vulcanus"].find_entities_filtered{ type = "segmented-unit" } game.player.print(#demolishers) demolishers[1].die(game.player.force, game.player.character)
Factorio crashed. Generating symbolized stacktrace, please wait ...
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\Util\ReleaseAssert.cpp(7): ReleaseAssertFailed
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\Entity\EntityWithHealth.cpp(603): EntityWithHealth::die
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\Entity\Segments\SegmentedUnit.cpp(121): SegmentedUnit::die
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\Script\LuaEntity.cpp(894): LuaEntity::luaDie
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\Script\LuaBinder.hpp(281): LuaBinder<LuaHeatEnergySourcePrototype>::callWrapperOnObject
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\libraries\Lua\ldo.c(352): luaD_precall
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\libraries\Lua\lvm.c(717): luaV_execute
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\libraries\Lua\lapi.c(1068): f_call
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\libraries\Lua\ldo.c(137): luaD_rawrunprotected
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\libraries\Lua\ldo.c(625): luaD_pcall
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\Script\LuaGameScript.cpp(1853): LuaGameScript::runLuaCommand
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\Script\LuaContext.cpp(284): LuaContext::runLuaCommand
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\CommandProcessor.cpp(1614): CommandProcessor::doExecuteCommand
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\CommandProcessor.cpp(327): CommandProcessor::executeCommand
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\CommandProcessor.cpp(256): CommandProcessor::process
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\GameActionHandler.cpp(3756): GameActionHandler::writeToConsole
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\GameActionHandler.cpp(353): GameActionHandler::actionPerformed
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\Input\InputSource.cpp(67): InputSource::flushActions
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\Input\PlayerInputSource.cpp(518): PlayerInputSource::flushActions
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\GameActionHandler.cpp(389): GameActionHandler::update
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\MainLoop.cpp(1340): MainLoop::gameUpdateStep
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\MainLoop.cpp(1206): MainLoop::gameUpdateLoop
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\functional(823): std::_Func_impl_no_alloc<`MainLoop::mainLoopStep'::`2'::<lambda_1>,void>::_Do_call
C:\Users\build\AppData\Local\Temp\factorio-build-9ifPTQ\src\Util\WorkerThread.cpp(70): WorkerThread::loop
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include\thread(56): std::thread::_Invoke<std::tuple<void (__cdecl LogitechLEDController::*)(void),LogitechLEDController *>,0,1>
minkernel\crts\ucrt\src\appcrt\startup\thread.cpp(97): thread_start<unsigned int (__cdecl*)(void *),1>
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE77FC7374)
00007FFE77FC7374 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFE79FDCC91)
00007FFE79FDCC91 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
323.160 Error EntityWithHealth.cpp:603: !this->isToBeDeleted() was not true
323.160 Error CrashHandler.cpp:643: Received 22
Logger::writeStacktrace skipped.
323.160 Error CrashHandler.cpp:190: Map tick at moment of crash: 8479
323.216 Info CrashHandler.cpp:318: Executable CRC: 2462234129
323.216 Error Util.cpp:95: 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.
327.131 Uploading log file
327.149 Error CrashHandler.cpp:270: Heap validation: success.
327.150 Creating crash dump.
327.392 CrashDump success