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

Please add useful information when a particles emitter has an invalid/null frame #5838

Closed
monteiz opened this issue Sep 17, 2021 · 1 comment · Fixed by #5841
Closed

Please add useful information when a particles emitter has an invalid/null frame #5838

monteiz opened this issue Sep 17, 2021 · 1 comment · Fixed by #5841

Comments

@monteiz
Copy link
Contributor

monteiz commented Sep 17, 2021

When creating an emitter with an invalid/null frame, the error returned is:

Uncaught TypeError: Cannot read properties of null (reading 'canvasData')
    at ParticleEmitterManager.ParticleManagerCanvasRenderer [as renderCanvas] (VM1184 phaser.js:172287)
    at CanvasRenderer.render (VM1184 phaser.js:80190)
    at CameraManager.render (VM1184 phaser.js:155785)
    at Systems.render (VM1184 phaser.js:49092)
    at SceneManager.render (VM1184 phaser.js:100311)
    at Game.step (VM1184 phaser.js:162821)
    at TimeStep.step (VM1184 phaser.js:89366)
    at step (VM1184 phaser.js:89613)

It seems impossible to understand where the error comes from.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

Successfully merging a pull request may close this issue.

2 participants