- 部分用户分包加载失败【必现】
部分线上用户,出现加载分包失败,提示 {"errMsg":"loadSubpackage:fail module not found"} 以下为统计的3台设备信息: {"SDKVersion":"3.3.2","sysinfo":"{\"platform\":\"android\",\"brand\":\"HUAWEI\",\"model\":\"SEA-AL10\",\"pixelRatio\":3,\"system\":\"Android 10\",\"version\":\"8.0.45\",\"screenWidth\":780,\"screenHeight\":360,\"language\":\"zh_CN\",\"benchmarkLevel\":24}"} {"SDKVersion":"3.3.2","sysinfo":"{\"platform\":\"android\",\"brand\":\"HUAWEI\",\"model\":\"ANA-AN00\",\"pixelRatio\":3,\"system\":\"Android 12\",\"version\":\"8.0.45\",\"screenWidth\":780,\"screenHeight\":360,\"language\":\"zh_CN\",\"benchmarkLevel\":26}"} {"SDKVersion":"3.3.2","sysinfo":"{\"platform\":\"android\",\"brand\":\"HUAWEI\",\"model\":\"VOG-AL00\",\"pixelRatio\":3,\"system\":\"Android 10\",\"version\":\"8.0.45\",\"screenWidth\":780,\"screenHeight\":360,\"language\":\"zh_CN\",\"benchmarkLevel\":24}"} 代码如下: public static openSubpackage(name:string, fun:(stat:number, msg?:any) => void, progressFun?:Function){ if (window["wx"] && wx.loadSubpackage) { let start = Date.now(); let task = wx.loadSubpackage({ name: name, //"stage1", success: function () { let cost = (Date.now()-start); fun && fun(1, cost); }, fail: function(res) { // 分包加载失败通过 fail 回调 fun && fun(2, res); //loadSubpackage:fail module not found } }); if(!task){ console.warn("openSubpackage-fail:", name); return fun && fun(2); } task.onProgressUpdate(res => { if(progressFun){ progressFun(res.progress, res); } }) } else { window["require"]("./" + name + "/game.js"); fun && fun(1); } }
2024-01-24 - wx.showShareImageMenu 显示异常
横屏游戏,wx.showShareImageMenu api显示的界面,图片未垂直居中,建议垂直居中,并且最好可以设置背景颜色。(像竖屏时这个api的表现就很理想)[图片]
2024-01-14 - pc端小游戏请求文件异常【必现】
pc端小游戏请求文件提示404错误(手机无此问题,只是pc端才这样) 复现方法: 1、image 先请求一个不存在的url文件,触发 onerror 404状态,这个符合预期; 2、上传这个文件到服务器(浏览器验证可正常访问) 3、再请求这个url,预期应该是200状态正常返回,但依旧是404请求失败。 测试代码: var img = new Image(); img.onload=(event)=>{ console.log("complete:", event); } img.onerror=(event)=>{ console.log("error:", event); } img.src = "https://www.xxxx.com/aaa/headM_1.png"; 微信 window版本:3.9.8.25 Wechat Lib:3.3.0, 2023.12.28 16:42:25
2024-01-03 - 错误日志:Cannot read property \'style\' of null
mp后台 开发管理统计的日志 Cannot read property \'style\' of null TypeError: Cannot read property \'style\' of null at A1.G0 (https://lib/WAGame.js:2:2594206) at a.<anonymous> (https://lib/WAGame.js:2:2593339) at _e.<anonymous> (https://lib/WAGame.js:2:692753) at _e.emit (https://lib/WAGame.js:2:1168217) at Jy.emit (https://lib/WAGame.js:2:1468620) at _e.<anonymous> (https://lib/WAGame.js:2:1475313) at _e.emit (https://lib/WAGame.js:2:1168010) at Object.emit (https://lib/WAGame.js:2:1173033) at https://lib/WAGame.js:2:1173942 没有更新小游戏版本,突然出现的,人数占比高达 12.5%,请官方帮忙排查,谢谢 appid:wx9dda6393570cbdcc
2022-01-18 - 错误日志:Cannot destructure property \'url\' of \'cR.u
mp后台 开发管理统计的日志 Cannot destructure property \'url\' of \'cR.urlInfo\' as it is undefined. TypeError: Cannot destructure property \'url\' of \'cR.urlInfo\' as it is undefined. at bR (https://lib/WAGame.js:2:1879517) at a.success (https://lib/WAGame.js:2:1884202) at Object.success (https://lib/WAGame.js:2:692753) at a (https://lib/WAGame.js:2:1177752) at https://lib/WAGame.js:2:1177930 at nt (https://lib/WAGame.js:2:1177970) at https://lib/WAGame.js:2:1179005 at m (https://lib/WAGame.js:2:68446) at Object.T (https://lib/WAGame.js:2:69243) 没有更新小游戏版本,突然出现的,人数占比高达 9.7%,请官方帮忙排查,谢谢 appid:wx9dda6393570cbdcc
2022-01-18