Whenever i open my camera, my phone (Nexus 5) Re-Starts. It is running on Android Marshmallow.

A

AC Question

I have used an android diagnostic app(Phone Doctor), the front camera works fine, but whenever i open the rear camera, my phone re-boots. Everything else works fine.