android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 2062) 01-18 16:36:20.184 1306 1937 W System.err: ################################################################# 01-18 16:36:20.184 1306 1937 W System.err: Error Code : 2062 (SQLITE_CANTOPEN_EMFILE) 01-18 16:36:20.184 1306 1937 W System.err: Caused By : Application has opened two many files. Maximum of available file descriptors in one process is 1024 in default. 01-18 16:36:20.184 1306 1937 W System.err: (unable to open database file (code 2062)) 01-18 16:36:20.184 1306 1937 W System.err: ################################################################# 01-18 16:36:20.184 1306 1306 I INAT:ObservationListActivity: Got ACTION_SYNC_COMPLETE

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • crash on upload after upgrade
    via GitHub by kueda
    ,
  • Lifecycle of AsyncTask and Application?
    via Stack Overflow by katit
    ,
    • android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 2062) 01-18 16:36:20.184 1306 1937 W System.err: ################################################################# 01-18 16:36:20.184 1306 1937 W System.err: Error Code : 2062 (SQLITE_CANTOPEN_EMFILE) 01-18 16:36:20.184 1306 1937 W System.err: Caused By : Application has opened two many files. Maximum of available file descriptors in one process is 1024 in default. 01-18 16:36:20.184 1306 1937 W System.err: (unable to open database file (code 2062)) 01-18 16:36:20.184 1306 1937 W System.err: ################################################################# 01-18 16:36:20.184 1306 1306 I INAT:ObservationListActivity: Got ACTION_SYNC_COMPLETE at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method) at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:980) at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836) at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62) at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:143) at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:132) at android.content.ContentResolver.query(ContentResolver.java:521) at android.content.ContentResolver.query(ContentResolver.java:445) at org.inaturalist.android.INaturalistService.syncObservationFields(INaturalistService.java:2313) at org.inaturalist.android.INaturalistService.syncObservations(INaturalistService.java:802) at org.inaturalist.android.INaturalistService.onHandleIntent(INaturalistService.java:758) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:66) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.os.HandlerThread.run(HandlerThread.java:61)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Macapon
    Macapon4 times, last one,
    Unknown visitor1 times, last one,
    2 more bugmates