[Twinsen][1.1.109][switch] Crash when focusing on a script created text-box longer than 512 chars

Post Reply
chrisgbk
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Mon Jan 02, 2017 4:31 am
Contact:

[Twinsen][1.1.109][switch] Crash when focusing on a script created text-box longer than 512 chars

Post by chrisgbk »

Hard crash, completely closes.

Following minimal scenario was hosted on PC server and connected to with switch (see attachment for zip version to extract to scenarios folder):

Code: Select all

script.on_event(defines.events.on_player_joined_game, function(e)
    local player = game.players[e.player_index]
	local edit = player.gui.center.add{type = 'text-box'}
	edit.word_wrap = true
	edit.style.width = 600
	edit.style.height = 200
	edit.text = string.rep('a', 480) .. '\n\nclick to crash switch (not pc)\n\n'
end)
Smaller strings are fine, only >512 character strings cause an issue, possibly a buffer overflow.
Attachments
Switch-bug.zip
(549 Bytes) Downloaded 19 times

Post Reply

Return to “Assigned”