You need to initialise `t_lines . elements` and `t_lines . count` to `0` and `nil` - this is the cause of the script editor crash on Linux