Skip to content

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

@Halliwood

Description

@Halliwood

原来的插件,不论是开发者工具还是真机都没有问题,升级到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

Activity

zhangjunkunn

zhangjunkunn commented on Jul 19, 2023

@zhangjunkunn
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

Oooocean commented on Jul 20, 2023

@Oooocean
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Halliwood@Oooocean@zhangjunkunn

        Issue actions

          2023-03-31升级到2023-07-12导出后运行报错Unhandled promise rejection mismatch data size · Issue #463 · wechat-miniprogram/minigame-unity-webgl-transform