Why does app stop working so often, mainly when playing a trail, and when you deviate from the route?
Please let me know wich device you have and related os (android or ios). It is possible that are involved many reasons. Memory issue is the must common. But in your case you have to tell us more about your scenario.