| Summary: | SessionEditorInput is not disposed at table (or tree) editor closing | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Laurent Redor <laurent.redor> | ||||
| Component: | Core | Assignee: | Laurent Redor <laurent.redor> | ||||
| Status: | CLOSED FIXED | QA Contact: | Maxime Porhel <maxime.porhel> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | belqassim.djafer, maxime.porhel, pierre-charles.david | ||||
| Version: | 0.9 | Keywords: | triaged | ||||
| Target Milestone: | 3.0.0M4 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 456055 | ||||||
| Attachments: |
|
||||||
|
Description
Laurent Redor
The initial reproduction case is complex (launch the SWTBot tests suite, ...). Here is a simpler reproduction case but not exactly as the initial detection. Steps to validate the fix: * Launch Sirius with Yourkit (for example) * Close the Properties view (this view retains some ItemWrapper, that let think to memory leak, but the "leak" is true only until the next selection of an EObject or another ItemWrapper). * Import the project ModelingProjectWithTree (from ModelingProjectWithTree.zip) * Open the myTree representation * Look in Yourkit, there is only one instance of DAnalysisSessionImpl. This instance is retained by the SessionEditorInput that is itself retained by an EditorHistoryItem (you can do a memory snapshot to see that). * Close representation * Close the session (ie close the project) * Look in Yourkit, there is always one instance of DAnalysisSessionImpl (launch the garbage collector to be sure) but only retained by weak/soft references (you can do a memory snapshot to see that). The commit [1] is also a candidate for backport. This commit has been fixed without issue but during the same "tests" leak analysis. [1] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=9c70c327f2de38dae9e62d24644024696e11af5b Cloned as bug #456055 to backport both fixes (see comment 1 and comment 3) into Sirius 2.0.x. Created attachment 250072 [details]
ModelingProjectWithTree.zip
Verified on Sirius 3.0.0M6 Validated on Sirius 3.0.0 RC1 Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0. |