Memory leak using emitter and program fluid #1268
Unanswered
BKCollaboration
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a lot of objects, created at run-time, loading some osgParticle setup using an emitter and a program fluid added to a Transform with addChild.
I need to remove the emitter and the program fluid at some time and, to do that, I call a removeChild in a callback. Normally, with others type of node I have no problems and the related node is flushed away. With the emitter and program fluid, the removeChild fails returning false. For example, I can see this track where I'm removing some children from a node:
Basically, children like Group, Geode, ParicleSystemUpdater are removed correctly but the ModularEmitter and FluidProgram return 0 because the index and num children are the same value (117).
Can you give me some ideas about the problem? I think the problem is the incorrect child index of ModularEmitter and FluidProgram, but right now I'm not able to figure out why it's happens. Changing the order of "addChild" the result is the same.
Many thanks,
bye
Beta Was this translation helpful? Give feedback.
All reactions