Apps gets slower and finally crashes

I ve developped an Ionic app. Central page is a leaflet map. A week ago I discovered that the app, while testing strong, becomes slow over time. Finally the app stops and crashes. I tried to debug what was going on. A few hints on some forums were pointing to OutOfMemory. I started monitor from the Android sdk/tools. Heap use was increasing and decreasing during startup. For me this seems normal because the app needs to load some big files and convert them to overlays and add them to my map. After initializing is finished the heap size was about 50%. While testing the heap size did not change very much. After all the heap stays around 50%. But the app gets slower and slower and stopped finally without serious errors in the log.
Is there somebody in this community who can give me a hint were to look or how to debug . After some days trying to find what is the reason for this crashing I’m stuck for now.

I hope to find somebody with a good solution fir this difficult problem

Hi,

Did you find any solution for your issue ? I am facing the same kind of issue. i’ve used ionic’s infinite scroll to load text/image/video in a list. App works fine on all ios and android devices but it crashes on Nexus 6(7.1.1) while scrolling. It crashes on real device only not emulator. Below is the logcat of the crash:

05-03 12:12:34.089 13695-13820/com.swingbyswing.clubby W/Adreno-GSL: <sharedmem_gpumem_alloc_id:2372>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
05-03 12:12:34.090 13695-13820/com.swingbyswing.clubby E/Adreno-GSL: <gsl_memory_alloc_pure:2115>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
05-03 12:12:34.094 13695-13820/com.swingbyswing.clubby W/Adreno-GSL: <sharedmem_gpumem_alloc_id:2372>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
05-03 12:12:34.095 13695-13820/com.swingbyswing.clubby E/Adreno-GSL: <gsl_memory_alloc_pure:2115>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
05-03 12:12:34.105 13695-13820/com.swingbyswing.clubby W/Adreno-GSL: <sharedmem_gpumem_alloc_id:2372>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
05-03 12:12:34.105 13695-13820/com.swingbyswing.clubby E/Adreno-GSL: <gsl_memory_alloc_pure:2115>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
05-03 12:12:34.110 13695-13820/com.swingbyswing.clubby E/chromium: [ERROR:texture_manager.cc(3408)] [.RenderWorker-0x8099dc00]GL ERROR :GL_OUT_OF_MEMORY : glTexImage2D:
05-03 12:12:34.115 13695-13820/com.swingbyswing.clubby E/chromium: [ERROR:gles2_cmd_decoder.cc(5409)] Error: 5 for Command kTexImage2D
05-03 12:12:34.116 13695-13820/com.swingbyswing.clubby E/chromium: [ERROR:gles2_cmd_decoder.cc(4382)] GLES2DecoderImpl: Trying to make lost context current.
05-03 12:12:34.249 13695-13739/com.swingbyswing.clubby E/chromium: [ERROR:gles2_cmd_decoder.cc(9881)] [GroupMarkerNotSet(crbug.com/242999)!:50B09379]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.

--------- beginning of crash
05-03 12:12:34.418 18423-13739/? A/google-breakpad: -----BEGIN BREAKPAD MICRODUMP-----
V AndroidWebView:63.0.3239.111
O A arm 04 armv7l google/shamu/shamu:7.1.1/N6F27M/4299435:user/release-keys
P webview
R 0000000B SIGSEGV 00000004
G
05-03 12:12:34.437 18423-13739/? A/google-breakpad: H 0083C000 BE984000 01A4 03A90000 16EEA000 0C:17 0D:1C 0E:29 0F:40 10:1B 11:27 12:28 13:7A 14:08 15:07 16:0B 17:06 18:03 19:01
05-03 12:12:34.439 18423-13739/? A/google-breakpad: S 0 86CC90F0 86CC9000 00002000
05-03 12:12:34.440 18423-13739/? A/google-breakpad: S 86CC9000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000EDACEF0D0000000000000000C005000060020000EDACEF0DEDACEF0DEDACEF0D3091CC86EDACEF0D02000000000000000E000000130200003512F798EDACEF0D02000000E10D000000000000EDACEF0DEDACEF0DEDACEF0DEDACEF0D00000000EDACEF0D00000000000000000000000000000000000000000000000000000000000000000000000000000000
S 86CC9180

Thanks