"Can't connect to camera", Nexus 6 - Lollipop 5.1 My Nexus 6 is unable to start the camera. The google camera app hangs when it starts and nothing shows up. Earlier the camera used to open but it lagged a bit when HDR was on. Now the camera isn't opening anymore. The other apps like Instagram that use the camera are also not able to open it. The app opens up and hangs, nothing shows up just black screen and sometimes the message "Can't connect to Camera" appears. This issue came after 5.1 and I also had buzz launcher installed once but then I removed it. The phone is less than 7 months old. 

What I've tried: 


Forced stop the app (Google Camera) 
Cleared cache of the app 
Booted in recovery mode and wiped cache partition  
Factory reset the device    


Nothing worked for me, I tried these steps one by one and then tested the camera but it is still not working. Please help me with this, I paid a lot of money for this phone on my own and it feels really bad and annoying that the camera isn't functional anymore. 

Thanks in advance. 

Update: after no solution was found and no help from Motorola, Google or flipkart, I have sent the phone for repair to the service center.
The phone is back from the service center and it works fine again. They told me that they had to replace the camera unit. It took them more than 2 weeks to get this done though. The people there were not aware of the actual reason for the issue to occur, neither were they concerned. But I'm happy that it works now.