收藏
回答

企业微信H5页面在华为p40 pro上二次唤起微信扫码时闪退

问题类型 API/组件名称 终端类型 微信版本 基础库版本
Bug wx.scanQRCode 微信安卓客户端 3.1.8(16688) 没看到

在企业微信中打开h5的页面,之后第一次调用wx.scanQRCode时没有问题,但是如果不退出页面,第二次直接调用wx.scanQRCode时,根据adb日志,会报错Application attempted to call on a destroyed WebView

然后导致h5直接整个崩溃关闭掉

业务代码是使用react进行开发的,adb日志和手机型号见下

06-03 18:33:22.937  1725  2948 E WifiPermissionsUtil: getUidPermission is DENIED and permissionType android.permission.ACCESS_COARSE_LOCATIONuid 10176
06-03 18:33:22.937  1725  2948 E WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10176 has no location permission
06-03 18:33:22.939  1725  1980 W AwareLog: AwareMem_MemoryUtils: invalid swappiness value
06-03 18:33:22.943  9222 24971 E libc    : Access denied finding property "ro.kirin.product.platform"
06-03 18:33:22.943  9222 24971 W HwExtendedCodec: The mime is not in hisi extended mime.
06-03 18:33:22.938  9222  9222 W SoundPoolThread: type=1400 audit(0.0:315476): avc: denied { read } for pid=9222 name="u:object_r:product_platform_prop:s0" dev="tmpfs" ino=17614 scontext=u:r:untrusted_app_27:s0:c176,c256,c512,c768 tcontext=u:object_r:product_platform_prop:s0 tclass=file permissive=0
06-03 18:33:22.947  9222 24972 W Codec2Client: query -- param skipped: index = 1107298332.
06-03 18:33:22.947  9222 24972 W Codec2Client: query -- param skipped: index = 1342179345.
06-03 18:33:22.947  9222 24972 W Codec2Client: query -- param skipped: index = 2415921170.
06-03 18:33:23.114  1725  2948 E WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10176 has no location permission
06-03 18:33:23.132  1725  2065 W AudioSystem: (gLock) AudioSystem start get_audio_flinger()
06-03 18:33:23.132  1725  2065 W AudioSystem: (gLock)  AudioSystem end get_audio_flinger()ms: 0ms
06-03 18:33:23.114  1725  2948 E WifiPermissionsUtil: getUidPermission is DENIED and permissionType android.permission.ACCESS_COARSE_LOCATIONuid 10176
06-03 18:33:23.246    54    54 W migration/7: type=1400 audit(0.0:315478): avc: granted { setsched } for pid=54 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=process
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents: Application attempted to call on a destroyed WebView
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents: java.lang.Throwable
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at org.chromium.android_webview.AwContents.U(chromium-SystemWebView.apk-stable-410310603:2)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at org.chromium.android_webview.AwContents.p(chromium-SystemWebView.apk-stable-410310603:1)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at com.android.webview.chromium.WebViewChromium.evaluateJavaScript(chromium-SystemWebView.apk-stable-410310603:8)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.webkit.WebView.evaluateJavascript(WebView.java:911)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at java.lang.reflect.Method.invoke(Native Method)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at com.tencent.smtt.sdk.WebView.evaluateJavascript(Unknown Source:95)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at eng.a(JsCoreUtil.java:28)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at com.tencent.wework.common.web.jsapi.bridge.JsApiHandler$10.run(JsApiHandler.java:682)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at efs.runOnMainThread(ThreadUtils.java:69)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at com.tencent.wework.common.web.jsapi.bridge.JsApiHandler.doCallback(JsApiHandler.java:677)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at com.tencent.wework.common.web.jsapi.bridge.JsApiHandler.notifyJsMessageHandled(JsApiHandler.java:594)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at eoe.notifyCancel(I3rdJsInterface.java:38)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at euv$1.c(JSFuncScanQRCode.java:63)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at euv$2.onCancel(JSFuncScanQRCode.java:159)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at com.tencent.wework.login.controller.QRScannerActivity.onDestroy(QRScannerActivity.java:329)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.app.Activity.performDestroy(Activity.java:8385)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1355)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5675)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5720)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:190)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:105)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2458)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.os.Handler.dispatchMessage(Handler.java:110)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.os.Looper.loop(Looper.java:219)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at android.app.ActivityThread.main(ActivityThread.java:8387)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at java.lang.reflect.Method.invoke(Native Method)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
06-03 18:33:23.255  9222  9222 W hwbr_engine_AwContents:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
06-03 18:33:23.261   773  1750 W BufferQueueProducer: [com.tencent.wework/com.tencent.wework.login.controller.QRScannerActivity#0]:1403: disconnect: not connected (req=1)
06-03 18:33:23.261  9222 14366 W libEGL  : EGLNativeWindowType 0xb203eb08 disconnect failed
06-03 18:33:23.266  9222  9222 E RtgSchedManager: endActivityTransaction: margin state not match
06-03 18:33:23.345  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.346  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.347  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.354    54    54 W migration/7: type=1400 audit(0.0:315479): avc: granted { setsched } for pid=54 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=process
06-03 18:33:23.466    48    48 W migration/6: type=1400 audit(0.0:315480): avc: granted { setsched } for pid=48 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=process
06-03 18:33:23.863  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.960  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.961  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.961  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.961  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.962  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.962  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.963  9222  9222 E .tencent.wewor: No package ID ff found for ID 0xffffffff.
06-03 18:33:23.967  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.968  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.971  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.972  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.973  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.974  9222  9222 E .tencent.wewor: Invalid ID 0x00000000.
06-03 18:33:23.986    48    48 W migration/6: type=1400 audit(0.0:315481): avc: granted { setsched } for pid=48 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=process
06-03 18:33:24.099  9222 14290 W System  : A resource failed to call end.
06-03 18:33:24.100  9222 14290 W System  : A resource failed to call end.
06-03 18:33:24.179  5136  5136 W ContentSensor_AudioInfoTask: No need notify
06-03 18:33:24.180  5136  5136 W ContentSensor_AudioInfoTask: insert music info is empty
06-03 18:33:24.180  5136  5136 W ContentSensor_AudioInfoTask: insert music info is empty
06-03 18:33:24.428  2750  3139 E NetworkQoeChr: startTcpStackInfoStaticForChr failed, dnsInfoOpt is null
06-03 18:33:24.837  1076  4330 E Thermal-daemon:ambient: AmbientSample: write temp 29643 to ambient node
回答关注问题邀请回答
收藏

10 个回答

  • 企业微信运营专员-千夜
    企业微信运营专员-千夜
    2021-06-07

    你好,这个是更新新版本引入的bug,会在下版本修复,可以先使用http://dldir1.qq.com/wework/wework_android_3.1.8.16709_android-release_signed_7zip_aligned_publish.apk  这个包临时恢复使用

    2021-06-07
    有用 2
    回复 10
    查看更多(5)
  • tyro
    tyro
    2021-06-05

    我这边安卓手机今天都有这样的问题,难受,也没找到解决方案

    2021-06-05
    有用 1
    回复 1
    • 宋述华
      宋述华
      2021-06-05
      哥们,感觉应该是华为手机系统问题吧?我这边华为手机闪退。
      2021-06-05
      回复
  • Viory
    Viory
    2021-06-07

    已经修复啦 铁子们快去应用商店更新企业微信

    2021-06-07
    有用
    回复
  • 樵夫
    樵夫
    2021-06-07

    同样的问题,影响了很多用户,麻烦官方给个答复!

    2021-06-07
    有用
    回复
  • Qindehua
    Qindehua
    2021-06-06

    一样的问题,就是企业微信更新后,就有这个问题。华为手机。

    2021-06-06
    有用
    回复 1
    • 宋述华
      宋述华
      2021-06-07
      是的 企业微信在6.3做了一次更新,可以看到它的更新日志,然后就不支持华为了。???
      2021-06-07
      回复
  • 李@浩
    李@浩
    2021-06-05

    昨天开始,华为手机客户多少反馈这个问题,之前都好好的

    2021-06-05
    有用
    回复
  • 心跳的符号
    心跳的符号
    2021-06-05

    我们这这也出现了这样的问题,希望企业微信能尽快修复此问题啊。

    2021-06-05
    有用
    回复
  • 宋述华
    宋述华
    2021-06-04

    我这边也出现上面这个情况,闪退,之前一直好好的,今天才出现,@企业微信官方,这个bug什么时候修复?

    2021-06-04
    有用
    回复
  • Antonia
    Antonia
    2021-06-04

    楼主解决了吗,我们在h5页面调用企业微信扫一扫的时候,华为鸿蒙系统和小米的手机也出现闪退问题,

    2021-06-04
    有用
    回复 1
    • 皮猛
      皮猛
      2021-06-04
      没有呀, 找不着人解决呀
      2021-06-04
      回复
  • 皮猛
    皮猛
    2021-06-04

    老哥们上班了吗

    2021-06-04
    有用
    回复 9
    • 皮猛
      皮猛
      2021-06-04
      有人吗
      2021-06-04
      回复
    • aaa
      aaa
      2021-06-04
      版本问题,不知道是不是华为系统升级造成的。华为手机只要版本11以上的,全部出现企业微信扫一扫第二次出现闪退。华为手机10.1版本的,就不会出现上述问题。看看企业微信什么时候修复这个bug吧
      2021-06-04
      回复
    • 皮猛
      皮猛
      2021-06-04回复aaa
      我们这边说也有红米机型会出现这个问题了, 有一台红米的note7也有问题, 感觉是企业微信最新的基础库有问题
      2021-06-04
      1
      回复
    • 宋述华
      宋述华
      2021-06-04
      我也是这个情况啊 小米11可以 大部分机型不行啊
      2021-06-04
      回复
    • 宋述华
      宋述华
      2021-06-05回复皮猛
      感觉是跟手机有关系吧?我这边也是华为手机用不了。
      2021-06-05
      回复
    查看更多(4)
登录 后发表内容