In cocos creator, this error occurred when open scene editor.
TypeError: Cannot read property 'gizmo' of null
at _updateGizmos (C:\CocosCreator\resources\app.asar\editor\page\scene-utils\engine-events.js:1:1364)
at Array.forEach (native)
at _updateGizmos (C:\CocosCreator\resources\app.asar\editor\page\scene-utils\engine-events.js:1:1441)
at Array.forEach (native)
at _updateGizmos (C:\CocosCreator\resources\app.asar\editor\page\scene-utils\engine-events.js:1:1441)
at Array.forEach (native)
at _updateGizmos (C:\CocosCreator\resources\app.asar\editor\page\scene-utils\engine-events.js:1:1441)
at Array.forEach (native)
at _updateGizmos (C:\CocosCreator\resources\app.asar\editor\page\scene-utils\engine-events.js:1:1441)
at Array.forEach (native)
And when i open other scene this error occurred.
TypeError: Cannot read property '_destroyImmediate' of null
at cc_Node._onPreDestroy [as _onPreDestroyBase] (C:\CocosCreator\resources\engine\cocos2d\core\utils\base-node.js:1195:22)
at cc_Node._onPreDestroy (C:\CocosCreator\resources\engine\cocos2d\core\CCNode.js:1052:36)
at cc_Node.prototype._destroyImmediate (C:\CocosCreator\resources\engine\cocos2d\core\platform\CCObject.js:423:14)
at cc_Node._onPreDestroy [as _onPreDestroyBase] (C:\CocosCreator\resources\engine\cocos2d\core\utils\base-node.js:1188:25)
at cc_Node._onPreDestroy (C:\CocosCreator\resources\engine\cocos2d\core\CCNode.js:1052:36)
at cc_Node.prototype._destroyImmediate (C:\CocosCreator\resources\engine\cocos2d\core\platform\CCObject.js:423:14)
at cc_Node._onPreDestroy [as _onPreDestroyBase] (C:\CocosCreator\resources\engine\cocos2d\core\utils\base-node.js:1188:25)
at cc_Node._onPreDestroy (C:\CocosCreator\resources\engine\cocos2d\core\CCNode.js:1052:36)
at cc_Node.prototype._destroyImmediate (C:\CocosCreator\resources\engine\cocos2d\core\platform\CCObject.js:423:14)
at cc_Node._onPreDestroy [as _onPreDestroyBase] (C:\CocosCreator\resources\engine\cocos2d\core\utils\base-node.js:1188:25)
object already destroyed
at Object.errorID (C:\CocosCreator\resources\engine\CCDebugger.js:338:24)
at cc_Node.prototype._destroyImmediate (C:\CocosCreator\resources\engine\cocos2d\core\platform\CCObject.js:418:12)
at cc_Node._onPreDestroy [as _onPreDestroyBase] (C:\CocosCreator\resources\engine\cocos2d\core\utils\base-node.js:1188:25)
at cc_Node._onPreDestroy (C:\CocosCreator\resources\engine\cocos2d\core\CCNode.js:1052:36)
at cc_Node.prototype._destroyImmediate (C:\CocosCreator\resources\engine\cocos2d\core\platform\CCObject.js:423:14)
at cc_Node._onPreDestroy [as _onPreDestroyBase] (C:\CocosCreator\resources\engine\cocos2d\core\utils\base-node.js:1188:25)
at cc_Node._onPreDestroy (C:\CocosCreator\resources\engine\cocos2d\core\CCNode.js:1052:36)
at cc_Node.prototype._destroyImmediate (C:\CocosCreator\resources\engine\cocos2d\core\platform\CCObject.js:423:14)
at cc_Scene._onPreDestroy [as _onPreDestroyBase] (C:\CocosCreator\resources\engine\cocos2d\core\utils\base-node.js:1188:25)
TypeError: Cannot read property '_children' of null
at Object._Scene.dumpHierarchy.module.exports [as dumpHierarchy] (C:\CocosCreator\resources\app.asar\editor\page\scene-utils\dump\get-hierarchy-dump.js:1:604)
at HTMLElement.scene:query-hierarchy (file:///C:/CocosCreator/resources/app.asar/editor/builtin/scene/panel/scene.js:1:6589)
at Object.Panel._dispatch (C:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:2283)
at EventEmitter.ipcRenderer.on.o (C:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:3960)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:204:7)
After that, cocos creator crashed.
How can i fix this?