CocosCreator2.1.1 Android平台包 https请求只发送失败

  • Creator 版本:2.0.9和2.1.1都有

  • 目标平台: Android

  • 详细报错信息,包含调用堆栈:

每次发送http之后,真机上的logcat看不出什么异常,从andorid studio模拟器运行的时候发现了这个:
Native thread exiting without having called DetachCurrentThread (maybe it’s going to use a pthread_key_create destructor?)

真机上在update里定期循环发送,logcat报错:
2019-05-09 19:13:34.353 650-1386/? E/WindowManager: win=Window{52d36dd u0 Splash Screen com.haina.wallcoming EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true
2019-05-09 19:13:34.423 650-1443/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-05-09 19:13:34.423 650-1443/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =150 lastSpdLev=4 index=4
2019-05-09 19:13:34.506 583-29162/? E/PF_HM: [checkHandleType:478] invalid handle: 29334
2019-05-09 19:13:34.506 583-29162/? E/PF_CM: [perfRelease:2486] perfRelease Invalid handle: 29334
2019-05-09 19:13:35.998 587-587/? E/WifiHAL: enter wifi_get_link_stats
2019-05-09 19:13:36.008 650-1443/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-05-09 19:13:36.009 650-1443/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =150 lastSpdLev=4 index=4
2019-05-09 19:13:37.519 656-656/? E/Thermal-daemon: [shell_temp] temp_new :32 temp_old :31
2019-05-09 19:13:37.521 656-656/? E/Thermal-daemon: Report temperature: [shell_temp] temp :32 report_threshold:1
2019-05-09 19:13:37.521 656-656/? E/Thermal-daemon: [battery] temp_new :33 temp_old :32
2019-05-09 19:13:37.522 656-656/? E/Thermal-daemon: Report temperature: [battery] temp :33 report_threshold:1
2019-05-09 19:13:38.996 634-718/? E/emcomd: [EMCOMD_NET] parse_dns_tlv# usItemType(3) error
2019-05-09 19:13:38.996 634-718/? E/emcomd: [EMCOMD_NET] parse_dns_tlv# usItemType(3) error
2019-05-09 19:13:39.016 587-587/? E/WifiHAL: enter wifi_get_link_stats
2019-05-09 19:13:39.024 650-1443/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-05-09 19:13:39.024 650-1443/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =150 lastSpdLev=4 index=4
2019-05-09 19:13:39.158 634-718/? E/emcomd: [EMCOMD_NET] parse_dns_process# host or ip is missing
2019-05-09 19:13:39.190 22108-3767/? E/amsk: Phenotype API error. Event # bulq@dc9019c3, EventCode: GET_COMMITTED_CONFIGURATION [CONTEXT service_id=51 ]
amqy: 29503
at amsq.b(:com.google.android.gms@17122021@17.1.22 (040408-245988633):21)
at amsk.a(:com.google.android.gms@17122021@17.1.22 (040408-245988633):72)
at amsk.a(:com.google.android.gms@17122021@17.1.22 (040408-245988633):67)
at zwc.run(:com.google.android.gms@17122021@17.1.22 (040408-245988633):19)
at bhlo.run(:com.google.android.gms@17122021@17.1.22 (040408-245988633):2)
at sed.b(:com.google.android.gms@17122021@17.1.22 (040408-245988633):29)
at sed.run(:com.google.android.gms@17122021@17.1.22 (040408-245988633):21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at skl.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:784)
2019-05-09 19:13:39.191 22108-3767/? E/AsyncOperation: serviceID=51, operation=GetCommittedConfigurationOperationCall
OperationException[Status{statusCode=unknown status code: 29503, resolution=null}]
at amsk.a(:com.google.android.gms@17122021@17.1.22 (040408-245988633):80)
at amsk.a(:com.google.android.gms@17122021@17.1.22 (040408-245988633):67)
at zwc.run(:com.google.android.gms@17122021@17.1.22 (040408-245988633):19)
at bhlo.run(:com.google.android.gms@17122021@17.1.22 (040408-245988633):2)
at sed.b(:com.google.android.gms@17122021@17.1.22 (040408-245988633):29)
at sed.run(:com.google.android.gms@17122021@17.1.22 (040408-245988633):21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at skl.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:784)
2019-05-09 19:13:39.194 22108-22326/? E/NetRec: [3839] akbn.a: Could not retrieve server token for package com.google.android.apps.gcs
java.util.concurrent.ExecutionException: qwu: 29503:
at atrw.b(:com.google.android.gms@17122021@17.1.22 (040408-245988633):2)
at atrw.a(:com.google.android.gms@17122021@17.1.22 (040408-245988633):20)
at akbn.a(:com.google.android.gms@17122021@17.1.22 (040408-245988633):1)
at akbn.a(:com.google.android.gms@17122021@17.1.22 (040408-245988633):4)
at akbi.getHeaders(:com.google.android.gms@17122021@17.1.22 (040408-245988633):2)
at com.android.volley.toolbox.HttpClientStack.performRequest(:com.google.android.gms@17122021@17.1.22 (040408-245988633):9)
at rwt.performRequest(:com.google.android.gms@17122021@17.1.22 (040408-245988633):1)
at bwf.executeRequest(:com.google.android.gms@17122021@17.1.22 (040408-245988633):1)
at com.android.volley.toolbox.BasicNetwork.performRequest(:com.google.android.gms@17122021@17.1.22 (040408-245988633):5)
at rws.performRequest(:com.google.android.gms@17122021@17.1.22 (040408-245988633):13)
at com.android.volley.NetworkDispatcher.a(:com.google.android.gms@17122021@17.1.22 (040408-245988633):7)
at com.android.volley.NetworkDispatcher.run(:com.google.android.gms@17122021@17.1.22 (040408-245988633):2)
Caused by: qwu: 29503:
at rcr.a(:com.google.android.gms@17122021@17.1.22 (040408-245988633):4)
at amqf.b(:com.google.android.gms@17122021@17.1.22 (040408-245988633):2)
at amsq.a(:com.google.android.gms@17122021@17.1.22 (040408-245988633):5)
at zwc.run(:com.google.android.gms@17122021@17.1.22 (040408-245988633):30)
at bhlo.run(:com.google.android.gms@17122021@17.1.22 (040408-245988633):2)
at sed.b(:com.google.android.gms@17122021@17.1.22 (040408-245988633):29)
at sed.run(:com.google.android.gms@17122021@17.1.22 (040408-245988633):21)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at skl.run(Unknown Source:7)
at java.lang.Thread.run(Thread.java:784)
2019-05-09 19:13:39.255 650-10499/? E/RMS.HwSysResManagerService: Process Permission error! pid:1849 uid:1001 Process.myPid:650
2019-05-09 19:13:39.294 1797-2014/? E/OPCollectLog: AwareLocationAction:no need modify city code
2019-05-09 19:13:39.363 634-718/? E/emcomd: [EMCOMD_NET] parse_dns_process# host or ip is missing
2019-05-09 19:13:39.529 634-718/? E/emcomd: [EMCOMD_NET] parse_dns_process# host or ip is missing
2019-05-09 19:13:42.035 587-587/? E/WifiHAL: enter wifi_get_link_stats
2019-05-09 19:13:42.038 650-1443/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-05-09 19:13:42.039 650-1443/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =150 lastSpdLev=4 index=4
2019-05-09 19:13:42.420 650-1443/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-05-09 19:13:42.420 650-1443/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =150 lastSpdLev=4 index=4
2019-05-09 19:13:45.046 587-587/? E/WifiHAL: enter wifi_get_link_stats
2019-05-09 19:13:45.052 650-1443/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-05-09 19:13:45.052 650-1443/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =150 lastSpdLev=4 index=4
2019-05-09 19:13:48.059 587-587/? E/WifiHAL: enter wifi_get_link_stats
2019-05-09 19:13:48.065 650-1443/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-05-09 19:13:48.066 650-1443/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =135 lastSpdLev=4 index=3
2019-05-09 19:13:48.068 650-1443/? E/HwWifiStatStore: updateLinkSpeedTxRxInfo lastSpdLev=4 11587 130 12274 45
2019-05-09 19:13:50.431 650-1443/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-05-09 19:13:50.431 650-1443/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =135 lastSpdLev=3 index=3
2019-05-09 19:13:50.529 1617-1617/? E/HwNotchUtils: setIconForView iconId is not found
2019-05-09 19:13:50.531 1617-1617/? E/HwNotchUtils: setIconForView iconId is not found
2019-05-09 19:13:50.533 1617-1617/? E/HwNotchUtils: setIconForView iconId is not found
2019-05-09 19:13:51.074 587-587/? E/WifiHAL: enter wifi_get_link_stats
2019-05-09 19:13:51.079 650-1443/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-05-09 19:13:51.079 650-1443/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =135 lastSpdLev=3 index=3
2019-05-09 19:13:51.102 1617-1617/? E/HwNotchUtils: setIconForView iconId is not found
2019-05-09 19:13:51.105 1617-1617/? E/HwNotchUtils: setIconForView iconId is not found
2019-05-09 19:13:51.107 1617-1617/? E/HwNotchUtils: setIconForView iconId is not found
2019-05-09 19:13:52.536 1617-1617/? E/HwNotchUtils: setIconForView iconId is not found
2019-05-09 19:13:52.538 1617-1617/? E/HwNotchUtils: setIconForView iconId is not found
2019-05-09 19:13:52.540 1617-1617/? E/HwNotchUtils: setIconForView iconId is not found
2019-05-09 19:13:54.087 587-587/? E/WifiHAL: enter wifi_get_link_stats
2019-05-09 19:13:54.094 650-1443/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-05-09 19:13:54.094 650-1443/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =135 lastSpdLev=3 index=3

  • 重现方式:android包发送1次https请求之后,收到正常下行数据,以后再发服务端就收不到了,看输出确实是发了
    也没看到相关报错

  • 手机型号 :华为nova 3i

  • 出现概率:必现

  • 额外线索:正确的预期应该是第二条消息也收到正确下行数据从而显示“点击开始”按钮
    游戏demo assets:

demo_assets.zip (155.9 KB)

麻烦引擎开发人员看一下,这个问题排查了很长时间,没有头绪,web、小程序平台都没有问题,ios端暂时还没试,但是Android就是不行

自顶一下,麻烦引擎开发人员看一下

楼主解决了吗,我也遇到这个问题了

目前的情况是,新的安卓手机基本上都不行,旧版本系统的有的可以发送成功