Skip to content

Uncaught TypeError: Cannot read properties of null (reading 'renderWebGL') at GeometryMask2.applyStencil #7130

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

Open
saintflow47 opened this issue May 2, 2025 · 0 comments

Comments

@saintflow47
Copy link

Version

  • Phaser Version: 3.87.0
  • Operating system: Windows 10
  • Browser: Occured in Chrome

Description

The error did not contain any of my code so I do not know how i could catch or investigate it myself.

phaser.js:30552 Uncaught TypeError: Cannot read properties of null (reading 'renderWebGL') at GeometryMask2.applyStencil (phaser.js:30552:22) at GeometryMask2.preRenderWebGL (phaser.js:30511:14) at Layer2.LayerWebGLRenderer [as renderWebGL] (phaser.js:57604:18) at WebGLRenderer2.render (phaser.js:182352:19) at CameraManager2.render (phaser.js:11731:26) at Systems2.render (phaser.js:200490:22) at SceneManager2.render (phaser.js:197730:21) at Game2.step (phaser.js:17221:20) at TimeStep2.stepLimitFPS (phaser.js:18192:18) at step (phaser.js:31347:19)

The following line is the line that produced the crash
// Write stencil buffer geometryMask.renderWebGL(renderer, geometryMask, camera);

I am not sure which part is erroneous. It happened on a screen resize. I use both, layers and geometryMasks in my app.

Example Test Code

I do not have Test Code. I do not know which part of the application lead into the crashing code. sorry :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant