Closed Baart closed 10 years ago
Sorry, closed it by accident. :)
The clear() method does not seem to clean up properly, indeed. Do you know which Gfx object is preventing garbage collection?
An other approach would be to not reuse the Bpmn object instance but instead make sure it is dereferenced and garbage collected. Maye this in combination with throwing away the generated SVN from the Dom would be an other approach to try out?
Regards, Daniel
I tryed to not reuse the Bpmn object, does not change the behaviour.
svg elements are effectively removed from the DOM but they are still referenced by some javascript piece.
Seeing the heap status :
It seems that svg is referenced by a Dojo element which is never deleted, however, I cannot find where the problem is.
@Baart thanks for reporting this. I was able to track down some issues. No more memory leaking for the moment.
@Nikku Ok thanks for the fix.
It seems that the clear method leave some orphan object.
To reproduce, use this modified demo.html file:
This will draw and clear massively.
On a 3 minutes run with firefox 28:
Issue can be watched on chrome by taking Heap snapshots. Some Gfx object seems to stack indefinitly.
Is this an issue or do I misunderstand the clear method ?
Best regards