Edit: I crashed in pathfinding code, not sure if it would help if I disabled/enabled it, so I'll leave that for later investigation. The risk is the game will always freeze up at some point because of it though.
Also mouse cursor was behaving really weirdly, not sure what to make of that.