Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping frames #41

Open
Yuliya-Kaleda opened this issue Oct 23, 2015 · 3 comments
Open

Skipping frames #41

Yuliya-Kaleda opened this issue Oct 23, 2015 · 3 comments

Comments

@Yuliya-Kaleda
Copy link

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?

@pm0733464
Copy link
Contributor

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

@Yuliya-Kaleda
Copy link
Author

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.

@rameshniyo
Copy link

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

#476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants