You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not a bug, but when I have an emitter that it emits but the particle texture has not been loaded, I get the following stacktrace:
Uncaught TypeError: Cannot read property 'emit' of undefined
at Label.removeFromDisplayList (phaser.min.js:1)
at Label.destroy (phaser.min.js:1)
at initialize.shutdown (phaser3.js:1)
at initialize.l.emit (phaser3.js:1)
at initialize.shutdown (phaser3.js:1)
at initialize.stop (phaser3.js:1)
at initialize.processQueue (phaser3.js:1)
at initialize.update (phaser3.js:1)
at initialize.step (phaser3.js:1)
at initialize.step (phaser3.js:1)
That is, I do not have any information on which image is missing. The lack of this information makes it hard to fix the error.
It would be very useful to have the key of the missing image in the stacktrace.
Edit
Not sure it is a particles emitter. It may be an event dispatcher. The point is exactly that the lack of feedback makes it hard to debug.
Activity
samme commentedon May 3, 2021
That's probably
https://github.com/photonstorm/phaser/blob/e2f19617f32b1a6b102567c94be149ffea23b4ae/src/gameobjects/GameObject.js#L777