Sometimes camera don't starts and we get the error - Camera is starting, please wait

Hi Team,
I am getting this issue on JavaScript console “Camera is starting, please wait”. “INVALID_OPERATION” and Camera didn’t start even if we wait for long time.