android-vision icon indicating copy to clipboard operation
android-vision copied to clipboard

Skipping frames

Open Yuliya-Kaleda opened this issue 9 years ago • 3 comments

When I call cameraSource.stop() onPause and onDestroy, the logcat prompts about skipping n frames and the application may be doing too much work on its main thread. I tried to put cameraSource.stop() in a separate thread, but still see the same message. Why is it happening?

Yuliya-Kaleda avatar Oct 23 '15 14:10 Yuliya-Kaleda

I believe that this is just a side effect of shutting down the camera preview. If you are interested in exploring the code more, there's a copy of this class open sourced here:

https://github.com/googlesamples/android-vision/blob/master/visionSamples/barcode-reader/app/src/main/java/com/google/android/gms/samples/vision/barcodereader/ui/camera/CameraSource.java#L396

pm0733464 avatar Oct 23 '15 18:10 pm0733464

Thank you! When I call cameraSource.stop(), there should not be any issues with skipping frames because CameraSource.class takes care of stop() method. So I do not understand why it is happening.

Yuliya-Kaleda avatar Oct 23 '15 19:10 Yuliya-Kaleda

@Yuliya-Kaleda How did you resolve the issue.I am facing the same issue.Please check the error description

https://github.com/googlesamples/android-vision/issues/476

rameshniyo avatar Mar 09 '22 07:03 rameshniyo