Ionic 2 app crashes


#1

Hi
After some actions in my app (mainly moving between tabs) my app crashes.
This crash happens randomly and I cant seem to find the source of my memory leak if any…
Below is my part of my logcat file:

E/audit ( 4069): type=1701 msg=audit(1486473584.861:2798): auid=4294967295 uid=10214 gid=10214 ses=4294967295 subj=u:r:untrusted_app:s0 pid=4414 comm="RenderThread" reason="memory violation" sig=11

E/SharedPreferencesImpl( 3178): Couldn’t create directory for SharedPreferences file shared_prefs/log_files.xml

I/BootReceiver( 3178): Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)

W/ActivityManager( 3178): Force finishing activity com.playtech.tmsapp/.MainActivity


#2

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 0000000000000000EDACEF0D000000000000000000000000C005000060020000EDACEF0DEDACEF0DEDACEF0D01

Thanks