Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23715

Android: Memory leak when window has listView inside

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.1.0
    • Component/s: Android
    • Environment:

      Titanium SDK: 5.2.2
      Moto G 3rd Gen Android 6.0

    • Story Points:
      8
    • Sprint:
      2016 Sprint 25 SDK

      Description

      Problem: After closing a window with a listView inside its activity never gets finished causing a memory leak. This occurs even if the listView has no elements or listeners in its template. Eventually all this leaked memory causes the application to crash.

      Steps to reproduce:
      1. Start the application (attached listViewMemoryLeak.js script)
      2. Create a heap dump in DDMS
      3. Tap the 'ListView' or 'ListView empty' buttons
      4. Tap the back button
      5. Cause GC
      6. Create a second heap dump in DDMS
      7. Do a comparison of the two heap dumps with Eclipse Memory Analyzer. The second heap dump has multiple new and living objects compared to the first heap dump. If you tap the 'View' or 'ScrollView' buttons instead and repeat the same process you'll notice that this does not occur.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                mateuskamoei Mateus Kamoei
                Reviewer:
                Frankie Merzadyan (Inactive)
                Tester:
                Samir Mohammed
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-9972
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code