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

Number of NoDOM increases unexpectedly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 9.6.4
    • 9.6.3
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. click refresh button several times
      2. run VisualVM, do a heap dump of the application, check the number of NoDOM object

      Current Result

      the number of NoDOM objects increases after each refresh

      Expected Result

      • there should be no NoDOM since the shadow elements have a parent component
      • the number of NoDOM object should not increase and should be released

      Debug Information

      • The following cases don't cause the bug
                <forEach items="@init(vm.numbers)">
                    <apply template="test"/>
                </forEach>
                <template name="test">
                    ${each}
                </template>
        
                <forEach items="@init(vm.numbers)">
                    <choose>
                        <when test="false">
                            <div style="color:blue">${each}</div>
                        </when>
                        <otherwise>
                            <div style="color:orange">${each}</div>
                        </otherwise>
                    </choose>
                </forEach>
        

      Workaround

              <forEach items="@init(vm.numbers)">
                  <if test="@init(each % 2 eq 0)">
                      <div style="color:blue">${each}</div>
                  </if>
                  <if test="@init(each % 2 ne 0)">
                      <div style="color:orange">${each}</div>
                  </if>
              <forEach items="@init(vm.numbers)">
      

        1. ZK5399VM.java
          0.5 kB
        2. zk-5399.zul
          0.7 kB
        3. heapDump.jpg
          heapDump.jpg
          158 kB

            DevChu DevChu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: