I got the following stack trace via ACRA. Galaxy Note II, Android 4.1.2:
android.database.sqlite.SQLiteException: integer overflow (code 1)
at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:968)
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:133)
at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:196)
at android.database.AbstractCursor.moveToNext(AbstractCursor.java:244)
:
My app's methods
I’ve never seen this exception before — anybody has any ideas what could be causing this?
It can occur in situations where you create a number that is larger than the size allowed for an integer. One way this could happen is if you are using an aggregation functions such as Sum. If you are summing too many things, you could end up with a number much too large that overflows the size of an integer.
More information can be found here: http://www.sqlite.org/lang_aggfunc.html