Pixi.js: SpriteRenderer#sprites retains destroyed sprites

Created on 7 Jun 2017  路  5Comments  路  Source: pixijs/pixi.js

Steps

  • Take heap snapshot
  • add some bunny
  • take heap snapshot
  • destroy bunnies container
  • collect garbage
  • take an heap snapshot
  • filter by "Objects allocated between Snapshot 1 and Snapshot 2"

Try also to look at app.renderer.plugins.sprite.sprites before and after destroy them all

screen shot 2017-06-07 at 16 27 56

test.zip

馃捑 v4.x (Legacy) 馃摙 Accepting PRs 馃攳 Needs Investigation 馃暦 Bug

Most helpful comment

Thanks @lucap86 for the details, we'll look into this as soon as we find time.

All 5 comments

Which version of the lib is this?

sorry in the example is 4.4.4 but it also happen with 4.5.2
here it is the correct test case with the last pixi version
test-4.5.2.zip

Thanks @lucap86 for the details, we'll look into this as soon as we find time.

Any update on this? We're facing the same problem of having lots of tiny memory leaks that would be good to address.

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

confile picture confile  路  25Comments

mreinstein picture mreinstein  路  39Comments

manudurgoni picture manudurgoni  路  24Comments

trusktr picture trusktr  路  30Comments

themoonrat picture themoonrat  路  29Comments