Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-2830

App complaining of memory issues with 64MB left remaining that causes camera to display black screen after editing

    Details

      Description

      When testing app with camera feature on 1.7.3, black screen after taking picture/editing doesn't happen.

      Now after upgrading 1.7.6 nightly, black screen appears right after taking picture or editing. Weird thing we found is device complains about running out of memory with 64MB remaining:

      2011-11-19 03:57:40 Received memory warning. Level=1
      2011-11-19 03:57:40 [INFO] Due to memory conditions, 0 of 0 image cache entries were unloaded from cache.
      2011-11-19 03:57:41 [DEBUG] Remaining memory: 63.90625

      After restarting the device and app started with 256MB+ memory left, black screen after taking/editing picture didn't show up.

      We run further tests, opened several apps on phone and after opening several number of apps, black screen after taking picture/edit appeared on 1.7.6 build with the following log:

      2011-11-19 04:24:39 [Warning] IORegisterForSystemPower failed
      2011-11-19 04:24:41 [DEBUG] Remaining memory: 8.3046875
      2011-11-19 04:24:44 Received memory warning. Level=1
      2011-11-19 04:24:44 [INFO] Due to memory conditions, 0 of 0 image cache entries were unloaded from cache.

      We installed version which was built using 1.7.3 and black screen after taking picture didn't appear. We noticed that remaining memory when app starts is usually higher:

      2011-11-19 04:47:01 [DEBUG] Remaining memory: 83.10546875

      We tested application built with 1.7.6 again just to confirm how much memory is left when app start and we got this:

      2011-11-19 04:58:25 [DEBUG] Remaining memory: 17.36328125

      and after taking a picture:

      2011-11-19 04:58:55 [Warning] IORegisterForSystemPower failed
      2011-11-19 04:58:55 [DEBUG] Remaining memory: 11.00390625
      2011-11-19 04:58:56 Received memory warning. Level=1
      2011-11-19 04:58:56 [INFO] Due to memory conditions, 0 of 0 image cache entries were unloaded from cache.

      The summary is memory management in 1.7.3 is better compare to 1.7.6 nightly. Also we noticed that app starts with bigger memory on 1.7.3 compare to 1.7.6 although it might not be accurate.

      Thanks
      Rey

        Attachments

          Activity

            People

            • Assignee:
              pdowsett Paul Dowsett
              Reporter:
              reyjexter Rey Bumalay
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration