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

Memory leak in MVVM binding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 8.0.1, 7.0.8
    • 7.0.3
    • Databind 2
    • None
    • ZK 8.0.1 S1

      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).

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

              Created:
              Updated:
              Resolved:

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