Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

App slows down over the period on Android (Memory leak?) How to fix it

$
0
0

Hi there,

We are building one app with two screens and master detail page

  1. Categories in Master Detail page – We have 6 categories in hamburger menu.. Clicking on each category will show below page
  2. List view which loads 5 objects of type article (having title, body, datestamp, author) in that particular category.
  3. Carousel view – Clicking on any article will show the same article with carousel view so if user swipes left or right, it loads previous or next article respectively.

The app works well and is very snappy for first few user interactions (say first 10-20 swipes, touches and navigations in between list views and category switches). However the app starts becoming slower and slower over the period. At some point, it becomes unusable. This happens only on Android devices and the app works quite flawlessly on iOS and WP.

You can observe the memory is being loaded and not being free everytime I change the screen, or change the article....

Here are few logcats I could get from my test devices.

  1. OnePlus One (Android 5.0.2 with ART) – http://pastebin.com/kdsLDV7d
  2. Lenovo A6000 (Android Kitkat 4.4.4) - http://pastebin.com/Daagdrjq

Little help would be great.


Viewing all articles
Browse latest Browse all 77050

Trending Articles