these bugs are really hard to solve and usually are caused by some hardware issue. All android applications run in own small "sandbox" where are separated from system. Usually it means that if in application is problem, that crash whole Android system, it's more problem of Android itself then this application.
Anyway, here is only idea using any program that periodically record logs in very short interval. I may recommend CatLog program from Google Play, where you may set in settings one second interval. It will slow down your device a little, because it will very often record logs on card, but I allow to record some logs where should be visible, what cause this problem.
Also you're now really only one who wrote about this, so I'm really worry that permanent usage of GPS, sensor, track record etc. at once, is too much