[boskid][1.1.107] Crash with recursed concatenation of localisation strings

This subforum contains all the issues which we already resolved.
BurninSun
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Fri Mar 16, 2018 4:54 am
Contact:

[boskid][1.1.107] Crash with recursed concatenation of localisation strings

Post by BurninSun »

Code: Select all

/c local t = {""} t[2] = t game.print(t)
This code tries to recursively localize {"", {"", {"", {"", {"",....}}}}} eventually crashing due to stack overflow.

How to handle it (if at all) is left as an exercise for the developer.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15540
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.107] Crash with recursed concatenation of localisation strings

Post by Rseding91 »

Thanks for the report. Simply don’t do that.
If you want to get ahold of me I'm almost always on Discord.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3881
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.107] Crash with recursed concatenation of localisation strings

Post by boskid »

Fixed for 2.0.48.
Post Reply

Return to “Resolved Problems and Bugs”