1

在我的 Galaxy Nexus 上进行测试时,我通过按返回按钮退出了应用程序,然后当我再次启动应用程序时,仅几秒钟后,它导致应用程序进入 FC 并生成错误报告。任何人都可以帮助我,它只发生在 Glaxy Nexus 上。Nexus 系列设备打开连接有什么限制吗?为什么会这样?提前致谢。

finish_activity_delayed start Activity_NewsFeed.class
[ 12-21 19:43:11.567 13784:13795 I/ActivityManager ]
START u0 {flg=0x10000 cmp=com.platinumapps.facedroid/com.platinumapps.activities.Activity_NewsFeed (has extras)} from pid 2384
[ 12-21 19:43:11.622  2384:14125 E/CursorWindow ]
Could not allocate CursorWindow '/data/data/com.platinumapps.facedroid/databases/db_facedroid' of size 2097152 due to error -24.
[ 12-21 19:43:11.677  2384:14125 W/dalvikvm ]
threadid=44: thread exiting with uncaught exception (group=0x411e8930)
[ 12-21 19:43:11.731  2384:14147 E/NativeCrypto ]
AppData::create pipe(2) failed: Too many open files
[ 12-21 19:43:11.755  2384:14125 W/System.err ]
android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. 
[ 12-21 19:43:11.770  2384:14146 E/NativeCrypto ]
AppData::create pipe(2) failed: Too many open files
[ 12-21 19:43:11.833  2384: 2387 D/dalvikvm ]
GC_CONCURRENT freed 660K, 28% free 48158K/65972K, paused 14ms+22ms, total 189ms
[ 12-21 19:43:11.833  2384: 2384 D/dalvikvm ]
WAIT_FOR_CONCURRENT_GC blocked 154ms
[ 12-21 19:43:11.833  2384:14130 D/dalvikvm ]
WAIT_FOR_CONCURRENT_GC blocked 54ms
[ 12-21 19:43:11.841  2384:14125 D/dalvikvm ]
WAIT_FOR_CONCURRENT_GC blocked 59ms
[ 12-21 19:43:11.856  2384:14125 W/System.err ]
    at android.database.CursorWindow.<init>(CursorWindow.java:104)
[ 12-21 19:43:11.856  2384:14125 W/System.err ]
    at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198)
[ 12-21 19:43:11.856  2384:14125 W/System.err ]
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:139)
[ 12-21 19:43:11.856  2384:14125 W/System.err ]
    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
[ 12-21 19:43:11.856  2384:14125 W/System.err ]
    at com.platinumapps.friendlist.BLL_Friendlist.isTableEmpty(BLL_Friendlist.java:719)
[ 12-21 19:43:11.950  2384:14147 E/NativeCrypto ]
AppData::create pipe(2) failed: Too many open files
[ 12-21 19:43:11.989  2384:14146 E/NativeCrypto ]
AppData::create pipe(2) failed: Too many open files
[ 12-21 19:43:12.028  2384:14125 W/System.err ]
    at com.platinumapps.activities.Activity_NewsFeed$1.run(Activity_NewsFeed.java:110)
[ 12-21 19:43:12.028  2384:14125 W/System.err ]
    at java.lang.Thread.run(Thread.java:856)
[ 12-21 19:43:12.028  2384:14125 D/FlurryAgent ]
Error logged: uncaught
[ 12-21 19:43:12.028  2384:14125 W/System.err ]
android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. 
[ 12-21 19:43:12.099 13784:13797 W/ActivityManager ]
Activity pause timeout for ActivityRecord{41d4f110 u0 com.platinumapps.facedroid/com.platinumapps.activities.Splash_Activity}
[ 12-21 19:43:12.138  2384:14147 W/System.err ]
    at javax.net.ssl.SSLException: Unable to create application data
[ 12-21 19:43:12.169  2384:14125 W/System.err ]
android.database.CursorWindow.<init>(CursorWindow.java:104)
[ 12-21 19:43:12.169  2384:14146 W/System.err ]
    at  at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198)javax.net.ssl.SSLException: Unable to create application data
[ 12-21 19:43:12.169  2384:14146 W/System.err ]
    at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)
[ 12-21 19:43:12.169  2384:14146 W/System.err ]
    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:378)
[ 12-21 19:43:12.169  2384:14146 W/System.err ]
    at libcore.net.http.HttpConnection.setupSecureSocket(HttpConnection.java:209)
[ 12-21 19:43:12.169  2384:14146 W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:478)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:442)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:282)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:177)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:271)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at com.facebook.android.Util.openUrl(Util.java:295)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at com.facebook.android.Facebook.request(Facebook.java:697)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at com.facebook.android.AsyncFacebookRunner$2.run(AsyncFacebookRunner.java:312)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)
[ 12-21 19:43:12.184  2384:14146 D/AsynFacebookRunner ]
Unable to create application data
[ 12-21 19:43:12.184  2384:14146 D/BaseRequestListener ]
Message:Unable to create application data Cause: null
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:378)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at libcore.net.http.HttpConnection.setupSecureSocket(HttpConnection.java:209)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:478)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:442)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:282)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:177)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:271)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
javax.net.ssl.SSLException: Unable to create application data
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:378)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpConnection.setupSecureSocket(HttpConnection.java:209)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:478)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect(HttpsURLConnectionImpl.java:442)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:282)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:177)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at libcore.net.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:271)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at com.facebook.android.Util.openUrl(Util.java:295)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at com.facebook.android.Facebook.request(Facebook.java:697)
[ 12-21 19:43:12.184  2384:14146 W/System.err ]
    at com.facebook.android.AsyncFacebookRunner$2.run(AsyncFacebookRunner.java:312)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at com.facebook.android.Util.openUrl(Util.java:295)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at com.facebook.android.Facebook.requestRestApi(Facebook.java:708)
[ 12-21 19:43:12.184  2384:14147 W/System.err ]
    at com.facebook.android.AsyncFacebookRunner$3.run(AsyncFacebookRunner.java:370)
[ 12-21 19:43:12.184  2384:14147 E/stream   ]
Network Error:Unable to create application data
[ 12-21 19:43:12.231  2384:14125 W/System.err ]
[ 12-21 19:43:12.286  2384:14125 W/System.err ]
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:139)
[ 12-21 19:43:12.333  2384: 2384 I/Choreographer ]
Skipped 72 frames!  The application may be doing too much work on its main thread.
[ 12-21 19:43:12.356 16084:16088 D/dalvikvm ]
GC_CONCURRENT freed 466K, 8% free 9497K/10232K, paused 3ms+2ms, total 29ms
[ 12-21 19:43:12.434  2384:14125 W/System.err ]
    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
[ 12-21 19:43:12.434  2384:14125 W/System.err ]
    at com.platinumapps.friendlist.BLL_Friendlist.isTableEmpty(BLL_Friendlist.java:719)
[ 12-21 19:43:12.544  2384:14125 W/System.err ]
    at com.platinumapps.activities.Activity_NewsFeed$1.run(Activity_NewsFeed.java:110)
[ 12-21 19:43:12.841  2384: 2458 D/dalvikvm ]
GC_FOR_ALLOC freed 1135K, 19% free 54019K/65972K, paused 221ms, total 221ms
[ 12-21 19:43:12.934  2384:14125 W/System.err ]
    at java.lang.Thread.run(Thread.java:856)
[ 12-21 19:43:12.934  2384:14125 D/FlurryAgent ]
Error logged: uncaught
[ 12-21 19:43:12.934  2384:14125 W/System.err ]
android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed. 
[ 12-21 19:43:12.934  2384:14125 W/System.err ]
    at android.database.CursorWindow.<init>(CursorWindow.java:104)
[ 12-21 19:43:12.934  2384:14125 W/System.err ]
    at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:198)
[ 12-21 19:43:12.942  2384:14125 W/System.err ]
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:139)
[ 12-21 19:43:13.036  2384:14125 W/System.err ]
    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
[ 12-21 19:43:13.036  2384:14125 W/System.err ]
    at com.platinumapps.friendlist.BLL_Friendlist.isTableEmpty(BLL_Friendlist.java:719)
[ 12-21 19:43:13.036  2384:14125 W/System.err ]
    at com.platinumapps.activities.Activity_NewsFeed$1.run(Activity_NewsFeed.java:110)
[ 12-21 19:43:13.036  2384:14125 W/System.err ]
    at java.lang.Thread.run(Thread.java:856)
[ 12-21 19:43:13.075  2384:14125 D/FlurryAgent ]
Error logged: uncaught
[ 12-21 19:43:13.099  2384:14125 E/ACRA     ]
ACRA caught a CursorWindowAllocationException exception for com.platinumapps.facedroid. Building repo

室温。

4

2 回答 2

9

这个错误主要是这个问题引起的

AppData::create pipe(2) failed: Too many open files

这在任何情况下都可能发生。例如

  1. 你在你的应用程序中创建了这么多HTTP connections
  2. files connectioninternalExternalSD 卡打开到多个'
  3. 或者这可以是 Some data access by DB+file writer objectHTTP connections.

解决方案

尝试限制您的网络操作,例如使用thread pool并限制max 5连接时间,如果执行某些文件操作,请尝试序列化它们。close all open connections退出时用于 db 。

于 2012-12-21T12:46:57.263 回答
1

这可能是原因:

[ 12-21 19:43:11.731  2384:14147 E/NativeCrypto ] AppData::create pipe(2) failed: Too many open files

您的应用可能不会关闭它正在使用的资源。

于 2012-12-21T12:18:03.287 回答