|Re: Memory Leak issue in GEF Module [message #1822390 is a reply to message #1821944]
||Thu, 05 March 2020 12:59
|| Matthias Wienand
Registered: March 2015
the keys in this map are weakened. Therefore, entries should be removed when they get garbage collected.
Since there is still a visual registered in visual-part-map, the viewer does not seem to be properly disposed. Disposal sets the adaptable-property of all adapters (that are adaptable-bound) to null. As soon as a part (adaptable-bound) loses its viewer (adaptable), it will unregister from its old viewer.
Therefore, I believe there should be some underlying issue preventing disposal, or an error w.r.t. unregistration, or something else.
I know it is hard, but I believe you need to dig deeper.
Some things to try:
1) When closing the visualisation, ensure that contents are cleared and viewer is disposed. Investigate state of visual-part-map, content-part-map, and viewer models (e.g. selection model). You should hopefully know more after doing this.
2) In a memory snapshot, try to follow reference chains to find root causes preventing garbage collection. Candidates for this are registered event handlers referencing model data (or a chain leading to model data).
If you have more insights to share, please do!
Powered by FUDForum
. Page generated in 0.02184 seconds