收藏
回答

webview中使用微信sdk拍照、选择图片闪退,导致小程序崩溃

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug web-view 微信iOS客户端 7.0.7,7.0.4,7.0.8,7.0.9 2.1.0

webview微信sdk版本

1.3.2

appid

wx08ed3dc45df80a37

复现步骤

  1. 小程序中使用webview,嵌套H5页面
  2. H5页面中只用微信sdk 拍照或者选择相册中的图片
  3. 偶现小程序崩溃

期望结果

期望官方跟进一下这个问题,webview偶现拍照选择照片崩溃的原因,或者给出hack修复方案。

用户反馈失效UA

Mozilla/5.0 (Linux; Android 6.0; HUAWEI NXT-AL10 Build/HUAWEINXT-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/778 MMWEBSDK/190301 Mobile Safari/537.36 MMWEBID/3002 MicroMessenger/7.0.4.1420(0x2700043C) Process/appbrand0 NetType/4G Language/zh_CN miniProgram


Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15F79 MicroMessenger/7.0.4(0x17000428) NetType/WIFI Language/zh_CN miniProgram


Mozilla/5.0 (Linux; Android 5.1.1; PLE-703L Build/HuaweiMediaPad; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/882 MMWEBSDK/190505 Mobile Safari/537.36 MMWEBID/2459 MicroMessenger/7.0.5.1440(0x27000537) Process/appbrand0 NetType/WIFI Language/zh_CN miniProgram


Mozilla/5.0 (Linux; Android 6.0; DIG-AL00 Build/HUAWEIDIG-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/882 MMWEBSDK/190301 Mobile Safari/537.36 MMWEBID/2566 MicroMessenger/7.0.4.1420(0x270004C9) Process/appbrand0 NetType/4G Language/zh_CN miniProgram


Mozilla/5.0 (iPhone; CPU iPhone OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.5(0x17000523) NetType/WIFI Language/zh_CN miniProgram


Mozilla/5.0 (Linux; Android 6.0.1; ATH-AL00 Build/HONORATH-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/882 MMWEBSDK/190506 Mobile Safari/537.36 MMWEBID/120 MicroMessenger/7.0.6.1460(0x27000634) Process/appbrand0 NetType/WIFI Language/zh_CN miniProgram


Mozilla/5.0 (iPhone; CPU iPhone OS 12_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.3(0x17000321) NetType/4G Language/zh_CN miniProgram


Mozilla/5.0 (Linux; Android 9; Redmi 6 Pro Build/PKQ1.180917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/882 MMWEBSDK/190506 Mobile Safari/537.36 MMWEBID/5984 MicroMessenger/7.0.6.1460(0x27000634) Process/appbrand0 NetType/WIFI Language/zh_CN miniProgram


Mozilla/5.0 (Linux; Android 5.1; HUAWEI RIO-TL00 Build/HUAWEIRIO-TL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/882 MMWEBSDK/190505 Mobile Safari/537.36 MMWEBID/4620 MicroMessenger/7.0.5.1440(0x27000537) Process/appbrand0 NetType/WIFI Language/zh_CN miniProgram


Mozilla/5.0 (Linux; Android 9; MHA-TL00 Build/HUAWEIMHA-TL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/986 MMWEBSDK/190701 Mobile Safari/537.36 MMWEBID/7658 MicroMessenger/7.0.7.1521(0x27000736) Process/appbrand0 NetType/WIFI Language/zh_CN miniProgram


Mozilla/5.0 (Linux; Android 9; vivo X21i A Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/992 MMWEBSDK/190703 Mobile Safari/537.36 MMWEBID/4390 MicroMessenger/7.0.7.1521(0x2700073A) Process/appbrand0 NetType/WIFI Language/zh_CN miniProgram


Mozilla/5.0 (Linux; Android 6.0; NCE-AL10 Build/HUAWEINCE-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/992 MMWEBSDK/190703 Mobile Safari/537.36 MMWEBID/1908 MicroMessenger/7.0.7.1521(0x2700073A) Process/appbrand0 NetType/WIFI Language/zh_CN miniProgram


Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.4(0x17000428) NetType/4G Language/zh_CN miniProgram


Mozilla/5.0 (Linux; Android 9; MI 9 SE Build/PKQ1.181121.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/992 MMWEBSDK/191001 Mobile Safari/537.36 MMWEBID/8313 MicroMessenger/7.0.8.1540(0x27000834) Process/appbrand2 NetType/WIFI Language/zh_CN ABI/arm64 miniProgram


Mozilla/5.0 (Linux; Android 9; HWI-TL00 Build/HUAWEIHWI-TL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/992 MMWEBSDK/191001 Mobile Safari/537.36 MMWEBID/3548 MicroMessenger/7.0.8.1540(0x27000834) Process/appbrand2 NetType/4G Language/zh_CN ABI/arm64 miniProgram


Mozilla/5.0 (Linux; Android 9; MI 8 SE Build/PKQ1.181121.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/1050 MMWEBSDK/191102 Mobile Safari/537.36 MMWEBID/1147 MicroMessenger/7.0.9.1560(0x27000935) Process/appbrand2 NetType/WIFI Language/zh_CN ABI/arm64 miniProgram

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

2 个回答

  • 宏哥
    宏哥
    2020-02-24

    抱歉打扰了,我跟楼主是同一个公司不同部门的前端,我们的用户对小程序兼容性问题非常敏感。

    问题描述:用户上传照片,点击上传,图片没有正确上传,小程序webview页面刷新并跳转到webview首页。

    问题页面:小程序webview内嵌h5页面,h5页面中上传图片

    微信日志:本用户已经上传微信日志,上传日志时间:2020-02-23 13:45

    微信号:wxid_0gsaq3pq1Irv11

    UA:Mozilla/5.0 (Linux; Android 9; MI 8 SE Build/PKQ1.181121.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 XWEB/1169 MMWEBSDK/191201 Mobile Safari/537.36 MMWEBID/1347 MicroMessenger/7.0.10.1580(0x27000AFF) Process/appbrand0 NetType/WIFI Language/zh_CN ABI/arm64 miniProgram

    我们已知的是排除自身代码逻辑问题,怀疑是小程序webview自身crash,麻烦运营专员反馈给开发,能否根据用户日志来帮忙定位下问题所在?

    2020-02-24
    有用
    回复 1
  • 是小白啊
    是小白啊
    2020-01-09

    麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

    2020-01-09
    有用
    回复 2
登录 后发表内容
问题标签