Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Closing a view creates memory leak
Closing a view creates memory leak [message #1469803] Tue, 11 November 2014 22:45 Go to next message
Christian Rueck is currently offline Christian RueckFriend
Messages: 21
Registered: December 2009
Location: Germany
Junior Member
I am running an RCP application with E4 compatibility layer. I am using RCP 4.3 without explicitly using most of the E4 things. My problem appears on windows but I don't think it is OS dependent.

When I close a view using the "x" symbol on the GUI, the dispose method of this view is called.
However a reference to this view stays in the system and prevents freeing the memory that this view claims, which leads to a memory leak in my system.
I have looked up the problem with the Memory Analyzer and it says that the only reference to the ViewPart is held by org.eclipse.ui.internal.e4.compatibility.CompatibilityView.
It is held by the wrapped field.
I am new to memory leak analysis so in case I misinterpret: The memory analyzer at least says that the Compatibility view is the only first element on the path to GC roots.

I am not using a second perspective that keeps the view open.

Does anyone know if this is a problem on my side or within Eclipse and how to overcome it?
Re: Closing a view creates memory leak [message #1470382 is a reply to message #1469803] Wed, 12 November 2014 09:43 Go to previous message
Christian Rueck is currently offline Christian RueckFriend
Messages: 21
Registered: December 2009
Location: Germany
Junior Member
I think this is similar to Eclipse Bug 436225.


Previous Topic:Show heap status preference in custom preference page
Next Topic:how to make PropertySheetViewer as selection provider ?
Goto Forum:
  


Current Time: Tue Oct 24 07:49:46 GMT 2017

Powered by FUDForum. Page generated in 0.03145 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software