Q7

Investigate memory leak in graphiti

Details

  • Type: Task Task
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.2.8
  • Fix Version/s: 1.3.x
  • Component/s: Runtime
  • Labels:
    None
  • Test Mode:
    Manual

Description

  1. Use graphiti chess example as AUT.
  2. Use Yourkit java profiler

When launched from Q7, after each Graphiti editor open/close there are two instances of DomainEventDispatcher being left in memory and not being GCed. When launched without Q7, they are collected fine.

There are two possible places in Q7 which might cause this:

  1. SWTEventManager.menuSources – weak hash map where keys are menus and values are controls. So that when control has a strong reference on menu, items won't be collected. However this map is being cleaned during recording, but starting and ending recording does not solve the problem, so leak is somewhere else.
  2. TeslaEventManager.popupMenuParents – hash map which is never being cleaned.

Activity

There are no comments yet on this issue.

People

  • Assignee:
    komaz
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    31/Oct/12 2:33 PM
    Updated:
    16/Jan/13 5:54 PM