[Genhis][2.0.52] Crash reading style.horizontal_spacing
Posted: Sun May 25, 2025 4:45 am
Accessing .style.horizontal_spacing on a table GUI element results in a hard crash (Access Violation) inside LuaStyle::luaReadHorizontalSpacing, even inside a pcall().
Writing to the property first prevents the crash.
Reproduction:
Writing to the property first prevents the crash.
Reproduction:
Code: Select all
script.on_event(defines.events.on_player_created, function(event)
local player = game.players[event.player_index]
local t = player.gui.screen.add{type="table", column_count=1}
local _ = t.style.horizontal_spacing -- 💥 Factorio crashes here
end)