收藏
回答

调用[WXApi sendReq:req]等待超过10秒,被系统kill

调用[WXApi sendReq:req]等待超过10秒,被系统kill,提示openUrl方法被watchdog 干掉,请问怎么解决该问题?

Exception Type:  EXC_CRASH (SIGKILL)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note:  EXC_CORPSE_NOTIFY

Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d

Termination Description: SPRINGBOARD, scene-update watchdog transgression: ctrip.com exhausted real (wall clock) time allowance of 10.00 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-update | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 6.920 (user 6.920, system 0.000), 12% CPU", | "Elapsed application CPU time (seconds): 0.154, 0% CPU" | )

Triggered by Thread:  0


Thread 0 name:  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:

0   libsystem_kernel.dylib        0x000000019568b0f4 mach_msg_trap + 8

1   libsystem_kernel.dylib        0x000000019568a5a0 mach_msg + 72

2   libdispatch.dylib              0x000000019550b408 _dispatch_mach_send_and_wait_for_reply + 500

3   libdispatch.dylib              0x000000019550b8a4 dispatch_mach_send_with_result_and_wait_for_reply$VARIANT$armv81 + 52

4   libxpc.dylib                  0x000000019574fa04 xpc_connection_send_message_with_reply_sync + 204

5   Foundation                    0x000000019667aa40 __NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__ + 12

6   Foundation                    0x000000019645df80 -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 3608

7   Foundation                    0x000000019648d554 -[NSXPCConnection _sendSelector:withProxy:arg1:arg2:arg3:] + 144

8   Foundation                    0x00000001966805b4 _NSXPCDistantObjectSimpleMessageSend3 + 52

9   CoreServices                  0x00000001be1b5a6c -[LSApplicationWorkspace openURL:withOptions:error:] + 248

10  UIKitCore                      0x00000001c1f36234 -[UIApplication _openURL:] + 144

=========

回答关注问题邀请回答
收藏

3 个回答

  • 独一无二
    独一无二
    2020-02-21

    同遇到该问题,[WXApi sendReq:xxx]; 该方法可以在子线程运行吗?@微信支付技术助手4

    2020-02-21
    有用
    回复
  • 杨飞宇
    杨飞宇
    2019-10-29

    同遇到此问题,请教怎么解决的

    2019-10-29
    有用
    回复 2
    • bluesea
      bluesea
      2019-11-28
      延迟0.1s在主线程就好了,具体什么问题不清楚
      2019-11-28
      回复
    • Sylvan
      Sylvan
      2022-04-11回复bluesea
      延迟0.1在主线程调用[WXApi sendReq:xxx]该方法么?
      2022-04-11
      回复
  • 微信支付技术助手4
    微信支付技术助手4
    2019-04-09

    您好,需要开发者自己实现

    2019-04-09
    有用
    回复 2
    • 杨飞宇
      杨飞宇
      2019-10-29
      请问,这个问题怎么解决呢,有什么最佳实践吗
      2019-10-29
      回复
    • Sylvan
      Sylvan
      2022-04-11
      请问有具体解决方案么?
      2022-04-11
      回复
登录 后发表内容