| Summary: | [Performance] Editors Memory leaks | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | JBregnias <julien.bregnias.ext> | ||||||||
| Component: | Core | Assignee: | Cedric Dumoulin <cedric.dumoulin> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | major | ||||||||||
| Priority: | P1 | CC: | cedric.dumoulin, faure.tristan, mathieu.velten, raphael.faudou | ||||||||
| Version: | 0.8.1 | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | 356837, 368704, 371604, 371653, 384145, 384169 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
JBregnias
Created attachment 208870 [details]
the workaround for the patch
Created attachment 208872 [details]
the result of the memory leak analysis
The problem comes from a dispose problem for developers : when a tab is closed the different papyrus parts (inheriting from AbstractPart) are correctly updated and the closed one is disposed. when the "close current file" action is performed the different dispose methods are not closed because there is no links between the CTabItem (correctly disposed) and the diagram editor. the patch i attach provides a simple work around but it does not completely fix the memory leak. Cedric do you have any clue to provide a better way to fix this ? I attache too, one screenshot corresponding to the leak analysis the work around applied to the sources we are very concerned about this bug and I set a priority P1 to it. Created attachment 211811 [details]
mylyn/context/zip
context of commit
commited Cedric Dumoulin modifications to the 0.8.X branch memory leak in the DiagramEventBroker : some editpolicies are registering themselves as listeners but never unregistered in the deactivate. fixed on 0.8.X-EYY and trunk. |