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

Android : "Out of Memory" issue in ti.map when getting directions between far places after 2-3 times

    Details

      Description

      We get "Out of Memory" issue in ti.map when getting directions between far places after 2-3 times.

      Here are the error logs:

      09-12 15:36:02.483: D/libgps(490): proxy_gps_sv_status_cb()
      09-12 15:36:02.723: I/dalvikvm-heap(29487): Clamp target GC heap from 71.991MB to 64.000MB
      09-12 15:36:02.723: D/dalvikvm(29487): GC_BEFORE_OOM freed <1K, 1% free 65382K/65536K, paused 371ms, total 371ms
      09-12 15:36:02.723: E/dalvikvm-heap(29487): Out of memory on a 80-byte allocation.
      09-12 15:36:02.723: I/dalvikvm(29487): Can't dump thread 1: threadObj not set
      09-12 15:36:02.723: W/dalvikvm(29487): Exception thrown (Ljava/lang/OutOfMemoryError;) while throwing internal exception (Ljava/lang/OutOfMemoryError;)
      09-12 15:36:03.073: I/dalvikvm-heap(29487): Clamp target GC heap from 71.991MB to 64.000MB
      09-12 15:36:03.073: D/dalvikvm(29487): GC_FOR_ALLOC freed <1K, 1% free 65382K/65536K, paused 347ms, total 347ms
      09-12 15:36:03.423: I/dalvikvm-heap(29487): Clamp target GC heap from 71.991MB to 64.000MB
      09-12 15:36:03.423: D/dalvikvm(29487): GC_FOR_ALLOC freed 0K, 1% free 65382K/65536K, paused 352ms, total 352ms
      09-12 15:36:03.423: I/dalvikvm-heap(29487): Forcing collection of SoftReferences for 36-byte allocation
      

      Steps to reproduce :

      1. Import the attached project in Titanium Studio.

      2. Run and Launch it in Nexus 7.

      3. Two textfields would be shown. Enter 'Danbury' and 'LosAngeles' in those textfields.

      4. Click on 'Get Directions' button.A map with the appropriate route would be shown.

      5. Repeat step 4 approx 2-3 times. Application crashed due to memory issue.

      Note: If the same steps followed to get the directions between nearer places, the crash did not happen.

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              mpathak Meenakshi Pathak
            • Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code