Skip to content

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

Closed
@monteiz

Description

@monteiz

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions