nisrulz / qreader

:white_square_button: [Android Library] Read QR codes using google's mobile vision api, but without the hassle
http://nisrulz.github.io/qreader
Apache License 2.0
369 stars 108 forks source link

Surface View stops camera preview #60

Open rohitsharma181589 opened 6 years ago

rohitsharma181589 commented 6 years ago

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 commented 4 years ago

have u got the solution ?