Cocos creator 3.70 Scene getting blank again and again

hello guyz i am new here and just encountering this problem again and again and have no idea how to fix it, tried reinstall run cocos creator and editor as admin. tried diffrent editors 3.70 and above. but same problem. Any help is appreciated thanks in advance.

by the way editor version is 3.7.0 and dashboard version is 1.3.2.

It this problem happened to this scene only? can you try to create another scene see what happen?
Click the top menu->develop->open scene devtools;then capture the log in the devtools.

1 Like

Thank you for replying. Its happening with every time, even tired several empty projects with diffrent editor versions, editors blinks for a sec like its reloading or regenerating UI and scene jutst become like above screenshot. Let me capture logs

here are the logs : -

C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\builtin\scene\dist\script\3d\manager\startup\index.ccc:1 Import Electron and EditorExtends: 0.007080078125 ms
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\builtin\scene\dist\script\3d\manager\startup\index.ccc:1 Import files: 9.81005859375 ms
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-windows\lib\renderer.ccc:1 ask-win: 486.266845703125 ms
preload.ts:197 Import engine: 0.006103515625 ms
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\builtin\scene\dist\script\3d\manager\startup\index.ccc:1 Require engine time: 1659.67919921875 ms
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:19314 Init Base: 18.76904296875 ms
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:19350 Init Infrastructure: 754.39599609375 ms
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1 [Physics][Bullet]: Using asmjs Bullet libs.
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1 [PHYSICS]: using builtin.
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:19390 Init SubSystem: 1119.447021484375 ms
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1 Cocos Creator v3.7.0
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1 Forward render pipeline initialized.
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:19433 Init Project: 18.533935546875 ms
index.ts:146 Invalidate all modules
index.ts:154 Imports all modules
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1 [PHYSICS2D]: switch from builtin to box2d.
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\builtin\scene\dist\script\3d\manager\startup\index.ccc:1 Open engine time: 2335.331787109375 ms
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\builtin\scene\dist\script\3d\manager\startup\index.ccc:1 Configure engine time: 0.023193359375 ms
3d-webview.html:1 [Deprecation] The website requested a subresource from a network that it could only access because of its users' privileged network position. These requests expose non-public devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage. To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts, and will start blocking them in Chrome 92 (July 2021). See https://chromestatus.com/feature/5436853517811712 for more details.
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\builtin\scene\dist\script\3d\manager\startup\index.ccc:1 InitManager: 1176.75 ms
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:271571 getGamepad will now require Secure Context. Please update your application accordingly. For more information see https://github.com/w3c/gamepad/pull/120
_getWebGamePads @ C:\ProgramData\cocos\editors\Creator\3.7.0\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:271571
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\builtin\scene\dist\script\3d\manager\thumbnail\index.ccc:1 Thumbnail Generate Cost Time: 33.434814453125 ms
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1 VertexShader in 'builtin-sprite|sprite-vs:vert|sprite-fs:frag|USE_TEXTURE1' compilation failed.
(anonymous) @ C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1 Shader source dump: 
1 #define CC_DEVICE_SUPPORT_FLOAT_TEXTURE 1
2 #define CC_ENABLE_CLUSTERED_LIGHT_CULLING 0
3 #define CC_DEVICE_MAX_VERTEX_UNIFORM_VECTORS 4096
4 #define CC_DEVICE_MAX_FRAGMENT_UNIFORM_VECTORS 1024
5 #define CC_DEVICE_CAN_BENEFIT_FROM_INPUT_ATTACHMENT 0
6 #define CC_PLATFORM_ANDROID_AND_WEBGL 0
7 #define CC_ENABLE_WEBGL_HIGHP_STRUCT_VALUES 0
8 #define CC_JOINT_UNIFORM_CAPACITY 256
9 #define CC_EFFECT_USED_VERTEX_UNIFORM_VECTORS 54
10 #define CC_EFFECT_USED_FRAGMENT_UNIFORM_VECTORS 1
11 #define USE_LOCAL 0
12 #define SAMPLE_FROM_RT 0
13 #define USE_PIXEL_ALIGNMENT 0
14 #define CC_USE_EMBEDDED_ALPHA 0
15 #define USE_ALPHA_TEST 0
16 #define USE_TEXTURE 1
17 #define IS_GRAY 0
18 
19 precision highp float;
20 layout(std140) uniform CCGlobal {
21   highp   vec4 cc_time;
22   mediump vec4 cc_screenSize;
23   mediump vec4 cc_nativeSize;
24   mediump vec4 cc_debug_view_mode;
25   mediump vec4 cc_debug_view_composite_pack_1;
26   mediump vec4 cc_debug_view_composite_pack_2;
27   mediump vec4 cc_debug_view_composite_pack_3;
28 };
29 layout(std140) uniform CCCamera {
30   highp   mat4 cc_matView;
31   highp   mat4 cc_matViewInv;
32   highp   mat4 cc_matProj;
33   highp   mat4 cc_matProjInv;
34   highp   mat4 cc_matViewProj;
35   highp   mat4 cc_matViewProjInv;
36   highp   vec4 cc_cameraPos;
37   mediump vec4 cc_surfaceTransform;
38   mediump vec4 cc_screenScale;
39   mediump vec4 cc_exposure;
40   mediump vec4 cc_mainLitDir;
41   mediump vec4 cc_mainLitColor;
42   mediump vec4 cc_ambientSky;
43   mediump vec4 cc_ambientGround;
44   mediump vec4 cc_fogColor;
45   mediump vec4 cc_fogBase;
46   mediump vec4 cc_fogAdd;
47   mediump vec4 cc_nearFar;
48   mediump vec4 cc_viewPort;
49 };
50 #if USE_LOCAL
51   layout(std140) uniform CCLocal {
52     highp mat4 cc_matWorld;
53     highp mat4 cc_matWorldIT;
54     highp vec4 cc_lightingMapUVParam;
55     highp vec4 cc_localShadowBias;
56   };
57 #endif
58 #if SAMPLE_FROM_RT
59   #define QUATER_PI         0.78539816340
60   #define HALF_PI           1.57079632679
61   #define PI                3.14159265359
62   #define PI2               6.28318530718
63   #define PI4               12.5663706144
64   #define INV_QUATER_PI     1.27323954474
65   #define INV_HALF_PI       0.63661977237
66   #define INV_PI            0.31830988618
67   #define INV_PI2           0.15915494309
68   #define INV_PI4           0.07957747155
69   #define EPSILON           1e-6
70   #define EPSILON_LOWP      1e-4
71   #define LOG2              1.442695
72   #define EXP_VALUE         2.71828183f
73   #define FP_MAX            65504.0
74   #define FP_SCALE          0.0009765625
75   #define FP_SCALE_INV      1024.0
76   #define GRAY_VECTOR       vec3(0.299, 0.587, 0.114)
77       #define LIGHT_MAP_TYPE_DISABLED 0
78   #define LIGHT_MAP_TYPE_ALL_IN_ONE 1
79   #define LIGHT_MAP_TYPE_INDIRECT_OCCLUSION 2
80   #define REFLECTION_PROBE_TYPE_NONE 0
81   #define REFLECTION_PROBE_TYPE_CUBE 1
82   #define REFLECTION_PROBE_TYPE_PLANAR 2
83   #define LIGHT_TYPE_DIRECTIONAL 0.0
84   #define LIGHT_TYPE_SPHERE 1.0
85   #define LIGHT_TYPE_SPOT 2.0
86   #define IS_DIRECTIONAL_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_DIRECTIONAL)) < EPSILON)
87   #define IS_SPHERE_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPHERE)) < EPSILON)
88   #define IS_SPOT_LIGHT(light_type) (abs(float(light_type) - float(LIGHT_TYPE_SPOT)) < EPSILON)
89 #endif
90 in vec3 a_position;
91 in vec2 a_texCoord;
92 in vec4 a_color;
93 out vec4 color;
94 out vec2 uv0;
95 vec4 vert () {
96   vec4 pos = vec4(a_position, 1);
97   #if USE_LOCAL
98     pos = cc_matWorld * pos;
99   #endif
100   #if USE_PIXEL_ALIGNMENT
101     pos = cc_matView * pos;
102     pos.xyz = floor(pos.xyz);
103     pos = cc_matProj * pos;
104   #else
105     pos = cc_matViewProj * pos;
106   #endif
107   uv0 = a_texCoord;
108   #if SAMPLE_FROM_RT
109     uv0 = cc_cameraPos.w > 1.0 ? vec2(uv0.x, 1.0 - uv0.y) : uv0;
110   #endif
111   color = a_color;
112   return pos;
113 }
114 void main() { gl_Position = vert(); }
(anonymous) @ C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1 
(anonymous) @ C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:192198 WebGL: INVALID_OPERATION: drawElements: no valid shader program in use
WebGL2CmdFuncDraw @ C:\ProgramData\cocos\editors\Creator\3.7.0\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:192198
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:192198 WebGL: INVALID_OPERATION: drawElements: no valid shader program in use
WebGL2CmdFuncDraw @ C:\ProgramData\cocos\editors\Creator\3.7.0\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:192198
3d-webview.html:1 WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1 WebGL context lost.
(anonymous) @ C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1
C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1 WebGLContextEvent
(anonymous) @ C:\ProgramData\cocos\editors\Creator\3.7.0\resources\app.asar\node_modules\@base\electron-logger\lib\renderer.ccc:1
DevTools failed to load source map: Could not parse content for file:///E:/editor_3d/v3.7.0/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/dragonbones-js.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/cannon.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/_rollupPluginBabelHelpers-cd93c938.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/_commonjsHelpers-3e53d763.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/box2d.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/bullet.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/physx.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/loader.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/loader-context.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/base.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/i18n.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/middleware.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not parse content for packages://scene/static/template/bundle.js.map: Unexpected end of JSON input
type or paste code here


You should try one of these options.

1 Like

getting this error

thanks guyz looks like problem fix i just have to restart after above error and its working now :smiley:

1st option did the trick !

1 Like