Skip to content

PVReaderDirector never stopped on OPIView disposed (and its IPV) #830

@DjThunder

Description

@DjThunder

Scenario:

  • I open a series of OPIView (and their PV) in runtime mode (contains 3 Text Update and 3 XYGraph using 3 PV)
  • I close the view and change the perspective
  • I go back to the perspective with OPIView (so it reload them, faster than first time because static backed thread pool are already created)
  • I repeat this action for a while and I end on a clean environment without any view - call gc - sound to be a memory leak with XYGraphModel, in PVMgr Worker 4 -> ScheduledThreadPoolExecutor -> ScheduleFuture (according to MemoryAnalyzerTool)
  • Now I can see the increasing memory, as if IPV, or Director, or Recipe where never closed.

Any idea on how to close an OPIView when disposing a perspective that contains such displays ?
(The IPV sounds to be stopped in case of AbstractBaseEditPart - edit mode - partDeactivated event, but not the case for runtime mode).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions