Skip to content

Camera system error #45

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

Open
vaclavpavlicek opened this issue Feb 24, 2016 · 2 comments
Open

Camera system error #45

vaclavpavlicek opened this issue Feb 24, 2016 · 2 comments

Comments

@vaclavpavlicek
Copy link

Hi everyone,
I have a problem with camera. I sometimes get error, but sometimes it works well.

Here is my error log.

02-24 17:23:27.390 19600-19600/com.vuzix.m100empty E/ScannerLiveView: n/a
02-24 17:23:27.390 19600-19600/com.vuzix.m100empty E/SCANNER: java.lang.RuntimeException: Camera system error -1

And there are my permissions from manifest.
`

<uses-permission android:name="android.permission.CAMERA" />

`
I am getting this error on Android 4.0.3. Thanks for help!

@vaclavpavlicek
Copy link
Author

I have fix it! I had to stop scanner in onDestroy and in onPause. And to onResume I had to start scanner.


    public void onResume() {
        super.onResume();
        scannerLiveView.startScanner();
        voiceControl.on();
    }

    public void onPause() {
        super.onPause();
        scannerLiveView.stopScanner();
        voiceControl.off();
    }

    public void onDestroy() {
        super.onDestroy();
        scannerLiveView.stopScanner();
        voiceControl.destroy();
    }

@cbranca
Copy link

cbranca commented Sep 10, 2017

I have the same error "Camera system error -1". I see a only a black screen with the red target.
I tried your solution but it didn't worked for me.

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

2 participants