我正在使用 Cordova/Phonegap 2.2.0 编写应用程序
它在 LG Ally (Android 2.2.2) 上运行
该应用程序从 Web 服务器检索大量数据,并且在此过程中应用程序提前结束。我这样说而不是错误,因为我没有得到典型的 Android“应用程序停止响应”对话框。相反,应用程序退出并返回主屏幕。
日志显示以下消息:
D/DroidGap(4018): Paused the application!
D/CordovaWebView(4018): Handle the pause
W/dalvikvm(4018): ReferenceTable overflow (max=512)
W/dalvikvm(4018): Last 10 entries in JNI local reference table:
W/dalvikvm(4018): 502: 0x44ae70c8 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(4018): 503: 0x44c93538 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(4018): 504: 0x44c76b70 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(4018): 505: 0x44a64810 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(4018): 506: 0x449ef708 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(4018): 507: 0x449d06b8 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(4018): 508: 0x449cd330 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(4018): 509: 0x449cc198 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(4018): 510: 0x449cb4c8 cls=Ljava/lang/String; (28 bytes)
W/dalvikvm(4018): 511: 0x449ea780 cls=Landroid/webkit/WebViewCore; (132 bytes)
W/dalvikvm(4018): JNI local reference table summary (512 entries):
W/dalvikvm(4018): 496 of Ljava/lang/String; 28B (496 unique)
W/dalvikvm(4018): 15 of Ljava/lang/String; 36B (15 unique)
W/dalvikvm(4018): 1 of Landroid/webkit/WebViewCore; 132B
W/dalvikvm(4018): Memory held directly by tracked refs is 14560 bytes
E/dalvikvm(4018): Failed adding to JNI local ref table (has 512 entries)
I/dalvikvm(4018): "WebViewCoreThread" prio=5 tid=8 RUNNABLE
I/dalvikvm(4018): | group="main" sCount=0 dsCount=0 s=N obj=0x449ea828 self=0x1274c8
I/dalvikvm(4018): | sysTid=4025 nice=0 sched=0/0 cgrp=unknown handle=1221400
I/dalvikvm(4018): at android.webkit.WebViewCore.nativeHandleTouchEvent(Native Method)
I/dalvikvm(4018): at android.webkit.WebViewCore.access$3400(WebViewCore.java:52)
I/dalvikvm(4018): at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1159)
I/dalvikvm(4018): at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm(4018): at android.os.Looper.loop(Looper.java:123)
I/dalvikvm(4018): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:623)
I/dalvikvm(4018): at java.lang.Thread.run(Thread.java:1096)
E/dalvikvm(4018): VM aborting
我不确定这是超时问题还是设备内存不足或发生了什么。
任何帮助将不胜感激。
标记