Page 1 of 1

[Genhis][2.0.52] Crash reading style.horizontal_spacing

Posted: Sun May 25, 2025 4:45 am
by Kuxynator
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:

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)

Re: [Genhis][2.0.52] Crash reading style.horizontal_spacing

Posted: Sun May 25, 2025 8:35 am
by Genhis
Thanks for the report, the crash is fixed for 2.0.53.