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

Memory leak in MVVM binding

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.3
    • Fix Version/s: 8.0.1, 7.0.8
    • Component/s: Databind 2
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.0.1 S1

      Description

      Hi.

      We use ZK framework in production and we identified severe memory leaks in MVVM binding.

      I made example, It's available on link https://github.com/samuelbr/zk-mvvm-memoryleak.

      Steps to reproduce:
      1. Deploy application.
      2. Click multiple times on a button
      3. A lebel with a number above the button is count of components in the TrackerImpl component map.

      Memory leak is caused by rising number of components in the TrackerImpl field _compMap. Potentional problem is in a combination of using a ListModelList methods (add, clear) and using ZK postNotifyChange annotation (or similar method in BindUtils class).

        Attachments

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            sbglobesy sbglobesy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h