Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6924

Memory leak navigating between native and hybrid pages in WP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Master
    • None
    • None

    Description

      Context: Modify HelloWorld Cordova app for WP8 by adding a native page as the start page. Then give it a button to navigate to the Cordova page, MainPage.xaml

      Launch application to opening page (native).
      Click button to go to Cordova page.
      Click hardware back button to go to opening page.
      Repeat 4 times.

      When inspecting the memory profile, you see a steady increase in memory, and 5 copies of MainPage which have not been garbage collected (even if you force garbage collection).

      If this is done enough times the app crashes due to surpassing memory limit.

      Attachments

        1. memleak.zip
          172 kB
          Staci Cooper

        Activity

          People

            staci.c Staci Cooper
            staci.c Staci Cooper
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: