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

Start preview failed #152

Open
Ray13 opened this issue Jan 29, 2018 · 5 comments
Open

Start preview failed #152

Ray13 opened this issue Jan 29, 2018 · 5 comments

Comments

@Ray13
Copy link

Ray13 commented Jan 29, 2018

I'm using this library on Tablet Asus, model number "P01T", with android 6.0.1

there is an error when starting the camera:

Process: com.example.qr_readerexample, PID: 7395
                                                                            java.lang.RuntimeException: startPreview failed
                                                                                at android.hardware.Camera.startPreview(Native Method)
                                                                                at com.google.zxing.client.android.camera.CameraManager.startPreview(CameraManager.java:202)
                                                                                at com.dlazaro66.qrcodereaderview.QRCodeReaderView.surfaceChanged(QRCodeReaderView.java:250)
                                                                                at android.view.SurfaceView.updateWindow(SurfaceView.java:594)
                                                                                at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:177)
                                                                                at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
                                                                                at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2070)
                                                                                at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1128)
                                                                                at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6104)
                                                                                at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
                                                                                at android.view.Choreographer.doCallbacks(Choreographer.java:670)
                                                                                at android.view.Choreographer.doFrame(Choreographer.java:606)
                                                                                at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
                                                                                at android.os.Handler.handleCallback(Handler.java:739)
                                                                                at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                                at android.os.Looper.loop(Looper.java:148)
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5480)
                                                                                at java.lang.reflect.Method.invoke(Native Method)
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Both my project and your example generate the same problem...
any idea?

Thanks

@rcgonzalezf
Copy link

I'm facing a similar stack trace if there any potential fix to this issue?

@djkskqyr3
Copy link

same here

@tomerpetel
Copy link

tomerpetel commented Jul 23, 2018

Same here.
Occurs on Huawei P8 devices according to Fabric

@djkskqyr3
Copy link

I used other library instead of
implementation 'com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.3'

This is library what I used
implementation 'me.dm7.barcodescanner:zxing:1.9.8'

@tomerpetel
Copy link

Thanks! I'll check it out

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

4 participants