项目在编辑器里运行正常,代码没有报错,打包web运行正常,以下为运行时的log,可能小弟经验不足,看不出哪里有问题导致failed。
难道是:[runCmd test3D.exe - error] libpng warning: iCCP: known incorrect sRGB profile?这个我查了下看只是警告,应该不至于只要有一个error程序就结束吧?
2023-10-31 16:21:18-debug: // ---- builder:run-build-stage-run ----
2023-10-31 16:21:18-debug: Use build file cocos.compile.config.json in root(C:\CC\CocosSpace\myFirstCocos\build\windows)
2023-10-31 16:21:18-log: [task:run]: init options success, 10%
2023-10-31 16:21:18-log: [task:run]: native:(run) start…, 10%
2023-10-31 16:21:18-debug: // ---- build task native:run ----
2023-10-31 16:21:18-log: [runCmd]: test3D.exe
2023-10-31 16:21:20-log: [runCmd test3D.exe] 16:21:18 [INFO]: Setup EGLConfig: depth [24] stencil [8] sampleBuffer [0] sampleCount [0]
16:21:18 [DEBUG]: EGL context bounded to thread fbeac0264aa050cb
16:21:18 [INFO]: GLES3 device initialized.
16:21:18 [INFO]: RENDERER: PVRVFrame 10.8 - None (Host : NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2) (SDK Build: 18.1@5086772)
16:21:18 [INFO]: VENDOR: Imagination Technologies (Host: NVIDIA Corporation)
16:21:18 [INFO]: VERSION: OpenGL ES 3.2 (Host : 4.6.0 NVIDIA 472.80)
16:21:18 [INFO]: COMPRESSED_FORMATS: etc1 etc2 pvrtc astc
16:21:18 [INFO]: FRAMEBUFFER_FETCH: NONE
16:21:18 [INFO]: Device validator enabled.
16:21:18 [DEBUG]: D/ Initializing V8, version: 9.1.269.1
16:21:18 [DEBUG]: D/ libuv version: 1.41.0
16:21:18 [DEBUG]: D/ Number of interfaces: 4
16:21:18 [DEBUG]: D/ Debugger listening…, visit [
16:21:18 [DEBUG]: D/ devtools://devtools/bundled/js_app.html?v8only=true&ws=127.0.0.1:6086/00010002-0003-4004-8005-000600070008
16:21:18 [DEBUG]: D/ devtools://devtools/bundled/js_app.html?v8only=true&ws=192.168.16.58:6086/00010002-0003-4004-8005-000600070008
16:21:18 [DEBUG]: D/ ] in chrome browser to debug!
16:21:18 [DEBUG]: D/ For help see https://nodejs.org/en/docs/inspector
16:21:19 [INFO]: JS: injectWebAssembly …
2023-10-31 16:21:20-log: [runCmd test3D.exe] 16:21:20 [WARN]: JS: Failed to set shading scale, pipelineSceneData is invalid.
2023-10-31 16:21:20-log: [runCmd test3D.exe] 16:21:20 [INFO]: JS: [PHYSICS2D]: register box2d.
2023-10-31 16:21:20-log: [runCmd test3D.exe] 16:21:20 [INFO]: JS: [PHYSICS]: register bullet.
2023-10-31 16:21:20-log: [runCmd test3D.exe] 16:21:20 [DEBUG]: EGL context bounded to thread c4914b5e400f2306
16:21:20 [INFO]: Device thread detached.
2023-10-31 16:21:20-log: [runCmd test3D.exe] 16:21:20 [INFO]: JS: [PHYSICS]: using bullet.
2023-10-31 16:21:20-log: [runCmd test3D.exe] 16:21:20 [DEBUG]: EventBus[Engine] has no listener found!
2023-10-31 16:21:21-log: [runCmd test3D.exe] 16:21:21 [DEBUG]: JS: Cocos Creator v3.8.0
2023-10-31 16:21:23-log: [runCmd test3D.exe - error] libpng warning: iCCP: known incorrect sRGB profile
2023-10-31 16:21:23-log: [runCmd test3D.exe - error] libpng warning: iCCP: known incorrect sRGB profile
2023-10-31 16:21:23-log: [task:run]: 构建插件 native 的钩子函数 run 执行失败,请检查插件的代码逻辑~, 23.333333333333332%
2023-10-31 16:21:23-log: [task:run]: failed to exec test3D.exe , 36.66666666666667%
2023-10-31 16:21:23-warn: failed to exec test3D.exe
2023-10-31 16:21:23-debug: // ---- builder:run-build-stage-run ---- (5410ms)
2023-10-31 16:21:23-debug: [Build Memory track]: builder:build-stage-total run start:283.73MB, end 284.18MB, increase: 462.50KB
2023-10-31 16:21:23-error: run package C:\CC\CocosSpace\myFirstCocos\build\windows failed!
2023-10-31 16:21:23-log: [task:run]: failed!
