android - Native heap continues to grow by regular amounts though java heap holds steady, then fatal signal 6 crash -


my android app loads great deal of images using universal image loader in series of fragments. i've checked hprofs in memory analyzer , after fixing various leaks not seeing more. ddms java heap size increases bit around 16, meanwhile i'm checking debug.getnativeheapallocatedsize , seeing inflate around 90mb each fragment replace. around 600mb native heap app crashes fatal signal 6 sigabrt, while trying build image-heavy ui on data return. there's never out of memory error.

is native heap increase causing fatal signal 6 crash, or stalled ui? , what's best way debug continued increase in native heap?

the images red herring. fatal 6 indeed related ever-growing native heap.

besides lots of images, app created lot of custom textviews each screen, , previous developer had typeface.createfromasset call in init these custom textviews. thousands of typefaces being added native heap. lazily creating static typeface once fixed this.

to debug, best approach remove suspect. after hours of fiddling images , universalimageloader config settings, took out image loading (should have done first) , still saw heap grow out of control - had elsewhere, , minutes find.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -