2

我有一个 Cordova 7.0.1 应用程序,在使用相机功能时偶尔会崩溃 - 我得到了 adb logcat 的输出来查看从 adb 返回的错误。

08-10 17:14:36.321   493   493 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_07
08-10 17:14:36.321   493   493 E DEBUG   : AM write failed: Broken pipe
08-10 17:14:36.321   493   493 E         : ro.product_ship = true
08-10 17:14:36.321   493   493 E         : ro.debug_level = 0x4f4c
08-10 17:14:36.321   493   493 E         : sys.mobilecare.preload = false
08-10 17:14:36.331  3739  3739 E audit   : type=1701 msg=audit(1502381676.331:336): auid=4294967295 uid=10202 gid=10202 ses=4294967295 subj=u:r:untrusted_app:s0:c512,c768 pid=10658 comm="Chrome_InProcRe" reason="memory violation" sig=4
08-10 17:14:36.431   438   438 E lowmemorykiller: Error writing /proc/10614/oom_score_adj; errno=22

我在运行 Android 6.0.1 的三星 Galaxy Note 4(大约 3 岁)上运行它 - 谁能建议最好的方法来防止这个“低内存杀手”杀死这个应用程序?

  • 科尔多瓦信息

    Node version: v6.10.3
    Cordova version: 7.0.1
    
  • 科尔多瓦插件

    cordova-plugin-camera 2.4.1 "Camera"
    cordova-plugin-compat 1.1.0 "Compat"
    cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine"
    cordova-plugin-whitelist 1.3.0 "Whitelist"
    

注意 - 这是使用 Crosswalk WebView 引擎而不是默认的 WebView(由于另一个 Angular 指令的问题)

从 2017 年 7 月 1 日起,手机已更新至 Android 安全补丁级别 - 该应用程序本身作为唯一在前台运行的应用程序运行。

--更新-我设法再次使应用程序崩溃这里是logcat,如果它有帮助的话

08-11 09:37:52.270 11740 11776 F libc    : Fatal signal 4 (SIGILL), code 1, fault addr 0x9d151ea8 in tid 11776 (Chrome_InProcRe)
08-11 09:37:52.340   484   484 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-11 09:37:52.340   484   484 F DEBUG   : Build fingerprint: 'samsung/trltexx/trlte:6.0.1/MMB29M/N910FXXS1DQG5:user/release-keys'
08-11 09:37:52.340   484   484 F DEBUG   : Revision: '0'
08-11 09:37:52.340   484   484 F DEBUG   : ABI: 'arm'
08-11 09:37:52.340   484   484 F DEBUG   : pid: 11740, tid: 11776, name: Chrome_InProcRe  >>> com.abc.abc.123 <<<
08-11 09:37:52.340   484   484 F DEBUG   : signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x9d151ea8
08-11 09:37:52.410   484   484 F DEBUG   :     r0 98efb93c  r1 03c92000  r2 0d7bc000  r3 08000000
08-11 09:37:52.410   484   484 F DEBUG   :     r4 9f3e32b8  r5 03c8d000  r6 00000000  r7 00000000
08-11 09:37:52.410   484   484 F DEBUG   :     r8 03c92000  r9 94947834  sl 03c8c400  fp 9f3e32b8
08-11 09:37:52.410   484   484 F DEBUG   :     ip 9d151e99  sp 98efb938  lr 9d151ea9  pc 9d151ea8  cpsr 280d0030
08-11 09:37:52.420   484   484 F DEBUG   :
08-11 09:37:52.420   484   484 F DEBUG   : backtrace:
08-11 09:37:52.420   484   484 F DEBUG   :     #00 pc 0023fea8  /data/app/com.abc.abc.123-1/lib/arm/libxwalkcore.so
08-11 09:37:52.420   484   484 F DEBUG   :     #01 pc 0023fea5  /data/app/com.abc.abc.123-1/lib/arm/libxwalkcore.so
08-11 09:37:53.670   484   484 F DEBUG   :
08-11 09:37:53.670   484   484 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_09
08-11 09:37:53.670   484   484 E DEBUG   : AM write failed: Broken pipe
08-11 09:37:53.670   484   484 E         : ro.product_ship = true
08-11 09:37:53.670   484   484 E         : ro.debug_level = 0x4f4c
08-11 09:37:53.670   484   484 E         : sys.mobilecare.preload = false
08-11 09:37:53.700  3709  3709 E audit   : type=1701 msg=audit(1502440673.680:286): auid=4294967295 uid=10202 gid=10202 ses=4294967295 subj=u:r:untrusted_app:s0:c512,c768 pid=11776 comm="Chrome_InProcRe" reason="memory violation" sig=4
08-11 09:37:53.850  1541 13508 E JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 104)
08-11 09:37:53.860   439   439 E lowmemorykiller: Error writing /proc/11740/oom_score_adj; errno=22
08-11 09:37:53.890  1541  2341 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=20, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
08-11 09:37:56.120 13519 13519 E TZ_CCM_SERVER: Only 'CCM' are supported
4

0 回答 0