My game works on local server without an issue. But when I play it on Facebook, it gives memory access out of bounds error after some time. I couldn't find the cause.