Well I have been limiting the memory usage of my code to 'solve' the problem so far. If it was the problem at all. I'm not sure.