cordova-crosswalk-engine icon indicating copy to clipboard operation
cordova-crosswalk-engine copied to clipboard

App crashes on Android device

Open douglasvinter opened this issue 9 years ago • 4 comments

Hi,

I have a Enterprise App which crashes when parsing a 3mb (or bigger) JSON file from a REST interface. The app suddenly starts to eat the device memory ram, hitting ~600Mb than it crashes.

Does the Javascript heatsize hit its limmit?

11-09 12:10:09.931 F/chromium( 8142): [FATAL:memory.cc(19)] Out of memory. size=194256896 11-09 12:10:09.931 F/chromium( 8142): 11-09 12:10:09.931 F/libc ( 8142): Fatal signal 6 (SIGABRT), code -6 in tid 8194 (Chrome_InProcRe) 11-09 12:10:09.991 F/DEBUG ( 3058): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 11-09 12:10:09.991 F/DEBUG ( 3058): Build fingerprint: 'samsung/zerofltedv/zeroflte:6.0.1/MMB29K/G920IDVS3EPF6:user/release-keys' 11-09 12:10:09.991 F/DEBUG ( 3058): Revision: '11' 11-09 12:10:09.991 F/DEBUG ( 3058): ABI: 'arm' 11-09 12:10:09.991 F/DEBUG ( 3058): pid: 8142, tid: 8194, name: Chrome_InProcRe >>> com.lenovo.xmobile <<< 11-09 12:10:09.991 F/DEBUG ( 3058): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 11-09 12:10:10.061 F/DEBUG ( 3058): Abort message: '[FATAL:memory.cc(19)] Out of memory. size=194256896 11-09 12:10:10.061 F/DEBUG ( 3058): 11-09 12:10:10.061 F/DEBUG ( 3058): ' 11-09 12:10:10.061 F/DEBUG ( 3058): r0 00000000 r1 00002002 r2 00000006 r3 d54bf978 11-09 12:10:10.061 F/DEBUG ( 3058): r4 d54bf980 r5 d54bf930 r6 0000000c r7 0000010c 11-09 12:10:10.061 F/DEBUG ( 3058): r8 f73d9ec0 r9 d54beb3c sl 00000000 fp 0000000a 11-09 12:10:10.061 F/DEBUG ( 3058): ip 00000006 sp d54be570 lr f739f355 pc f73a1744 cpsr 480f0010 11-09 12:10:10.061 F/DEBUG ( 3058): 11-09 12:10:10.061 F/DEBUG ( 3058): backtrace: 11-09 12:10:10.061 F/DEBUG ( 3058): #00 pc 00042744 /system/lib/libc.so (tgkill+12) 11-09 12:10:10.061 F/DEBUG ( 3058): #01 pc 00040351 /system/lib/libc.so (pthread_kill+32) 11-09 12:10:10.061 F/DEBUG ( 3058): #02 pc 0001ca8b /system/lib/libc.so (raise+10) 11-09 12:10:10.061 F/DEBUG ( 3058): #03 pc 00019d09 /system/lib/libc.so (__libc_android_abort+34) 11-09 12:10:10.061 F/DEBUG ( 3058): #04 pc 0001754c /system/lib/libc.so (abort+4) 11-09 12:10:10.061 F/DEBUG ( 3058): #05 pc 0025b01d /data/app/com.lenovo.xmobile-2/lib/arm/libxwalkcore.so 11-09 12:10:10.551 F/DEBUG ( 3058): 11-09 12:10:10.551 F/DEBUG ( 3058): Tombstone written to: /data/tombstones/tombstone_01 11-09 12:10:10.551 E/DEBUG ( 3058): AM write failed: Broken pipe 11-09 12:10:10.551 E/ ( 3058): ro.product_ship = true 11-09 12:10:10.551 E/ ( 3058): ro.debug_level = 0x4f4c 11-09 12:10:10.551 E/ ( 3058): sys.mobilecare.preload = false 11-09 12:10:10.551 W/ActivityManager( 3488): Force finishing activity com.lenovo.xmobile/.MainActivity

douglasvinter avatar Nov 09 '16 20:11 douglasvinter

Could you please try it without Crosswalk plugin, and then file a bug on JIRA https://crosswalk-project.org/jira

fujunwei avatar Nov 10 '16 00:11 fujunwei

I've tested without crosswalk and it works fine on Android, but anywais it crashes on iOS.

douglasvinter avatar Nov 11 '16 16:11 douglasvinter

Crosswalk plugin can't support ios platform.

fujunwei avatar Nov 14 '16 02:11 fujunwei

Yes, I'm aware of it, was just pointing out.

douglasvinter avatar Nov 16 '16 12:11 douglasvinter