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

Surface View stops camera preview #60

Open
rohitsharma181589 opened this issue Aug 28, 2018 · 1 comment
Open

Surface View stops camera preview #60

rohitsharma181589 opened this issue Aug 28, 2018 · 1 comment
Labels

Comments

@rohitsharma181589
Copy link

rohitsharma181589 commented Aug 28, 2018

Do you want to request a feature or report a bug?

What is the current behavior?

Surface View doesn't show camera preview (Or camera stops) when user locks the device and resume the activity again and this generally happens when u lock your device. Here the part of log:

CAMERA_MSG_STATE_CALLBACK
mCameraStateCallback is null
Camera-JNI: copyAndPost: off=0, size=518400 msg=10
Camera-JNI: copyAndPost: off=0, size=518400 msg=10
Camera-JNI: copyAndPost: off=0, size=518400 msg=10

Any other comments?

I am performing these operations in onPause and onDestroy:
@OverRide
protected void onPause() {
if (null != qrEader) {
qrEader.stop();
}
super.onPause();
}

@Override
protected void onDestroy() {
    super.onDestroy();
    if (null != qrEader) {
        qrEader.releaseAndCleanup();
    }
}

and restrating qrReader in onResume:
qrEader.start();

Device Information: one plus 5
Android Version: android oreo

I also found out this in my log:
W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found.
W/zygote64: Unsupported class loader
W/zygote64: Skipping duplicate class check due to unsupported classloader
I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1702

Skipping duplicate class check due to unsupported classloader
I/Vision: Loading library libbarhopper.so
I/zygote64: The ClassLoaderContext is a special shared library.
The ClassLoaderContext is a special shared library.
Access denied finding property "camera.hal1.packagelist"

@CrazyCoderAndroid
Copy link

have u got the solution ?

@nisrulz nisrulz added the bug label Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants