Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-456

errai-ui-binder leaks references to org.jboss.errai.ioc.rebind.ioc.injector.api.InjectionContext

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.2.0.CR2
    • Component/s: None
    • Labels:
      None

      Description

      Errai's UiBinder module leaks a reference to InjectionContext every time its IOCExtension is loaded which causes a big memory leak as the InjectionContext instances store references to all injectors (including the QualifiedTypeInjectorDelegates). The injectors in turn reference all the GWTClass and BuildMetaClass instances.

      When starting the errai-mvp-demo, we start off with 1 InjectionContext instance and ~15000 GWTClass instances, after the first refresh we end up with 2 InjectionContext instances and ~26000 GWTClass instances.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                csa Christian Sadilek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: