Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4722

_assocFormSaveBindings not always cleaned (causing memory leak + NPEs)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.5.0.1
    • Fix Version/s: 9.5.1
    • Component/s: Databind 2
    • Security Level: Jimmy
    • gh.sprint.customfield.default.name:
      ZK 9.5.1 S1

      Description

      Steps to Reproduce

      run the attached example
      click the save button (multiple times)

      Current Result

      the collection BinderImpl._formAssociatedSaveBindings is growing, containing SavePropertBindings to detached componets

      -> causing memory leak
      (NPEs in more specific cases)

      Expected Result

      bindings of detached components should be removed

      Debug Information

      The binding is added for the outerVM but attempted to remove from the innerVM
      -> leaving the stale reference on the outer binder

      Workaround

        Attachments

          Activity

            People

            Assignee:
            DevChu DevChu
            Reporter:
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: