Camera app

After updating to Android P, after some time camera app unexpectedly not working properly as it is working smoothly in Android Oreo.