Open jaroslavas opened 6 years ago
I'm also interested in this - trying to figure out why on specific device app freezes after taking a photo, while only having some logs to look at. In 1.5.0 version, when camera failed i could get some specifics about exception in log:
E/Camera: Error 100
W/System.err: java.lang.Exception
W/System.err: at io.fotoapparat.hardware.v1.Camera1.recordMethod(Camera1.java:434)
W/System.err: at io.fotoapparat.hardware.v1.Camera1.takePicture(Camera1.java:285)
Now, at 2.2.0 at same device with same issue i see:
Couldn't deliver pending result: Operation failed internally.
I think it can be useful if PendingResult. whenAvailable
after catching exception would also print out stacktrace alongside that short description. It might not be that useful in some cases, but still it is better to at least give some idea why that might happen.
Hey, we suppress the exception in the whenDone
(maybe we can think a way to deliver that one somehow). If you really need to debug this you can either use .await
which will throw an exception or attach an rxAdapter
which will propagate the error in the .onError
Same problem.
Same issue.
What are you trying to achieve or the steps to reproduce?
When running
result.saveToFile(image)
photo is not saved and the only thing I get isCouldn't deliver pending result: Operation failed internally
in logcat and null unit inwhenDone
. How should I debug the issue and find out what's wrong?How did you initialize FA?
And then:
What was the result you received?
Couldn't deliver pending result: Operation failed internally
What did you expect?
A photo saved to a file or more descriptive error/exception.
Context: