zxing icon indicating copy to clipboard operation
zxing copied to clipboard

扫描页面黑屏无法扫描 点击打开闪光灯后崩溃

Open Dee-svg opened this issue 5 years ago • 4 comments

扫描页面黑屏无法扫描 点击打开闪光灯后崩溃 日志显示是cameraManager 中Camera 空

Dee-svg avatar Jul 16 '19 02:07 Dee-svg

有具体报错信息吗?

yuzhiqiang1993 avatar Jul 16 '19 09:07 yuzhiqiang1993

有具体报错信息吗?

你好,我也遇到过打开闪光灯就崩溃的情况,下面是提交上来的报错信息: java.lang.NullPointerException: Attempt to invoke virtual method 'android.hardware.Camera$Parameters android.hardware.Camera.getParameters()' on a null object reference at com.yzq.zxinglibrary.camera.CameraManager.switchFlashLight(CameraManager.java:170) at com.yzq.zxinglibrary.android.CaptureActivity.onClick(CaptureActivity.java:324) at android.view.View.performClick(View.java:6387) at android.view.View$PerformClick.run(View.java:25217) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:183) at android.app.ActivityThread.main(ActivityThread.java:7014) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)

eternallyjie avatar Jul 17 '19 09:07 eternallyjie

有具体报错信息吗?

恩呢,和那位朋友的一样

Dee-svg avatar Jul 21 '19 02:07 Dee-svg

+1,不是很好复现

Go-Jeon-Pa avatar Nov 27 '20 01:11 Go-Jeon-Pa