[Genhis][2.0.10] Crash when modifying vanilla tree sprites
Posted: Thu Oct 24, 2024 5:27 pm
Using the code below in data stage, Factorio crashes when building the sprite atlas. Logs attached.
Code: Select all
local i = 1
local pictures = {}
local function make_tree_sprite(variant)
pictures[i] = {
layers = {
variant.trunk,
variant.normal,
variant.leaves,
variant.shadow
}
}
i = i + 1
end
for _, variant in pairs(data.raw.tree["tree-09"].variations) do
make_tree_sprite(variant)
end
data:extend {{
type = "simple-entity",
name = "big-tree-sprite",
pictures = pictures,
icon = "__base__/graphics/icons/tree-09.png",
icon_size = 64,
icon_mipmaps = 4,
collision_mask = {layers = {}},
collision_box = {{-2, -12}, {2, 2}},
hidden = true,
flags = {"not-on-map", "not-flammable", "not-rotatable", "not-in-kill-statistics",},
selectable_in_game = false,
render_layer = "object",
localised_name = {"entity-name.big-tree"}
}}
Code: Select all
0.001 2024-10-24 19:25:50; Factorio 2.0.10 (build 79578, win64, full, space-age)
0.001 Operating system: Windows 10 (build 19045)
0.002 Program arguments: "C:\Users\przemek\Desktop\factorio 2.0\Factorio_1.2.21\bin\x64\factorio.exe"
0.002 Config path: C:/Users/przemek/Desktop/factorio 2.0/Factorio_1.2.21/config/config.ini
0.002 Read data path: C:/Users/przemek/Desktop/factorio 2.0/Factorio_1.2.21/data
0.002 Write data path: C:/Users/przemek/Desktop/factorio 2.0/Factorio_1.2.21 [126626/952343MB]
0.002 Binaries path: C:/Users/przemek/Desktop/factorio 2.0/Factorio_1.2.21/bin
0.032 System info: [CPU: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz, 6 cores, RAM: 17214/32687 MB, page: 27905/47023 MB, virtual: 4260/134217727 MB, extended virtual: 0 MB]
0.045 Memory info:
0.045 [0]: 029E CMK16GX4M2B3200C16 8192 MB 2133 MHz 1.2 v
0.045 [1]: 029E CMK16GX4M2B3000C15 8192 MB 2133 MHz 1.2 v
0.045 [2]: 029E CMK16GX4M2B3200C16 8192 MB 2133 MHz 1.2 v
0.045 [3]: 029E CMK16GX4M2B3000C15 8192 MB 2133 MHz 1.2 v
0.188 Display options: [FullScreen: true] [VSync: true] [UIScale: manual-pixels (100.0%)] [Native DPI: true] [Screen: 255] [Special: lmw] [Lang: en]
0.263 Video driver: windows
0.263 Available displays: 1
0.263 [0]: \\.\DISPLAY1 - NVIDIA GeForce GTX 1660 {0x05, [0,0], 1920x1080, 32bit, 60Hz}
0.307 [Direct3D11] Display: 0, Output: 0, DisplayAdapter: 0, RenderingAdapter: -1; d3dcompiler_47.dll
0.635 Initialised Direct3D[0]: NVIDIA GeForce GTX 1660; id: 10de-2184; driver: nvldumdx.dll 31.0.15.4617
0.635 D3D Feature Level: 11.1, DXGI 1.5+, SwapChain: 3,flip-discard,-,-,-,none
0.636 [Local Video Memory] Budget: 5213MB, CurrentUsage: 22MB, Reservation: 0/2734MB
0.636 [Non-Local Vid.Mem.] Budget: 15575MB, CurrentUsage: 16MB, Reservation: 0/7915MB
0.636 Tiled resources: Tier 2
0.636 Unified Memory Architecture: No
0.636 BGR 565 Supported: Yes
0.636 MaximumFrameLatency: 3, GPUThreadPriority: 0
0.636 Graphics settings preset: very-high
0.636 Dedicated video memory size 5981 MB
0.711 Desktop composition is active.
0.711 Graphics options: [Graphics quality: high] [Video memory usage: all] [DXT: high-quality]
0.711 [Max threads (load/render): 32/6] [Max texture size: 0] [Tex.Stream.: false] [Rotation quality: normal] [Other: STDCWT] [B:0,C:0,S:100]
0.748 [Audio] Driver:wasapi, Device:Default device, Depth:16, Channels:2, Frequency:44100
0.854 Info ModManager.cpp:434: FeatureFlag expansion-shaders = false
0.854 Info ModManager.cpp:434: FeatureFlag freezing = false
0.854 Info ModManager.cpp:434: FeatureFlag quality = false
0.854 Info ModManager.cpp:434: FeatureFlag rail-bridges = false
0.855 Info ModManager.cpp:434: FeatureFlag segmented-units = false
0.855 Info ModManager.cpp:434: FeatureFlag space-travel = false
0.855 Info ModManager.cpp:434: FeatureFlag spoiling = false
0.857 Loading mod settings test-mod 1.0.0 (settings.lua)
0.858 Loading mod settings test-mod 1.0.0 (settings-updates.lua)
0.858 Loading mod settings test-mod 1.0.0 (settings-final-fixes.lua)
0.861 Loading mod core 0.0.0 (data.lua)
0.897 Loading mod base 2.0.10 (data.lua)
1.331 Loading mod test-mod 1.0.0 (data.lua)
1.339 Loading mod base 2.0.10 (data-updates.lua)
1.348 Loading mod test-mod 1.0.0 (data-updates.lua)
1.357 Loading mod test-mod 1.0.0 (data-final-fixes.lua)
1.428 Checksum for core: 2896921138
1.428 Checksum of base: 3513392431
1.428 Checksum of test-mod: 2137027275
1.595 Prototype list checksum: 2255210728
1.644 Loading sounds...
2.066 Info PlayerData.cpp:66: Local player-data.json available, timestamp 1729790513
2.066 Info PlayerData.cpp:73: Cloud player-data.json unavailable
Factorio crashed. Generating symbolized stacktrace, please wait ...
C:\Users\build\AppData\Local\Temp\factorio-build-iYFCEN\src\Util\ReleaseAssert.cpp(7): ReleaseAssertFailed
C:\Users\build\AppData\Local\Temp\factorio-build-iYFCEN\src\Graphics\AtlasBuilder.cpp(129): AtlasBuilder::assignLookupIndex
C:\Users\build\AppData\Local\Temp\factorio-build-iYFCEN\src\Graphics\Sprite.cpp(711): Sprite::loadSprites
C:\Users\build\AppData\Local\Temp\factorio-build-iYFCEN\src\GlobalContext.cpp(548): GlobalContext::init
C:\Users\build\AppData\Local\Temp\factorio-build-iYFCEN\src\MainLoop.cpp(288): MainLoop::run
C:\Users\build\AppData\Local\Temp\factorio-build-iYFCEN\src\Main.cpp(1325): fmain
C:\Users\build\AppData\Local\Temp\factorio-build-iYFCEN\src\Main.cpp(1347): wmain
D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288): __scrt_common_main_seh
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC61677374)
00007FFC61677374 (KERNEL32): (filename not available): BaseThreadInitThunk
ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 00007FFC62E9CC91)
00007FFC62E9CC91 (ntdll): (filename not available): RtlUserThreadStart
Stack trace logging done
4.145 Error AtlasBuilder.cpp:129: lookupTable == this->getLookupTable(srcSprite) was not true
4.145 Error CrashHandler.cpp:643: Received 22
Logger::writeStacktrace skipped.
4.221 Info CrashHandler.cpp:318: Executable CRC: 1667735714
4.221 C:\Users\przemek\Desktop\factorio 2.0\Factorio_1.2.21\bin\x64\factorio.exe
4.221 C:\WINDOWS\SYSTEM32\ntdll.dll
4.221 C:\WINDOWS\System32\KERNEL32.DLL
4.221 C:\WINDOWS\System32\KERNELBASE.dll
4.221 C:\WINDOWS\System32\WLDAP32.dll
4.221 C:\WINDOWS\System32\ucrtbase.dll
4.221 C:\WINDOWS\System32\GDI32.dll
4.221 C:\WINDOWS\System32\win32u.dll
4.221 C:\WINDOWS\System32\gdi32full.dll
4.221 C:\WINDOWS\SYSTEM32\DNSAPI.dll
4.221 C:\WINDOWS\System32\msvcp_win.dll
4.221 C:\WINDOWS\System32\USER32.dll
4.221 C:\WINDOWS\System32\ole32.dll
4.221 C:\WINDOWS\System32\RPCRT4.dll
4.221 C:\WINDOWS\System32\combase.dll
4.221 C:\WINDOWS\System32\SHELL32.dll
4.221 C:\WINDOWS\System32\SHLWAPI.dll
4.221 C:\WINDOWS\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.19041.4597_none_91a78020cc854124\gdiplus.dll
4.221 C:\WINDOWS\SYSTEM32\WINMM.dll
4.221 C:\WINDOWS\System32\msvcrt.dll
4.221 C:\WINDOWS\System32\IMM32.dll
4.221 C:\WINDOWS\System32\OLEAUT32.dll
4.221 C:\WINDOWS\System32\SETUPAPI.dll
4.221 C:\WINDOWS\System32\cfgmgr32.dll
4.222 C:\WINDOWS\System32\bcrypt.dll
4.222 C:\WINDOWS\System32\ADVAPI32.dll
4.222 C:\WINDOWS\System32\sechost.dll
4.222 C:\WINDOWS\System32\WS2_32.dll
4.222 C:\WINDOWS\System32\CRYPT32.dll
4.222 C:\WINDOWS\System32\WINTRUST.dll
4.222 C:\WINDOWS\System32\imagehlp.dll
4.222 C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
4.222 C:\WINDOWS\SYSTEM32\VERSION.dll
4.222 C:\WINDOWS\System32\NSI.dll
4.222 C:\WINDOWS\SYSTEM32\MSASN1.dll
4.222 C:\WINDOWS\SYSTEM32\windows.storage.dll
4.222 C:\WINDOWS\SYSTEM32\Wldp.dll
4.222 C:\WINDOWS\System32\SHCORE.dll
4.222 C:\WINDOWS\SYSTEM32\profapi.dll
4.222 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
4.222 C:\WINDOWS\System32\bcryptPrimitives.dll
4.222 C:\WINDOWS\System32\clbcatq.dll
4.222 C:\WINDOWS\SYSTEM32\amsi.dll
4.222 C:\WINDOWS\SYSTEM32\USERENV.dll
4.222 C:\Program Files\ESET\ESET Security\eamsi.dll
4.222 C:\WINDOWS\system32\uxtheme.dll
4.222 C:\WINDOWS\SYSTEM32\mscms.dll
4.222 C:\WINDOWS\SYSTEM32\ColorAdapterClient.dll
4.222 C:\WINDOWS\SYSTEM32\icm32.dll
4.222 C:\WINDOWS\SYSTEM32\hid.dll
4.222 C:\WINDOWS\SYSTEM32\DEVOBJ.dll
4.222 C:\Windows\System32\dinput8.dll
4.223 C:\WINDOWS\SYSTEM32\inputhost.dll
4.223 C:\WINDOWS\SYSTEM32\CoreMessaging.dll
4.223 C:\WINDOWS\SYSTEM32\PROPSYS.dll
4.223 C:\WINDOWS\SYSTEM32\wintypes.dll
4.223 C:\WINDOWS\SYSTEM32\CoreUIComponents.dll
4.223 C:\WINDOWS\SYSTEM32\ntmarta.dll
4.223 C:\WINDOWS\SYSTEM32\XInput1_4.dll
4.223 C:\Windows\System32\Windows.Gaming.Input.dll
4.223 C:\Windows\System32\twinapi.appcore.dll
4.223 C:\WINDOWS\SYSTEM32\dxgi.dll
4.223 C:\WINDOWS\SYSTEM32\d3d11.dll
4.223 C:\WINDOWS\SYSTEM32\d3d9.dll
4.223 C:\WINDOWS\SYSTEM32\dwmapi.dll
4.223 C:\WINDOWS\SYSTEM32\d3dcompiler_47.dll
4.223 C:\WINDOWS\SYSTEM32\CRYPTSP.dll
4.223 C:\WINDOWS\System32\MSCTF.dll
4.223 C:\WINDOWS\SYSTEM32\textinputframework.dll
4.223 C:\WINDOWS\SYSTEM32\WindowsCodecs.dll
4.223 C:\WINDOWS\System32\DriverStore\FileRepository\nvmdi.inf_amd64_1e678564fff99713\nvldumdx.dll
4.224 C:\WINDOWS\SYSTEM32\cryptnet.dll
4.224 C:\WINDOWS\SYSTEM32\drvstore.dll
4.224 C:\WINDOWS\SYSTEM32\cryptbase.dll
4.224 C:\WINDOWS\system32\rsaenh.dll
4.224 C:\WINDOWS\System32\DriverStore\FileRepository\nvmdi.inf_amd64_1e678564fff99713\nvgpucomp64.dll
4.224 C:\WINDOWS\System32\DriverStore\FileRepository\nvmdi.inf_amd64_1e678564fff99713\nvwgf2umx.dll
4.224 C:\WINDOWS\SYSTEM32\powrprof.dll
4.224 C:\WINDOWS\SYSTEM32\UMPDC.dll
4.224 C:\WINDOWS\system32\nvspcap64.dll
4.224 C:\WINDOWS\System32\DriverStore\FileRepository\nvmdi.inf_amd64_1e678564fff99713\NvCamera\NvCamera64.dll
4.224 C:\WINDOWS\SYSTEM32\XINPUT9_1_0.dll
4.224 C:\WINDOWS\System32\DriverStore\FileRepository\nvmdi.inf_amd64_1e678564fff99713\Display.NvContainer\MessageBus.dll
4.225 C:\WINDOWS\SYSTEM32\dxcore.dll
4.225 C:\WINDOWS\SYSTEM32\dhcpcsvc.DLL
4.225 C:\WINDOWS\System32\DriverStore\FileRepository\nvmdi.inf_amd64_1e678564fff99713\NvCamera\d3dcompiler_47_64.dll
4.225 C:\Users\przemek\AppData\Local\Discord\app-1.0.9168\modules\discord_hook-1\discord_hook\51d7d449ddb306\DiscordHook64.dll
4.225 C:\WINDOWS\system32\mswsock.dll
4.225 C:\WINDOWS\system32\nvapi64.dll
4.225 C:\WINDOWS\System32\DriverStore\FileRepository\nvmdi.inf_amd64_1e678564fff99713\nvcuda64.dll
4.225 C:\WINDOWS\SYSTEM32\dcomp.dll
4.225 C:\WINDOWS\System32\DriverStore\FileRepository\nvmdi.inf_amd64_1e678564fff99713\nvd3dumx.dll
4.225 C:\WINDOWS\System32\MMDevApi.dll
4.225 C:\WINDOWS\SYSTEM32\avrt.dll
4.225 C:\WINDOWS\SYSTEM32\AUDIOSES.DLL
4.225 C:\WINDOWS\SYSTEM32\resourcepolicyclient.dll
4.226 C:\Program Files\NVIDIA Corporation\NvContainer\MessageBus.dll
4.226 C:\WINDOWS\system32\explorerframe.dll
4.226 C:\WINDOWS\system32\d2d1.dll
4.226 C:\WINDOWS\SYSTEM32\secur32.dll
4.226 C:\WINDOWS\SYSTEM32\SSPICLI.DLL
4.226 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.
5.256 Error CrashHandler.cpp:270: Heap validation: success.
5.257 Creating crash dump.
5.444 CrashDump success