Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling a model Entity with Clustered lighting gives errors #4950

Closed
yaustar opened this issue Jan 5, 2023 · 2 comments · Fixed by #4956
Closed

Disabling a model Entity with Clustered lighting gives errors #4950

yaustar opened this issue Jan 5, 2023 · 2 comments · Fixed by #4956
Assignees
Labels
area: graphics Graphics related issue bug

Comments

@yaustar
Copy link
Contributor

yaustar commented Jan 5, 2023

Related thread: https://forum.playcanvas.com/t/solved-cannot-read-properties-of-null-reading-device/29128/

Project: https://playcanvas.com/project/1025290/overview/clustered-lighting-disable-bug

Launch project
Press 1 to disable the cube
Errors appear:

Uncaught TypeError: Cannot read properties of null (reading 'width')
    at LightsBuffer.addLightData (lights-buffer.js:400:61)
    at WorldClusters.updateClusters (world-clusters.js:389:31)
    at WorldClusters.update (world-clusters.js:440:14)
    at ForwardRenderer.updateClusters (forward-renderer.js:1913:29)
    at RenderPass.execute (forward-renderer.js:1969:22)
    at RenderPass.render (render-pass.js:215:14)
    at FrameGraph.render (frame-graph.js:127:29)
    at Application.renderComposition (app-base.js:1240:25)
    at Application.render (app-base.js:1228:14)
    at app-base.js:2201:29
@kungfooman
Copy link
Collaborator

image

Test project not public?

@yaustar
Copy link
Contributor Author

yaustar commented Jan 6, 2023

Made public now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants