在我的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
室温。
答案 0 :(得分:9)
此错误主要是由此问题引起的
AppData::create pipe(2) failed: Too many open files
在任何情况下都会发生这种情况。例如
HTTP connections
。files connection
或internal
SD卡打开许多External
data access by DB
+ file writer object
和HTTP connections
的组合。 <强>解决方案强>
尝试限制您的网络操作,例如使用thread pool
并在时间上限制max 5
个连接,如果执行某些文件操作,则尝试序列化它们。退出时,对于db close all open connections
。
答案 1 :(得分:1)
这可能是原因:
[ 12-21 19:43:11.731 2384:14147 E/NativeCrypto ] AppData::create pipe(2) failed: Too many open files
您的应用可能无法关闭正在使用的资源。