收藏
回答

微信开发者工具导入unity打包的minigame文件夹,模拟器一直显示初始化中

框架类型 问题类型 操作系统 工具版本
小游戏 Bug Windows 1.062402040

微信开发者工具导入unity打包的minigame文件夹,模拟器一直显示初始化中,[Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.

[system] WeChatLib: 3.2.5 (2024.3.20 23:36:58)

Wechat Lib:3.2.5, 2024.3.20 23:36:58

[system] No. of subpackages: 2

[system] LazyCodeLoading: false

unity-namespace.js? [sm]:158 game starting {renderer: "", isH5Plus: false, abi: "", brand: "devtools", model: "iPhone 6/7/8", …}

plugin.js:93 [minigamefe mgp]: inited

plugin.js:93 [PLUGIN LOG 15:32.19.605]  使用公共目录存储patch

plugin.js:93 [PLUGIN WARN 15:32.19.618]  [仅开发版/体验版生效]已开启最佳实践检测, 请前往github查阅说明文档:

https://github.com/wechat-miniprogram/minigame-unity-webgl-transform/blob/main/Design/PerformanceMonitor.md

value @ plugin.js:93

value @ plugin.js:93

t @ plugin.js:93

(anonymous) @ game.js? [sm]:153

Promise.then (async)

(anonymous) @ game.js? [sm]:63

plugin.js:93 [PLUGIN LOG 15:32.19.836]  缓存文件数= 3 ,总文件大小= 102247

plugin.js:93 [PLUGIN LOG] systemInfo= {…}

plugin.js:93 [PLUGIN LOG] check permission: coverview=true, gameTransfer=true, reportKeyValue=true

plugin.js:93 [PLUGIN LOG 15:32.19.862]  [coverview-loadImage] cost= 31

plugin.js:93 [PLUGIN LOG 15:32.19.909]  [coverview-init] cost= 47

plugin.js:93 [PLUGIN LOG 15:32.20.321]  特性开关拉取超时,使用默认值

plugin.js:93 [PLUGIN LOG 15:32.20.326]  资源有缓存

plugin.js:93 [PLUGIN LOG 15:32.20.327]  插件信息:  {pluginVersion: "1.2.54", unityVersion: "2022.3.2t11", loadDataPackageFromSubpackage: true, adSpaceType: 0, adType: 0, …}

plugin.js:93 [PLUGIN LOG 15:32.20.330]  开始下载wasm代码包

plugin.js:93 [PLUGIN LOG 15:32.20.333]  通过小游戏分包加载资源 c6ebd1b0ccad692e.webgl.data.unityweb.bin.txt , 是否压缩= false

plugin.js:93 [PLUGIN LOG 15:32.20.334]  从缓存加载首包资源

plugin.js:93 [PLUGIN WARN 15:32.20.340]  切换quotacontrol失败:  {errMsg: "setFileSpaceStatistics:fail 开发者工具暂时不支持此 API 调试,请使用真机进行开发"}

value @ plugin.js:93

fail @ plugin.js:93

plugin.js:93 [PLUGIN LOG 15:32.20.341]  使用主线程写文件

[worker] getNetworkType:fail not support

[worker] getPermissionBytes:fail not support

[worker] getSystemInfo:fail not support

[worker] getABTestConfig:fail not support

[worker] getABTestConfig:fail not support

[worker] getPermissionBytes:fail not support

[worker] getABTestConfig:fail not support

[Deprecation] SharedArrayBuffer will require cross-origin isolation as of M92, around July 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.

plugin.js:93 [PLUGIN TIME LOG 15:32.20.974] 下载wasm代码包: 644ms

plugin.js:93 [PLUGIN LOG 15:32.20.983]  start invoke UnityModule

plugin.js:93 [PLUGIN LOG 15:32.20.984]  invoke UnityModule for dotnet

webgl.wasm.framework.unityweb.js:4 MONO_WASM: Failed to load config file ./blazor.boot.json [object Object] undefined

Error: Failed to load config file ./blazor.boot.json [object Object] undefined

    at _callee27$ (http://127.0.0.1:36714/game/framework/webgl.wasm.framework.unityweb.js:1829:41)

    at s (http://127.0.0.1:36714/game/@babel/runtime/helpers/regeneratorRuntime.js:1:1588)

    at Generator.<anonymous> (http://127.0.0.1:36714/game/@babel/runtime/helpers/regeneratorRuntime.js:1:2925)

    at Generator.throw (http://127.0.0.1:36714/game/@babel/runtime/helpers/regeneratorRuntime.js:1:1951)

    at asyncGeneratorStep (http://127.0.0.1:36714/game/@babel/runtime/helpers/asyncToGenerator.js:1:906)

    at i (http://127.0.0.1:36714/game/@babel/runtime/helpers/asyncToGenerator.js:1:1178)(env: Windows,mg,1.06.2402040; lib: 3.2.5)

u @ webgl.wasm.framework.unityweb.js:4

(anonymous) @ webgl.wasm.framework.unityweb.js:4

ke @ webgl.wasm.framework.unityweb.js:4

_callee27$ @ webgl.wasm.framework.unityweb.js:4

s @ regeneratorRuntime.js:1

(anonymous) @ regeneratorRuntime.js:1

(anonymous) @ regeneratorRuntime.js:1

asyncGeneratorStep @ asyncToGenerator.js:1

i @ asyncToGenerator.js:1

Promise.then (async)

asyncGeneratorStep @ asyncToGenerator.js:1

c @ asyncToGenerator.js:1

(anonymous) @ asyncToGenerator.js:1

(anonymous) @ asyncToGenerator.js:1

(anonymous) @ webgl.wasm.framework.unityweb.js:4

_callee30$ @ webgl.wasm.framework.unityweb.js:4

s @ regeneratorRuntime.js:1

(anonymous) @ regeneratorRuntime.js:1

(anonymous) @ regeneratorRuntime.js:1

asyncGeneratorStep @ asyncToGenerator.js:1

c @ asyncToGenerator.js:1

(anonymous) @ asyncToGenerator.js:1

(anonymous) @ asyncToGenerator.js:1

_callee31$ @ webgl.wasm.framework.unityweb.js:4

s @ regeneratorRuntime.js:1

(anonymous) @ regeneratorRuntime.js:1

(anonymous) @ regeneratorRuntime.js:1

asyncGeneratorStep @ asyncToGenerator.js:1

c @ asyncToGenerator.js:1

Promise.then (async)

asyncGeneratorStep @ asyncToGenerator.js:1

c @ asyncToGenerator.js:1

(anonymous) @ asyncToGenerator.js:1

(anonymous) @ asyncToGenerator.js:1

_Ne @ webgl.wasm.framework.unityweb.js:4

Ne @ webgl.wasm.framework.unityweb.js:4

unityFramework @ webgl.wasm.framework.unityweb.js:136

(anonymous) @ plugin.js:93

Promise.then (async)

t.invokeLoadWasmCode @ plugin.js:93

t @ plugin.js:93

(anonymous) @ plugin.js:93

c @ plugin.js:93

value @ plugin.js:93

(anonymous) @ plugin.js:93

s @ plugin.js:68

(anonymous) @ plugin.js:68

(anonymous) @ plugin.js:68

o @ plugin.js:93

Promise.then (async)

u @ plugin.js:93

(anonymous) @ plugin.js:93

wa @ plugin.js:93

(anonymous) @ plugin.js:93

Promise.then (async)

(anonymous) @ plugin.js:93

s @ plugin.js:68

(anonymous) @ plugin.js:68

(anonymous) @ plugin.js:68

(anonymous) @ plugin.js:93

wa @ plugin.js:93

value @ plugin.js:93

(anonymous) @ game.js? [sm]:207

Promise.then (async)

(anonymous) @ game.js? [sm]:63

plugin.js:93 [PLUGIN TIME LOG 15:32.20.995] 下载资源包: 660ms

6Error: Failed to load config file ./blazor.boot.json [object Object] undefined

    at _callee27$ (webgl.wasm.framework.unityweb.js:4)

    at s (regeneratorRuntime.js:1)

    at Generator.<anonymous> (regeneratorRuntime.js:1)

    at Generator.throw (regeneratorRuntime.js:1)

    at asyncGeneratorStep (asyncToGenerator.js:1)

    at i (asyncToGenerator.js:1)(env: Windows,mg,1.06.2402040; lib: 3.2.5)

plugin.js:93 [PLUGIN LOG 15:32.21.010]  data download size=1036551

6unity-namespace.js? [sm]:127 unhandledRejection: Error: Failed to load config file ./blazor.boot.json [object Object] undefined

    at _callee27$ (webgl.wasm.framework.unityweb.js:4)

    at s (regeneratorRuntime.js:1)

    at Generator.<anonymous> (regeneratorRuntime.js:1)

    at Generator.throw (regeneratorRuntime.js:1)

    at asyncGeneratorStep (asyncToGenerator.js:1)

    at i (asyncToGenerator.js:1)(env: Windows,mg,1.06.2402040; lib: 3.2.5)

(anonymous) @ unity-namespace.js? [sm]:127

plugin.js:93 [PLUGIN TIME LOG 15:32.21.128] 读取资源文件: 129ms

plugin.js:93 [PLUGIN LOG 15:32.21.139]  [datapackage] content= 84,117,97,110,106,105,101,87,101,98,68,97,116,97,49,46,48,0,190,0,0,0,190,0,0,0,77,49,8,0,9,0,0,0,100,97,116,97,46,116,106,51,100,11,50,8,0,227,1,0,0,29,0,0,0,82,117,110,116,105,109,101,73,110

plugin.js:93 [PLUGIN LOG 15:32.21.140]  data content size=1036551

plugin.js:93 [PLUGIN LOG 15:32.21.248]  [coverview] start compile animation

[worker] reportRealtimeAction:fail not support

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

3 个回答

  • 是克总不是克怂
    是克总不是克怂
    06-18

    同求,我也是一样的情况

    unity打包的报错

    LinkError: WebAssembly.instantiate(): Impor #831 module="env" function="JS_Sound_GetAudioContextSampleRate" error: function import requires a callable(env: Windows,mg,1.05.2204264; lib: 3.2.5)

    06-18
    有用
    回复
  • 邹超
    邹超
    06-14

    我看了下,必须使用cdn,但是我资源小,首包资源就想放在小游戏包体内,不想使用cdn怎么办?

    06-14
    有用
    回复
  • 波波沙
    波波沙
    05-28

    你是不是用了团结引擎1.1及以上的版本?这里有解决报错的方法。https://developer.unity.cn/projects/660bda40edbc2a001fc41817


    05-28
    有用
    回复
登录 后发表内容