Simulator: D/jswrapper (130): JS: cocos2dx --------------游戏重启--------------
Simulator: D/jswrapper (453): ScriptEngine::cleanup begin …
Simulator: D/jswrapper (592): GC begin …, (js->native map) size: 340, all objects: 583
Simulator: D/jswrapper (643): XMLHttpRequest_finalize, 0D6EBB38 …
Simulator: D/jswrapper (600): GC end …, (js->native map) size: 138, all objects: 382
Simulator: D/jswrapper (592): GC begin …, (js->native map) size: 138, all objects: 381
Simulator: D/jswrapper (600): GC end …, (js->native map) size: 138, all objects: 381
Simulator: D/jswrapper (592): GC begin …, (js->native map) size: 0, all objects: 0
Simulator: D/jswrapper (600): GC end …, (js->native map) size: 0, all objects: 0
Simulator: D/jswrapper (514): ScriptEngine::cleanup end …
Simulator: RuntimeEngine already has Runtime type 2.
Simulator: resetDesignResolution request
Simulator: ------------------------------------------------
Simulator: LOAD Js FILE: jsb-adapter/jsb-builtin.js
Simulator: ------------------------------------------------
Simulator: D/jswrapper (367): Initializing V8, version: 7.5.288.22
Simulator: D/jswrapper (813): libuv version: 1.13.1
Simulator: D/jswrapper (112): Debugger listening…, visit [ chrome-devtools://devtools/bundled/inspector.html?v8only=true&ws=0.0.0.0:5086/00010002-0003-4004-8005-000600070008 ] in chrome browser to debug!
Simulator: D/jswrapper (115): For help see https://nodejs.org/en/docs/inspector
Simulator: D/jswrapper (130): JS: Enable batch GL commands optimization!
Simulator: resetDesignResolution request
Simulator: ------------------------------------------------
Simulator: LOAD Js FILE: main.js
Simulator: ------------------------------------------------
Simulator: libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
E/jswrapper (176): [ERROR] (f:\jenkins\workspace\creator_2d\cocos2d-x-lite\windows\cocos2d-x-lite\cocos\scripting\js-bindings\manual\jsb_global.cpp, 176): Can’t decrypt code for src/settings.jsc
E/jswrapper (710): ScriptEngine::runScript script src/settings.js, buffer is empty!
E/jswrapper (292): [ERROR] Failed to invoke require, location: f:\jenkins\workspace\creator_2d\cocos2d-x-lite\windows\cocos2d-x-lite\cocos\scripting\js-bindings\manual\jsb_global.cpp:292
Simulator: E/jswrapper (272): ERROR: Uncaught ReferenceError: _CCSettings is not defined, location: main.js:0:0
STACK:
[0]boot@main.js:5
[1]anonymous@main.js:95
[2]anonymous@main.js:97
E/jswrapper (673): ScriptEngine::evalString script main.js, failed!
at HTMLElement.print-simulator-log (D:\software\CocosCreator\resources\app.asar\editor\builtin\scene\panel\messages\scene.js:1:1608)
at Object.e._dispatch (D:\software\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:1876)
at EventEmitter. (D:\software\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:2952)
at EventEmitter.emit (events.js:194:13)
我有测试了一下,和这个cc.game.restart()没有直接关系
大佬们看看 说明问题?