完整日志如下,操作过程,体验版小程序,在需要扫码登录的界面,不扫码直接点击返回,会导致应用闪退,截图和完整日志如下,请问该如何避免
2024-04-22 11:35:06.133 341-341 libperfmgr and...power.aidl-service.droidlogic I Do Powerhint: INTERACTION
2024-04-22 11:35:06.133 516-681 WindowManager system_server E press keyCode: 4
2024-04-22 11:35:06.134 2480-2480 SogouIME com.sohu.inputmethod.sogou.tv I onKeyUp: keyoCode=4
2024-04-22 11:35:06.134 2480-2480 DefaultIMS com.sohu.inputmethod.sogou.tv I onKeyUp: keyoCode=4
2024-04-22 11:35:06.141 374-415 PermissionCache surfaceflinger D checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (167 us)
2024-04-22 11:35:06.175 516-1539 ActivityTaskManager system_server W Finishing task with all activities already finished
2024-04-22 11:35:06.175 516-1539 ActivityTaskManager system_server W Duplicate finish request for r=ActivityRecord{b1ad045 u0 com.tencent.wmpf/.wakeup.WMPFWakeUpInvokeActivity t172 f}}
2024-04-22 11:35:06.181 516-1056 WindowManager system_server V force to landscape
2024-04-22 11:35:06.182 215-215 hwservicemanager hwservicemanager I getTransport: Cannot find entry android.hardware.configstore@1.0::ISurfaceFlingerConfigs/default in either framework or device manifest.
2024-04-22 11:35:06.192 1450-2271 [ui]AppFor...undWatcher com.vs.eldertv I 2/app on foreground
2024-04-22 11:35:06.196 1450-2271 [ui]LocalAgent com.vs.eldertv I 2/sender = android.os.Messenger@712dd3a
2024-04-22 11:35:06.203 2282-2433 [push]core com.vs.eldertv I 2/app on foreground
2024-04-22 11:35:06.218 1450-2908 WMPFCli.IPCInvoker com.vs.eldertv I invokeSync <<<< response [AbstractWMPFSyncInvokeResponse{errCode=-11, errMsg='cancel', errType=1}] rId [11]
2024-04-22 11:35:06.220 374-415 BufferQueueProducer surfaceflinger E [com.tencent.wmpf/com.tencent.wmpf.wakeup.WMPFWakeUpInvokeActivity#0](id:1760000000c,api:0,p:-1,c:374) disconnect: not connected (req=1)
2024-04-22 11:35:06.221 2502-2918 libEGL com.tencent.wmpf W EGLNativeWindowType 0xf24c9738 disconnect failed
2024-04-22 11:35:06.223 1450-1450 ContactCallActivity com.vs.eldertv E 81 requestFocus:false
2024-04-22 11:35:06.228 2282-2433 [push]core com.vs.eldertv D 2/checkLinkStateShouldReLogin: SDKState=LOGINED,reconnectTimer=null,reconnectCount=0,deltaTime=21549,shouldRelogin=false
2024-04-22 11:35:06.249 2282-2433 [push]core com.vs.eldertv I 2/force check heart...
2024-04-22 11:35:06.258 1450-2271 [ui]LocalAgent com.vs.eldertv I 2/sendAppStatus isAppOnForeground:true sent:true
2024-04-22 11:35:06.265 2282-2433 [push]core com.vs.eldertv I 196/send PacketHeader [SID 1 , CID 2 , SER 0 , RES 200 , TAG 0 , LEN 5]
--------- beginning of crash
2024-04-22 11:35:06.266 2480-2480 DefaultIMS com.sohu.inputmethod.sogou.tv I onStartInput attribute=android.view.inputmethod.EditorInfo@37760bf restarting=false inputType: 0
2024-04-22 11:35:06.267 1450-2908 AndroidRuntime com.vs.eldertv E FATAL EXCEPTION: pool-6-thread-1
Process: com.vs.eldertv, PID: 1450
java.lang.RuntimeException: com.tencent.wmpf.cli.api.WMPFApiException: errType: 1, errCode: -11, errMsg: cancel
at com.vs.eldertv.activity.ContactListActivity$3.run(ContactListActivity.java:210)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Caused by: com.tencent.wmpf.cli.api.WMPFApiException: errType: 1, errCode: -11, errMsg: cancel
at com.tencent.wmpf.cli.task.pb.WMPFIPCInvoker.invokeSync(WMPFIPCInvoker.java:170)
at com.tencent.wmpf.cli.task.pb.AbstractWMPFSyncInvokeRequest.call(AbstractWMPFSyncInvokeRequest.java:94)
at com.tencent.wmpf.cli.api.WMPFAccountApi.login(WMPFAccountApi.java:36)
at com.vs.eldertv.activity.ContactListActivity.launchMiniProgram(ContactListActivity.java:231)
at com.vs.eldertv.activity.ContactListActivity.access$400(ContactListActivity.java:61)
at com.vs.eldertv.activity.ContactListActivity$3.run(ContactListActivity.java:208)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
2024-04-22 11:35:06.275 2282-2433 [push]core com.vs.eldertv I 196/send PacketHeader [SID 3 , CID 2 , SER 1007 , RES 200 , TAG 0 , LEN 10]
2024-04-22 11:35:06.279 1450-2271 [ui]core com.vs.eldertv I 2/add send task: Request [SID 3 , CID 2]
2024-04-22 11:35:06.280 2282-2433 [push]core com.vs.eldertv V 196/received packetSize: 8, readableBytes: 4
2024-04-22 11:35:06.280 2282-2433 [push]core com.vs.eldertv I 196/received PacketHeader [SID 1 , CID 2 , SER 0 , RES 200 , TAG 2 , LEN 7]
2024-04-22 11:35:06.287 2282-2433 [push]core com.vs.eldertv V 196/received packetSize: 8, readableBytes: 4
2024-04-22 11:35:06.292 2282-2433 [push]core com.vs.eldertv I 196/received PacketHeader [SID 3 , CID 2 , SER 1007 , RES 200 , TAG 2 , LEN 7]
2024-04-22 11:35:06.296 1450-2271 [ui]core com.vs.eldertv I 2/pend task: Request [SID 3 , CID 2]
2024-04-22 11:35:06.181 516-1056 chatty system_server I uid=1000(system) Binder:516_8 identical 1 line
2024-04-22 11:35:06.191 516-1056 WindowManager system_server V force to landscape
你没有 catch 这个异常?