TL; DR: arrays in our game randomly get corrupted from time to time (array transforms to empty "[ ])" causing crashes like "Variable Index [4] out of range [0]". And it can be partially fixed by increasing gc_target_frame_time from default 100 microseconds to 1000-2000 microseconds.
Our game has LOTS of arrays and after switching to Gamemaker 2.3 (and adding even more arrays) we start to get this bug. With default gc_target_frame_time array corruption can be rolled sometimes in few seconds after loading a game, sometimes in 20-30 minutes. After changing gc_target_frame_time to 1000 microseconds corruptions become really rare but still can appears sometimes. And looks like increasing from 1000 microseconds to 2000 microseconds does not make the situation better. We've tried to disable GC completely by gc_enable(false) and looks like array corruptions don't appear without GC. But disabling GC is definitely not a solution. Also we've noticed that this bug rolls far more often on weaker PCs. This issue appears in different arrays and we double-checked that nothing could overwrite that corrupted array with "[ ]".
Could anyone help to find a solution to our situation?
Our game has LOTS of arrays and after switching to Gamemaker 2.3 (and adding even more arrays) we start to get this bug. With default gc_target_frame_time array corruption can be rolled sometimes in few seconds after loading a game, sometimes in 20-30 minutes. After changing gc_target_frame_time to 1000 microseconds corruptions become really rare but still can appears sometimes. And looks like increasing from 1000 microseconds to 2000 microseconds does not make the situation better. We've tried to disable GC completely by gc_enable(false) and looks like array corruptions don't appear without GC. But disabling GC is definitely not a solution. Also we've noticed that this bug rolls far more often on weaker PCs. This issue appears in different arrays and we double-checked that nothing could overwrite that corrupted array with "[ ]".
Could anyone help to find a solution to our situation?