Pixi.js: PIXI dies on destroy and re-create renderer

Created on 16 Sep 2016  路  12Comments  路  Source: pixijs/pixi.js

https://jsfiddle.net/g3op2rcu/2/

Any recommendations how to deal with this for now?

馃捑 v4.x (Legacy) 馃敟 High Priority 馃暦 Bug

All 12 comments

What do you mean by "dies"? You fiddle had no errors for me, and when I rendered using your second renderer it worked fine:

https://jsfiddle.net/g3op2rcu/3/

What problem are you experiencing?

@englercj well. I'm on Linux Chromium. When I open page freezes and has to be killed by force. Lot's of CPU processing. But I can't debug because DEV tools go dead also :(

On OSX/Chrome, I can't open the fiddle either

P.S. this was not the case in 3.0.11. I started to exp. this when switched to pixi v4

Windows & Chrome Beta (v54) and it freezes for me too. Latest Firefox Dev Edition and IE 11 are fine.

Hmm, now that I think about it; I'm on a machine that uses CanvasRenderer. So this is probably WebGL renderer only, I'll check again when I get to work.

@englercj ?

Sorry busy at work, haven't had a chance to look into this. I should be getting a GFX card in the next few weeks.

Ok, been looking into this. Seems like what is happening is the second context we create returns null which makes us run the checkMaxIfStatmentsInShader function with a maximum value of 0, so it just runs forever.

Note that this only seems to be a problem if you reuse the same canvas both times. Creating a new canvas for the second renderer doesn't seem to have this issue.

Still looking into why it returns null, will update soon.

Finally figure this one out, was pretty interesting. You can see more info in #3065, which should fix this issue when merged.

Thanks @englercj . Will is into this next week.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Lyoko-Jeremie picture Lyoko-Jeremie  路  28Comments

doebi picture doebi  路  30Comments

GoodBoyDigital picture GoodBoyDigital  路  31Comments

pr1ntr picture pr1ntr  路  25Comments

ppoliani picture ppoliani  路  24Comments