起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2245|回复: 1

[未处理] 扫描插件crash

[复制链接]

171

主题

481

帖子

2394

积分

金牌会员

Rank: 6Rank: 6

积分
2394
QQ
发表于 2019-7-23 13:11:14 | 显示全部楼层 |阅读模式
通过WEX5开发的APP,扫描插件打开之后取消扫描。经常会出现APP异常退出的问题
通过DDMS抓取,日志如下:好像说照相机被释放后,又被调用了

?:??: W/?(?): --------- beginning of crash
[ 07-19 19:54:54.593 15880:15880 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.tonggen.com, PID: 15880
java.lang.RuntimeException: Camera is being used after Camera.release() was called
        at android.hardware.Camera.native_getParameters(Native Method)
        at android.hardware.Camera.getParameters(Camera.java:2189)
        at com.justep.barcode.activity.PreviewCallback.onPreviewFrame(PreviewCallback.java:45)
        at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1278)
        at android.os.Handler.dispatchMessage(Handler.java:112)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7593)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)


[ 07-20 18:22:58.477 23857:23857 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.tonggen.com, PID: 23857
java.lang.RuntimeException: Camera is being used after Camera.release() was called
        at android.hardware.Camera.native_getParameters(Native Method)
        at android.hardware.Camera.getParameters(Camera.java:2189)
        at com.justep.barcode.activity.PreviewCallback.onPreviewFrame(PreviewCallback.java:45)
        at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1278)
        at android.os.Handler.dispatchMessage(Handler.java:112)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7593)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)


[ 07-20 22:27:47.245 22306:22306 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.MobileTicket:push, PID: 22306
java.lang.RuntimeException: Unable to stop service com.alipay.pushsdk.push.NotificationService@13d0ae3: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.MobileTicket.push.action.START_PUSHSERVICE pkg=com.MobileTicket (has extras) }: app is in background uid UidRecord{aab340c u0a159 SVC  bg:+1m3s64ms idle change:idle procs:3 seq(909,909,909)}
        at android.app.ActivityThread.handleStopService(ActivityThread.java:4326)
        at android.app.ActivityThread.access$2800(ActivityThread.java:273)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2061)
        at android.os.Handler.dispatchMessage(Handler.java:112)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7593)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.MobileTicket.push.action.START_PUSHSERVICE pkg=com.MobileTicket (has extras) }: app is in background uid UidRecord{aab340c u0a159 SVC  bg:+1m3s64ms idle change:idle procs:3 seq(909,909,909)}
        at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1810)
        at android.app.ContextImpl.startService(ContextImpl.java:1765)
        at android.content.ContextWrapper.startService(ContextWrapper.java:664)
        at com.alipay.pushsdk.push.NotificationService.onDestroy(NotificationService.java:325)
        at android.app.ActivityThread.handleStopService(ActivityThread.java:4303)
        ... 8 more


[ 07-21 10:00:14.069  4657: 4657 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.MobileTicket:push, PID: 4657
java.lang.RuntimeException: Unable to stop service com.alipay.pushsdk.push.NotificationService@8181b99: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.MobileTicket.push.action.START_PUSHSERVICE pkg=com.MobileTicket (has extras) }: app is in background uid UidRecord{678be24 u0a159 SVC  bg:+1m3s70ms idle change:idle procs:3 seq(1130,1130,1130)}
        at android.app.ActivityThread.handleStopService(ActivityThread.java:4326)
        at android.app.ActivityThread.access$2800(ActivityThread.java:273)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2061)
        at android.os.Handler.dispatchMessage(Handler.java:112)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7593)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.MobileTicket.push.action.START_PUSHSERVICE pkg=com.MobileTicket (has extras) }: app is in background uid UidRecord{678be24 u0a159 SVC  bg:+1m3s70ms idle change:idle procs:3 seq(1130,1130,1130)}
        at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1810)
        at android.app.ContextImpl.startService(ContextImpl.java:1765)
        at android.content.ContextWrapper.startService(ContextWrapper.java:664)
        at com.alipay.pushsdk.push.NotificationService.onDestroy(NotificationService.java:325)
        at android.app.ActivityThread.handleStopService(ActivityThread.java:4303)
        ... 8 more


[ 07-22 09:29:21.506 31551:31551 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.tonggen.com, PID: 31551
java.lang.RuntimeException: Camera is being used after Camera.release() was called
        at android.hardware.Camera.native_getParameters(Native Method)
        at android.hardware.Camera.getParameters(Camera.java:2189)
        at com.justep.barcode.activity.PreviewCallback.onPreviewFrame(PreviewCallback.java:45)
        at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1278)
        at android.os.Handler.dispatchMessage(Handler.java:112)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7593)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)


[ 07-22 09:29:32.328 31868:31868 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.tonggen.com, PID: 31868
java.lang.RuntimeException: Camera is being used after Camera.release() was called
        at android.hardware.Camera.native_getParameters(Native Method)
        at android.hardware.Camera.getParameters(Camera.java:2189)
        at com.justep.barcode.activity.PreviewCallback.onPreviewFrame(PreviewCallback.java:45)
        at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1278)
        at android.os.Handler.dispatchMessage(Handler.java:112)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7593)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)


[ 07-22 09:32:20.651   530:  530 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.tonggen.com, PID: 530
java.lang.RuntimeException: Camera is being used after Camera.release() was called
        at android.hardware.Camera.native_getParameters(Native Method)
        at android.hardware.Camera.getParameters(Camera.java:2189)
        at com.justep.barcode.activity.PreviewCallback.onPreviewFrame(PreviewCallback.java:45)
        at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1278)
        at android.os.Handler.dispatchMessage(Handler.java:112)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7593)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)


[ 07-22 09:32:21.320  1293: 1293 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.tonggen.com, PID: 1293
java.lang.RuntimeException: Unable to resume activity {com.tonggen.com/com.tonggen.com.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=195543262, result=0, data=null} to activity {com.tonggen.com/com.tonggen.com.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.success(org.json.JSONObject)' on a null object reference
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4403)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4443)
        at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2185)
        at android.os.Handler.dispatchMessage(Handler.java:112)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7593)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
       

171

主题

481

帖子

2394

积分

金牌会员

Rank: 6Rank: 6

积分
2394
QQ
 楼主| 发表于 2019-8-8 20:58:09 | 显示全部楼层
这个问题我看有好几个人问过了,没人管吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-23 00:32 , Processed in 0.061181 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表