Code Monkey home page Code Monkey logo

Comments (6)

Zyie avatar Zyie commented on April 27, 2024

Hey @dragoon are you able to create a smaller example of the issue you are having so we can debug easier. Something on pixiplayground or codepen, jsfiddle

from pixijs.

dragoon avatar dragoon commented on April 27, 2024

Hi @Zyie, I will try, just wanted to check maybe someone knows why the object might be null.

from pixijs.

dragoon avatar dragoon commented on April 27, 2024

Hi @Zyie , I've been able to re-create the bug with a rather simple example of 160 lines: https://codepen.io/rprokofyev/pen/YzgROZm
The bug usually happens after the next call in the setInverval function at the bottom, I have tried several times and it has reliably occurred at the first time setInverval is called (after one minute)

from pixijs.

GoodBoyDigital avatar GoodBoyDigital commented on April 27, 2024

thanks @dragoon ! looking into this now

from pixijs.

GoodBoyDigital avatar GoodBoyDigital commented on April 27, 2024

heya, looks like you are removing the line from a different container the you are adding to in this example. This means the destroyed sprite is still in the scene graph and so it.. explodes :D

try swapping line 114 for this and it should work: line.parent?.removeChild(line);

from pixijs.

dragoon avatar dragoon commented on April 27, 2024

Okay, thank you for looking into this, I will close this, but interestingly my original code works in PIXI 7 without issues for some reason.

from pixijs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.