Skip to content

2023-03-31升级到2023-07-12导出后运行报错Unhandled promise rejection mismatch data size #463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Halliwood opened this issue Jul 18, 2023 · 2 comments

Comments

@Halliwood
Copy link

原来的插件,不论是开发者工具还是真机都没有问题,升级到V2后,再次导出运行报错

[PLUGIN TIME LOG 16:51.57.479] 下载wasm代码包: 788ms
webgl.wasm.framework.unityweb.js:4 navigator.mediaDevices not supported by this browser. Webcam access will not be available. Try hosting the page over HTTPS, because some browsers disable webcam access when insecure HTTP is being used.
plugin.js:77 [PLUGIN LOG 16:51.57.801]  addRunDependency:  wasm-instantiate
plugin.js:77 [PLUGIN LOG 16:51.57.801]  addRunDependency:  wasm-preloadAssets
plugin.js:77 [PLUGIN TIME LOG 16:51.57.825] 读取资源文件: 566ms
VM35 WAGameSubContext.js:1 Unhandled promise rejection mismatch data size(env: Windows,mg,1.05.2204264; lib: 2.32.2)
plugin.js:77 [PLUGIN TIME LOG 16:51.59.821] wasm编译耗时: 2020ms

image

还有一个问题是,.txt是开启了gzip的,但是提示CDN没开,之前V1的插件并没有这个提示
image

@zhangjunkunn
Copy link
Contributor

原来的插件,不论是开发者工具还是真机都没有问题,升级到V2后,再次导出运行报错

[PLUGIN TIME LOG 16:51.57.479] 下载wasm代码包: 788ms
webgl.wasm.framework.unityweb.js:4 navigator.mediaDevices not supported by this browser. Webcam access will not be available. Try hosting the page over HTTPS, because some browsers disable webcam access when insecure HTTP is being used.
plugin.js:77 [PLUGIN LOG 16:51.57.801]  addRunDependency:  wasm-instantiate
plugin.js:77 [PLUGIN LOG 16:51.57.801]  addRunDependency:  wasm-preloadAssets
plugin.js:77 [PLUGIN TIME LOG 16:51.57.825] 读取资源文件: 566ms
VM35 WAGameSubContext.js:1 Unhandled promise rejection mismatch data size(env: Windows,mg,1.05.2204264; lib: 2.32.2)
plugin.js:77 [PLUGIN TIME LOG 16:51.59.821] wasm编译耗时: 2020ms

image

还有一个问题是,.txt是开启了gzip的,但是提示CDN没开,之前V1的插件并没有这个提示 image

有使用微信压缩纹理工具处理首资源包吗

@Oooocean
Copy link
Collaborator

如果是使用微信压缩纹理工具+首资源包压缩,请更新转换插件,此前存在BUG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants