pixijs / particle-emitter

A particle system for PixiJS
http://pixijs.io/particle-emitter/docs
MIT License
784 stars 124 forks source link

IntColorComplex throws null exception #174

Closed HowlingMadZ closed 2 years ago

HowlingMadZ commented 2 years ago

image

Reproduction steps are as follows:

I created an effect with 3 colors

{ "type": "color", "config": { "color": { "list": [ { "time": 0, "value": "ffffff" }, { "time": 0.5, "value": "ff00ff" }, { "time": 1, "value": "9ff3ff" } ] } } },

Then i play the animation, tab out of the tab, and tab back in. When I get back, there is an exception and the entire system grinds to a halt (could be due to message amount in debug log)

If my color list has only two items (from time 0 to time 1) it works fine, it's when I added a third color that this exception happens on tabbing out.

HowlingMadZ commented 2 years ago

So today I tried to reproduce this issue again today, and I couldn't, so there must be another thing happening at the same time.

andrewstart commented 2 years ago

Good catch! There was an error when particles were spawned with behaviors using the linked list interpolation (3+ stages, not stepped) during a long frame. I've fixed it in version 5.0.4.