For me, on Xperia E5 worked to reinstall/flash/xperia-software-repair it and after that unplug the camera and plug it back in, but after a while it stopped again, after installation of few simple apps (facebook, messenger, whatsup,viber). Shows “unfortunately camera has stopped”and shut’s down the camera app. Only front camera works and it’s upside-down. Tried to unplug and plug the camera back, again same problem. Maybe I need to install software again, but then the thing is that the problem is in the software.