| Summary: | All properties must be disposed into DTreeEditor.dispose() | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Yann Mortier <yann.mortier> |
| Component: | Tree | Assignee: | Pierre-Charles David <pierre-charles.david> |
| Status: | CLOSED FIXED | QA Contact: | Pierre Guilet <pierre.guilet> |
| Severity: | normal | ||
| Priority: | P3 | CC: | maxime.porhel, pierre-charles.david |
| Version: | 3.1.0 | Keywords: | triaged |
| Target Milestone: | 4.1.1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| See Also: |
https://git.eclipse.org/r/80929 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d7b5834511b4ba3ce259f47daf0bcf2e0a1e304b https://git.eclipse.org/r/83685 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=bb18387550e27d3e0f5d41c94d35fc03730b517c https://git.eclipse.org/r/85740 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=b4b937dac3190f416cd482eaf8ca5993a4d56b36 |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 506082, 506083 | ||
|
Description
Yann Mortier
I have not actually measured the implied leak, but from looking at the code it is indeed present, and still here on master. The fix seems obvious at first glance, but I'd like to see the leak with my own eyes to make sure we're not missing something. From a private discussion with Yann, it seems that one piece of code which keeps a reference to the disposed editors is in org.eclipse.ui.internal.contexts.ContextService.UpdateExpression#expression, which can be an ActivePartExpression with its own activePart field referencing the DTreeEditor. New Gerrit change created: https://git.eclipse.org/r/80929 Gerrit change https://git.eclipse.org/r/80929 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d7b5834511b4ba3ce259f47daf0bcf2e0a1e304b Should be fixed. It's probably not possible to make an automated test for this, but we'll wait for our complete test suites to run to see if I introduced any regression, and some YourKit session is probably possible to confirm the leak is gone. New Gerrit change created: https://git.eclipse.org/r/83685 Gerrit change https://git.eclipse.org/r/83685 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=bb18387550e27d3e0f5d41c94d35fc03730b517c Fixed with bb18387550e27d3e0f5d41c94d35fc03730b517c. Available in Sirius 4.1.1, see https://wiki.eclipse.org/Sirius/4.1.1 New Gerrit change created: https://git.eclipse.org/r/85740 Gerrit change https://git.eclipse.org/r/85740 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=b4b937dac3190f416cd482eaf8ca5993a4d56b36 |