[MEMORY ISSUE ON ANDROID] hi all, We're developing the application called Pippip at pippip.vn . It works very well on iOS but it has the problem on Android, it's out of memory when we load more large images, does anyone know how to fix it? Thanks all
-
1How are you loading the images? Are you using a list view? How many are there? whats the size of the image? Also are you testing on a real phone?jrichardlai– jrichardlai2016-05-12 04:23:33 +00:00Commented May 12, 2016 at 4:23
-
Yes, we;re using the list view. We load 50 images each time and the size of image is 2048 * 2048. We tested on the real phoneHau Vo– Hau Vo2016-05-16 09:56:57 +00:00Commented May 16, 2016 at 9:56
-
i'm having the same issue as I'm loading the images in the viewPager.. either the app crashes for out of memory else the images doesn't renderSrikanth Pai– Srikanth Pai2016-06-01 02:21:46 +00:00Commented Jun 1, 2016 at 2:21
-
I'm using React Native version 0.29.0 and also seeing this issue on android. Throwing OutOfMemoryError "Failed to allocate a 20 byte allocation with 0 free bytes and 3GB until OOM"Babs– Babs2016-07-15 22:45:38 +00:00Commented Jul 15, 2016 at 22:45
-
Did anyone fixed this problem ??Gaurav– Gaurav2017-04-18 06:00:45 +00:00Commented Apr 18, 2017 at 6:00
Add a comment
|
1 Answer
We had similar issues, fix here. Before rendering the full image, we compressed the photo based on the screen size to discard information that is not visible on the screen (resolution wise).