-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak through EclipseContext and ActivatePartExpression #178
Comments
I'm not familiar with the code involved, so I will start by describing the observed situation during a debugging session. The
During the closing of the editor, this
After, the
|
According to the above analysis, do you have any clue about what is wrong? |
For information, I also opened a discussion on "Eclipse Platform GitHub":eclipse-platform/eclipse.platform#889. |
As the activation is done here in |
A solution has been proposed on the Eclipse Platfrom side. I'm not sure about it. Waiting answer... |
If UpdateExpression updating is set to false, the expression will be no longer evaluated. So it can be set to null. This avoids potential memory leaks as for example on Sirius [1] discussed here [2]. [1] eclipse-sirius/sirius-desktop#178 [2] eclipse-platform/eclipse.platform#889
If UpdateExpression updating is set to false, the expression will be no longer evaluated. So it can be set to null. This avoids potential memory leaks as for example on Sirius [1] discussed here [2]. [1] eclipse-sirius/sirius-desktop#178 [2] eclipse-platform/eclipse.platform#889
If UpdateExpression updating is set to false, the expression will be no longer evaluated. So it can be set to null. This avoids potential memory leaks as for example on Sirius [1] discussed here [2]. [1] eclipse-sirius/sirius-desktop#178 [2] eclipse-platform/eclipse.platform#889
If UpdateExpression updating is set to false, the expression will be no longer evaluated. So it can be set to null. This avoids potential memory leaks as for example on Sirius [1] discussed here [2]. [1] eclipse-sirius/sirius-desktop#178 [2] eclipse-platform/eclipse.platform#889
After fixing two leaks of DDiagramEditorImpl (#174 and #176), a remaining leak is always here concerning EclipseContext and ActivatePartExpression.
Steps to reproduce (always the same than above issues):
org.eclipse.sirius.tests.swtbot.layout.ZOrderActionsTest
where the leak has been discovered.exceptions=off,disablestacktelemetry,alloceach=100,allocsizelimit=4096
to have memory analysis enabled)My.ecore
androot
diagramWithNodesAndEdges
edge1
, launch the actionBring to Front
(from contextual menuFormat>Order
)Edit>Undo
DDiagramEditorImpl
referenced through theactivePart
ofActivePartExpression
, ... referenced through theactiveRATS
of EclipseContext.The text was updated successfully, but these errors were encountered: