2012-09-03 132 views
0

的我有需要同步,它與Android聯繫人列表有3代數據庫表的應用程序。通過聯繫人列表和Android的內存不足的錯誤

我循環創建於各行的自定義對象返回和比較對象的屬性與我有什麼存儲在我的應用程序表,以接觸。

此任務在一個異步任務執行。

它正常工作,對我來說,第一次運行時,但是如果我離開應用程序和回來一次它打破,並返回以下錯誤更多。有任何想法嗎?

09-03 06:42:19.070: E/IMemory(31018): cannot dup fd=1023, size=2097152, err=0 (Too many open files) 

09-03 06:42:19.070: E/IMemory(31018): cannot map BpMemoryHeap (binder=0x1197738), size=2097152, fd=-1 (Bad file number) 

09-03 06:42:19.070: E/JavaBinder(31018): *** Uncaught remote exception! (Exceptions are not yet supported across processes.) 

09-03 06:42:19.070: E/JavaBinder(31018): java.lang.RuntimeException: No memory in memObj 
09-03 
06:42:19.070: E/JavaBinder(31018): at android.database.CursorWindow.native_init(Native Method) 
09-03 
06:42:19.070: E/JavaBinder(31018): at android.database.CursorWindow.<init>(CursorWindow.java:518) 
09-03 
06:42:19.070: E/JavaBinder(31018): at android.database.CursorWindow.<init>(CursorWindow.java:27) 
09-03 
06:42:19.070: E/JavaBinder(31018): at android.database.CursorWindow$1.createFromParcel(CursorWindow.java:493) 

09-03 06:42:19.070: E/JavaBinder(31018): at android.database.CursorWindow$1.createFromParcel(CursorWindow.java:496) 
09-03 06:42:19.070: E/JavaBinder(31018): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:103) 
09-03 06:42:19.070: E/JavaBinder(31018): at android.os.Binder.execTransact(Binder.java:288) 
09-03 06:42:19.070: E/JavaBinder(31018): at dalvik.system.NativeStart.run(Native Method) 

回答

1
E/IMemory(31018): cannot dup fd=1023, size=2097152, err=0 (Too many open files) 

android.database.CursorWindow.native_init(Native Method) 

這兩行建議你搞亂了光標的東西,如不關閉等,

我建議關閉所有遊標正確,並觀察應用程序的行爲。