fire-app-builder icon indicating copy to clipboard operation
fire-app-builder copied to clipboard

App crashes with OutOfMemoryError

Open EugeneSmoliy opened this issue 8 years ago • 3 comments

When loading large json feed (65 mb) app crashes in NetworkUtils.java (line 68) with following error : Throwing OutOfMemoryError "Failed to allocate a 171966472 byte allocation with 4186328 free bytes and 103MB until OOM"

EugeneSmoliy avatar Dec 23 '16 16:12 EugeneSmoliy

We don’t have a set max size since it can very per device, depending on what’s already installed, etc. What device is this crash happening on? How many items in the feed? Is there any way you can make the feed smaller by only including the necessary items for fire-app-builder?

brcox avatar Jan 24 '17 22:01 brcox

Crash happened on all devices we tried this on. The problem seems to be that all feed is put into one StringBuilder. Probably, method of getting data could be somehow improved to resolve this issue.

EugeneSmoliy avatar Jan 25 '17 15:01 EugeneSmoliy

Thanks for the feedback. We will need to look into this in a future release.

brian-ross avatar Dec 14 '18 21:12 brian-ross