My PI 2 reboots randomly when I'm running an opengl app.
Now I know this is probably due to something going wrong in the app but I was wondering how best to try and debug this.
Currently I get no error messages in systemd or dmesg. All I get is a reboot message.
The fact that reboot is being written into the log surely means the kernel knows something has happened!
Temperature immediately afer the crash was 40C so don't think its that.
Power is from a UPS so I dont think its that (If I don't run the graphics app it will run for days without rebooting)
The SD Card is a high quality one and again runs for days if not running the graphics app.
The app just draws a texture and a few lines on the screen so nothing heavy. Note that I'm not running X-Windows or anything like that.
Kernel version is 4.1.12-2 (latest afaik) I've also tried it on 4.1.7-2
Is there any kind of driver monitoring I can enable so I could debug what the display driver is doing before the crash?
Cheers