H
Homunculus
Guest
Since it's pretty clear to me that this is a bug, I already reported it. I just wanted to report here too, since it is a really specific problem that may cause some serious headache if encountered (it did to me for sure). I don't know honestly if it's just a mac runner issue or a generalized problem.
Anyways, in short: loading a ds_grid holding empty strings with ds_grid_read, and trying to use one of those empty string values in a data structure that ends up in a json_encode, causes the runner to crash. Sample code:
Anyways, in short: loading a ds_grid holding empty strings with ds_grid_read, and trying to use one of those empty string values in a data structure that ends up in a json_encode, causes the runner to crash. Sample code:
Code:
var _grid = ds_grid_create(1,1);
_grid[# 0,0] = "";
var _grid_data = ds_grid_write(_grid);
ds_grid_read(_grid,_grid_data);
var _map = ds_map_create();
_map[? "value"] = _grid[# 0,0];
json_encode(_map); //causes crash