Cannot set property "isAlphaPremultiplied" of null

Hi guys! I’m working on a project where I have a map scene which has a number of texts and images (like a mini-map in games) and gets populated depending upon the data I pass onto this scene. I am restarting this scene a lot and populate the map with the data I provide. Sometimes the scene disappears and this exception occurs. I have no idea why it is occurring and I’ve been trying to solve this issue for quite some time. Any help would be much appreciated. Thanks.

:wave:

Which Phaser version? And what is on map.js:232?

Hi Samme! I’m using 3.24.1 and here is a screen shot. I’m actually creating a container on ‘pointerover’ event of an image and destroy this container in the ‘pointerout’ as you can see in the image below. The error originates from the text game object.

Capture

So which line of your code is in the error trace?

Line number 232.

And what’s on that line?

I’m initializing a text object.