Closed jpribble closed 6 years ago
(same will happen for current parameters)
Explicit, improved logs in #181
I'm still seeing this issue when testing the latest master code. Here are the logs:
01-18 10:52:17.208 11349-11349/ D/Fotoapparat: Fotoapparat:
01-18 10:52:17.228 11349-11349/ D/Fotoapparat: Fotoapparat: start 01-18 10:52:17.228 11349-11349/ D/Fotoapparat: Fotoapparat: getCurrentParameters 01-18 10:52:17.228 11349-12587/ D/Fotoapparat: Device: selectCamera 01-18 10:52:17.228 11349-12587/ D/Fotoapparat: CameraDevice: open 01-18 10:52:17.228 11349-11349/ D/Fotoapparat: Fotoapparat: getCapabilities 01-18 10:52:17.228 11349-12975/ D/Fotoapparat: CameraDevice: getParameters$suspendImpl 01-18 10:52:17.368 11349-12587/ D/Fotoapparat: CameraDevice: getCapabilities$suspendImpl 01-18 10:52:17.368 11349-12587/ D/Fotoapparat: CameraDevice: updateParameters$suspendImpl 01-18 10:52:17.368 11349-12975/ D/Fotoapparat: CameraDevice: getCapabilities$suspendImpl 01-18 10:52:17.368 11349-12590/ D/Fotoapparat: Couldn't deliver pending result: Operation failed internally. 01-18 10:52:17.368 11349-12587/ D/Fotoapparat: New camera parameters are: CameraParameters ...
I believe that pull request will fix it #188
What are you trying to achieve or the steps to reproduce?
I'm trying to call Fotoapparat.getCurrentParameters().whenAvailable { ... } and Fotoapparat.getCapabilities().whenAvailable { ... } in my Activity's onStart().
How did you initialize FA?
What was the result you received?
Both calls return NULL and the log shows "Couldn't deliver pending result":
What did you expect?
I expect the calls to return valid results and delay their async callbacks if the camera is still initializing.
Context: