Closed jpribble closed 6 years ago
Let's do that. Should be happening only if the CameraView#onDetachedFromWindow
got called quicker than the preview surface became available. UnavailableSurfaceException
will be returned in cameraErrorCallback
for transparency but can be normally get ignored.
I just upgraded to v2.0.0 and found this fatal exception when first starting the camera. It only occurred once and I was unable to reproduce it (tried about 30 times).
How did you initialize FA?
What was the result you received?
Fotoapparat crashed with a fatal exception when trying to start the camera.
Stack Trace:
What did you expect?
Expected for the camera to start successfully and not crash. If there is an exception while starting, pass the error to the cameraErrorCallback listener.
Context: