新手求助热更新报错

  • Creator 版本:2.4.11

  • 目标平台:自带模拟器

  • 更新成功后调用cc.game.restart();之后 Simulator: E/jswrapper (184): [ERROR] (c:\users\nantas\fireball-x\cocos2d-x-lite_245\cocos\scripting\js-bindings\manual\jsb_global.cpp, 184): Can't decrypt code for src/cocos2d-jsb.jsc但是我电脑上没有这个目录,加密密钥和之前的是一样的

  • 首个报错:2023-10-14T09:23:10.954Z - normal: Simulator: D/jswrapper (143): JS: hotUpdate Code: 6
    2023-10-14T09:23:14.292Z - normal: Simulator: Fail remove file C:\ProgramData\cocos\editors\Creator\2.4.11\resources\cocos2d-x\simulator\win32\remote-asset/assets/internal/import/09/0967b326a.json !Error code is 0x3
    2023-10-14T09:23:14.292Z - normal: Simulator: Fail remove file C:\ProgramData\cocos\editors\Creator\2.4.11\resources\cocos2d-x\simulator\win32\remote-asset/assets/main/import/06/06b111ca5.json !Error code is 0x2
    2023-10-14T09:23:14.293Z - normal: Simulator: Fail remove file C:\ProgramData\cocos\editors\Creator\2.4.11\resources\cocos2d-x\simulator\win32\remote-asset/assets/main/import/08/088488c03.json !Error code is 0x2
    2023-10-14T09:23:14.293Z - normal: Simulator: Fail remove file C:\ProgramData\cocos\editors\Creator\2.4.11\resources\cocos2d-x\simulator\win32\remote-asset/assets/main/native/71/71561142-4c83-4933-afca-cb7a17f67053.png !Error code is 0x3
    2023-10-14T09:23:14.293Z - normal: Simulator: Fail remove file C:\ProgramData\cocos\editors\Creator\2.4.11\resources\cocos2d-x\simulator\win32\remote-asset/assets/main/native/99/99170b0b-d210-46f1-b213-7d9e3f23098a.png !Error code is 0x3
    2023-10-14T09:23:14.293Z - normal: Simulator: Fail remove file C:\ProgramData\cocos\editors\Creator\2.4.11\resources\cocos2d-x\simulator\win32\remote-asset/assets/main/native/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.png !Error code is 0x3
    2023-10-14T09:23:14.294Z - normal: Simulator: Fail remove file C:\ProgramData\cocos\editors\Creator\2.4.11\resources\cocos2d-x\simulator\win32\remote-asset/assets/main/native/cf/cfef78f1-c8df-49b7-8ed0-4c953ace2621.png !Error code is 0x3
    2023-10-14T09:23:14.295Z - normal: Simulator: Fail remove file C:\ProgramData\cocos\editors\Creator\2.4.11\resources\cocos2d-x\simulator\win32\remote-asset/assets/main/native/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.png !Error code is 0x3
    2023-10-14T09:23:14.296Z - normal: Simulator: D/jswrapper (143): JS: hotUpdate Code: 8
    2023-10-14T09:23:14.296Z - normal: Simulator: D/jswrapper (143): JS: 更新成功
    2023-10-14T09:23:14.296Z - normal: Simulator: D/jswrapper (143): JS: [HotUpdate] 搜索路径: [“C:\ProgramData\cocos\editors\Creator\2.4.11\resources\cocos2d-x\simulator\win32\remote-asset/”]
    2023-10-14T09:23:14.327Z - normal: Simulator: D/jswrapper (143): JS: 更新成功
    2023-10-14T09:23:14.423Z - normal: Simulator: D/jswrapper (579): ScriptEngine::cleanup begin …
    2023-10-14T09:23:14.423Z - normal: Simulator: D/jswrapper (719): GC begin …, (js->native map) size: 3259, all objects: 3501
    2023-10-14T09:23:14.455Z - normal: Simulator: D/jswrapper (737): GC end …, (js->native map) size: 61, all objects: 268
    2023-10-14T09:23:14.455Z - normal: Simulator: D/jswrapper (719): GC begin …, (js->native map) size: 61, all objects: 268
    2023-10-14T09:23:14.472Z - normal: Simulator: D/jswrapper (737): GC end …, (js->native map) size: 61, all objects: 268
    2023-10-14T09:23:14.473Z - normal: Simulator: D/jswrapper (719): GC begin …, (js->native map) size: 0, all objects: -1
    2023-10-14T09:23:14.474Z - normal: Simulator: D/jswrapper (532): Function object is released!
    2023-10-14T09:23:14.486Z - normal: Simulator: D/jswrapper (737): GC end …, (js->native map) size: 0, all objects: -1
    2023-10-14T09:23:14.498Z - normal: Simulator: D/jswrapper (640): ScriptEngine::cleanup end …
    2023-10-14T09:23:14.499Z - normal: Simulator: RuntimeEngine already has Runtime type 2.
    2023-10-14T09:23:14.499Z - normal: Simulator: resetDesignResolution request
    2023-10-14T09:23:14.499Z - normal: Simulator: ------------------------------------------------
    2023-10-14T09:23:14.499Z - normal: Simulator: LOAD Js FILE: jsb-adapter/jsb-builtin.js
    2023-10-14T09:23:14.499Z - normal: Simulator: ------------------------------------------------
    2023-10-14T09:23:14.499Z - normal: Simulator: D/jswrapper (485): Initializing V8, version: 8.0.426.16
    2023-10-14T09:23:14.499Z - normal: Simulator: D/jswrapper (813): libuv version: 1.13.1
    2023-10-14T09:23:14.499Z - normal: Simulator: D/jswrapper (112): Debugger listening…, visit [ devtools://devtools/bundled/js_app.html?v8only=true&ws=0.0.0.0:5086/00010002-0003-4004-8005-000600070008 ] in chrome browser to debug!
    2023-10-14T09:23:14.499Z - normal: Simulator: D/jswrapper (115): For help see https://nodejs.org/en/docs/inspector
    2023-10-14T09:23:14.543Z - normal: Simulator: D/jswrapper (143): JS: Enable batch GL commands optimization!
    2023-10-14T09:23:14.544Z - normal: Simulator: resetDesignResolution request
    2023-10-14T09:23:14.544Z - normal: Simulator: ------------------------------------------------
    2023-10-14T09:23:14.544Z - normal: Simulator: LOAD Js FILE: main.js
    2023-10-14T09:23:14.544Z - normal: Simulator: ------------------------------------------------
    2023-10-14T09:23:14.544Z - warn: Simulator: libpng warning: iCCP: known incorrect sRGB profile
    E/jswrapper (184): [ERROR] (c:\users\nantas\fireball-x\cocos2d-x-lite_245\cocos\scripting\js-bindings\manual\jsb_global.cpp, 184): Can’t decrypt code for src/settings.jsc
    E/jswrapper (862): ScriptEngine::runScript script src/settings.js, buffer is empty!
    E/jswrapper (300): [ERROR] Failed to invoke require, location: c:\users\nantas\fireball-x\cocos2d-x-lite_245\cocos\scripting\js-bindings\manual\jsb_global.cpp:300
    2023-10-14T09:23:14.545Z - error: Simulator: E/jswrapper (184): [ERROR] (c:\users\nantas\fireball-x\cocos2d-x-lite_245\cocos\scripting\js-bindings\manual\jsb_global.cpp, 184): Can’t decrypt code for src/cocos2d-jsb.jsc
    E/jswrapper (862): ScriptEngine::runScript script src/cocos2d-jsb.js, buffer is empty!
    E/jswrapper (300): [ERROR] Failed to invoke require, location: c:\users\nantas\fireball-x\cocos2d-x-lite_245\cocos\scripting\js-bindings\manual\jsb_global.cpp:300
    at HTMLElement.print-simulator-log (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor\builtin\scene\panel\messages\scene.ccc:1:1451)
    at Object._dispatch (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor-framework\lib\renderer\panel.ccc:1:1750)
    at EventEmitter. (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor-framework\lib\renderer\ipc.ccc:1:2816)
    at EventEmitter.emit (events.js:315:20)
    at Object.onMessage (electron/js2c/renderer_init.js:93:1117)
    2023-10-14T09:23:14.585Z - error: Simulator: E/jswrapper (818): ScriptEngine::evalString catch exception:
    at HTMLElement.print-simulator-log (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor\builtin\scene\panel\messages\scene.ccc:1:1451)
    at Object._dispatch (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor-framework\lib\renderer\panel.ccc:1:1750)
    at EventEmitter. (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor-framework\lib\renderer\ipc.ccc:1:2816)
    at EventEmitter.emit (events.js:315:20)
    at Object.onMessage (electron/js2c/renderer_init.js:93:1117)
    2023-10-14T09:23:14.585Z - error: Simulator: E/jswrapper (348): ERROR: Uncaught ReferenceError: cc is not defined, location: jsb-adapter/jsb-engine.js:0:0
    STACK:
    [0]43@jsb-adapter/jsb-engine.js:4954
    [1]o@jsb-adapter/jsb-engine.js:1
    [2]anonymous@jsb-adapter/jsb-engine.js:1
    [3]27…/assemblers/assembler-2d.js@jsb-adapter/jsb-engine.js:1251
    [4]o@jsb-adapter/jsb-engine.js:1
    [5]r@jsb-adapter/jsb-engine.js:1
    [6]anonymous@jsb-adapter/jsb-engine.js:1
    [7]anonymous@main.js:77
    [8]anonymous@main.js:82
    E/jswrapper (825): ScriptEngine::evalString script jsb-adapter/jsb-engine.js, failed!
    E/jswrapper (300): [ERROR] Failed to invoke require, location: c:\users\nantas\fireball-x\cocos2d-x-lite_245\cocos\scripting\js-bindings\manual\jsb_global.cpp:300
    at HTMLElement.print-simulator-log (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor\builtin\scene\panel\messages\scene.ccc:1:1451)
    at Object._dispatch (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor-framework\lib\renderer\panel.ccc:1:1750)
    at EventEmitter. (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor-framework\lib\renderer\ipc.ccc:1:2816)
    at EventEmitter.emit (events.js:315:20)
    at Object.onMessage (electron/js2c/renderer_init.js:93:1117)
    2023-10-14T09:23:14.585Z - normal: Simulator: D/jswrapper (532): Function object is released!
    2023-10-14T09:23:14.585Z - error: Simulator: E/jswrapper (818): ScriptEngine::evalString catch exception:
    E/jswrapper (348): ERROR: Uncaught ReferenceError: cc is not defined, location: main.js:0:0
    STACK:
    [0]boot@main.js:6
    [1]anonymous@main.js:80
    [2]anonymous@main.js:82
    at HTMLElement.print-simulator-log (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor\builtin\scene\panel\messages\scene.ccc:1:1451)
    at Object._dispatch (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor-framework\lib\renderer\panel.ccc:1:1750)
    at EventEmitter. (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor-framework\lib\renderer\ipc.ccc:1:2816)
    at EventEmitter.emit (events.js:315:20)
    at Object.onMessage (electron/js2c/renderer_init.js:93:1117)
    2023-10-14T09:23:14.585Z - normal: Simulator: D/jswrapper (532): Function object is released!
    2023-10-14T09:23:14.586Z - normal: Simulator: iShow!
    2023-10-14T09:23:14.586Z - error: Simulator: E/jswrapper (825): ScriptEngine::evalString script main.js, failed!
    at HTMLElement.print-simulator-log (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor\builtin\scene\panel\messages\scene.ccc:1:1451)
    at Object._dispatch (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor-framework\lib\renderer\panel.ccc:1:1750)
    at EventEmitter. (C:\ProgramData\cocos\editors\Creator\2.4.11\resources\app.asar\editor-framework\lib\renderer\ipc.ccc:1:2816)
    at EventEmitter.emit (events.js:315:20)
    at Object.onMessage (electron/js2c/renderer_init.js:93:1117)
    2023-10-14T09:27:12.902Z - normal: Simulator: D/jswrapper (579): ScriptEngine::cleanup begin …
    2023-10-14T09:27:12.902Z - normal: Simulator: D/jswrapper (719): GC begin …, (js->native map) size: 1, all objects: 184
    2023-10-14T09:27:12.906Z - normal: Simulator: D/jswrapper (737): GC end …, (js->native map) size: 1, all objects: 184
    2023-10-14T09:27:12.907Z - normal: Simulator: D/jswrapper (719): GC begin …, (js->native map) size: 1, all objects: 184
    2023-10-14T09:27:12.907Z - normal: Simulator: D/jswrapper (737): GC end …, (js->native map) size: 1, all objects: 184
    2023-10-14T09:27:12.907Z - normal: Simulator: D/jswrapper (719): GC begin …, (js->native map) size: 0, all objects: -1
    2023-10-14T09:27:12.907Z - normal: Simulator: D/jswrapper (532): Function object is released!
    2023-10-14T09:27:12.907Z - normal: Simulator: D/jswrapper (737): GC end …, (js->native map) size: 0, all objects: -1
    2023-10-14T09:27:12.910Z - normal: Simulator: D/jswrapper (640): ScriptEngine::cleanup end …