Black Shark 2
Black Shark Gaming Phone
How to overcome this issue
Try enabling all permissions for the camera app.
I was happening before the last update. If you have a new BS2 please update the OS to the latest one.
Also, you will have to do what Link suggested if it is still not working after the update