收藏
回答

Unity WebGl部分设备进入不了游戏

2023-8-24 18:57:0 [log] [PLUGIN LOG]  2d4189aaa836bff9.webgl.wasm.code.unityweb.wasm.br已有缓存
2023-8-24 18:57:0 [log] [PLUGIN TIME LOG 18:57.00.510] 下载wasm代码包: 116ms
2023-8-24 18:57:0 [log] [PLUGIN LOG]  read part: 16000000 2995729
2023-8-24 18:57:0 [log] [PLUGIN LOG]  start invoke UnityModule
2023-8-24 18:57:0 [log] [PLUGIN LOG]  addRunDependency:  wasm-instantiate
2023-8-24 18:57:0 [log] [PLUGIN LOG]  addRunDependency:  wasm-preloadAssets
2023-8-24 18:57:1 [log] [PLUGIN LOG]  gamewxagwasmsplit_getwasmpatch success, 有无更新: false
2023-8-24 18:57:1 [log] [PLUGIN TIME LOG 18:57.01.079] 读取资源文件: 679ms
2023-8-24 18:57:1 [warn] failed to asynchronously prepare wasm: Error: LoadError: load wasm failed
2023-8-24 18:57:1 [warn] failed to asynchronously prepare wasm: Error: LoadError: load wasm failed
2023-8-24 18:57:1 [warn] LoadError: load wasm failed
2023-8-24 18:57:1 [warn] LoadError: load wasm failed
2023-8-24 18:57:1 [warn] WXUncaughtException@https://usr/game.js:162:1193
abort@https://usr/game.js:177:1003
https://usr/game.js:177:19249
q@https://lib/WAGameSubContext.js:1:70834
https://lib/WAGameSubContext.js:1:71056
E@https://lib/WAGameSubContext.js:1:40533
https://lib/WAGameSubContext.js:1:54355
T@https://lib/WAGameSubContext.js:1:54124
https://lib/WAGameSubContext.js:1:54162
https://usr/game.js:93:353
v@https://lib/WAGameSubContext.js:1:146389
https://lib/WAGameSubContext.js:1:134618
https://lib/WAGameSubContext.js:1:190621
2023-8-24 18:57:1 [log] [PLUGIN LOG]  [coverview-init] cost= 788
2023-8-24 18:57:1 [log] [PLUGIN LOG]  [coverview] start compile animation
2023-8-24 18:57:1 [log] [PLUGIN LOG]  [datapackage] fileSize=18995729, defaultSize=18995729, optimalSize=NaN
2023-8-24 18:57:1 [log] [PLUGIN LOG]  prefix UnityWebData1.0 
2023-8-24 18:57:1 [log] [PLUGIN TIME LOG 18:57.01.279] 解析资源: 63ms

2023-8-24 18:57:1 [log] [PLUGIN LOG]  removeRunDependency:  wasm-preloadAssets

上面是大多数用户的报错,还有小部分报错如下,现象都是进入不了游戏

2023-8-24 19:26:49 [log] [PLUGIN TIME LOG 19:26.49.196] 下载wasm代码包: 280ms
2023-8-24 19:26:49 [log] [PLUGIN LOG]  start invoke UnityModule
2023-8-24 19:26:49 [log] [PLUGIN LOG]  addRunDependency:  wasm-instantiate
2023-8-24 19:26:49 [log] [PLUGIN LOG]  addRunDependency:  wasm-preloadAssets
2023-8-24 19:26:50 [log] [PLUGIN LOG]  gamewxagwasmsplit_getwasmpatch success, 有无更新: false
2023-8-24 19:26:50 [log] [PLUGIN LOGread part: 8000000 8000000
2023-8-24 19:26:50 [log] [PLUGIN LOGread part: 16000000 2995729
2023-8-24 19:26:50 [log] [PLUGIN TIME LOG 19:26.50.578] 读取资源文件: 1638ms
2023-8-24 19:26:50 [log] [PLUGIN LOG]  [coverview] start compile animation
2023-8-24 19:26:50 [log] [PLUGIN LOG]  [datapackage] fileSize=18995729, defaultSize=18995729, optimalSize=NaN
2023-8-24 19:26:50 [log] [PLUGIN LOG]  prefix UnityWebData1.0 
2023-8-24 19:26:50 [log] [PLUGIN TIME LOG 19:26.50.740] 解析资源: 39ms
2023-8-24 19:26:50 [log] [PLUGIN LOG]  removeRunDependency:  wasm-preloadAssets
2023-8-24 19:26:52 [warn] failed to asynchronously prepare wasm: RangeError: WebAssembly.instantiate(): Out of memory: wasm memory
2023-8-24 19:26:52 [warn] failed to asynchronously prepare wasm: RangeError: WebAssembly.instantiate(): Out of memory: wasm memory
2023-8-24 19:26:52 [warn] WebAssembly.instantiate(): Out of memory: wasm memory
2023-8-24 19:26:52 [warn] WebAssembly.instantiate(): Out of memory: wasm memory
2023-8-24 19:26:52 [warn] WXUncaughtException
    at Object.WXUncaughtException (https://usr/game.js:162:1184)
    at abort (https://usr/game.js:177:984)
    at https://usr/game.js:177:19244

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

1 个回答

  • Ning
    Ning
    08-22

    问一下 解决了吗

    08-22
    有用
    回复
登录 后发表内容