I struggle figuring it out. If there's a tool that just pastes all javascript running in succession I would love using it. Is that hidden in the debugger somewhere?
Edit: I feel this is the only way I can track this down. Even when playing the exact same scenario over and over again it can't be reproduced consistently. Some times it takes 90 minutes of play, other times 2. Nothing in the code can theoretically lead to a crash of this nature , and it's happening with game features that I haven't touched for months with no issues. I'm finding more and more reason to suspect this isn't my code's fault, but a problem with Construct. The problem happens with Chrome, NWjs and FireFox, so it's not just an isolated browser issue either.
Edit 2: Just solved the bug. Took the whole weekend, and the best part is that the solution doesn't even make sense. It definately wasn't related to any loops. I've never been more certain there's a bug in Construct 2.