The lens is blacking out.
When I turn on my camera the screen blacks out and won't take a picture but will still show the box (it turns red so it doesn't focus). It seems as if the lens thinks it is seeing pure darkness and there is nothing to focus on.
And when I tried to take photo outside, it will work, (outdoor) but if I take pictures inside (indoor, must say no lights at all) it wont work.