Skip to content

Endless editor error after loading the scene ([Scene] Cannot read properties of undefined (reading 'localSetLayout')) #18884

Description

@placDev

Cocos Creator version

3.8.7

System information

Windows 10

Issue description

Hi, after loading the scene in the editor, I get a cyclic error (the log counter increases every second). The editor starts to slow down a lot and switching to another scene becomes impossible. The log refers to the editor's cache, an attempt to clean it does not lead to results.

If the editor loads with a different scene (empty or few objects), no error occurs.

Image

Relevant error log output

[Scene] Cannot read properties of undefined (reading 'localSetLayout') TypeError: Cannot read properties of undefined (reading 'localSetLayout') at BlitDesc.createStageDescriptor (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:241856:120) at DeviceRenderQueue.createBlitDesc (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:242041:26) at DeviceRenderScene.preRecord (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:242581:32) at PreRenderVisitor.blit (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:243189:23) at RenderGraph.visitVertex (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:250596:30) at RenderVisitor.discoverVertex (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:243290:13) at depthFirstVisitImpl (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:243610:21) at depthFirstSearch (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:243653:9) at Executor.execute (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:243036:11) at WebPipeline.execute (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:254205:26) at WebPipeline.render (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:254237:16) at Root._frameMoveEnd (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:6052:28) at Root.frameMove (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:5750:18) at Director.tick (C:\Users\SuperPuperUser\Desktop\7\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:21878:24) at EngineManager.tickInEditMode (C:\Users\SuperPuperUser\Desktop\7\resources\app.asar\builtin\scene\dist\script\3d\manager\engine\index.ccc:1:2946) at EngineManager._tick (C:\Users\SuperPuperUser\Desktop\7\resources\app.asar\builtin\scene\dist\script\3d\manager\engine\index.ccc:1:3989) at sentryWrapped (C:\Users\SuperPuperUser\Desktop\7\resources\app.asar\node_modules\@sentry\browser\src\helpers.ts:116:17)

Steps to reproduce

  1. Download the attached project (3.8.7)
  2. Upload a scene in the project and move the camera (TestGarbage.scene)
  3. Sometimes a bug appears after restarting the editor (2-3 times)

Minimal reproduction project

The archive could not be uploaded, so I sent it to a public repository.
https://github.com/placDev/CocosBag
The error is being reproduced

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNeeds TriageNeeds to be assigned by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions