-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IllegalStateException database / CursorWindow #610
Comments
I'm also facing the same issue. There's already 483 crash occurrences among different devices and operating system versions. See here. |
It's very weird, the column must exist but the cursor can't found it.@HugoGresse In your exception stack:
It point to can not found @Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
if (oldVersion < 2) {
String addAsDirectoryColumn = "ALTER TABLE " + DefaultDatabaseImpl.TABLE_NAME +
" ADD COLUMN " + FileDownloadModel.PATH_AS_DIRECTORY +
" TINYINT(1) DEFAULT 0";
db.execSQL(addAsDirectoryColumn);
String addFilenameColumn = "ALTER TABLE " + DefaultDatabaseImpl.TABLE_NAME +
" ADD COLUMN " + FileDownloadModel.FILENAME +
" VARCHAR";
db.execSQL(addFilenameColumn);
}
...
} @YuriHeupa the stack you provided I cannot match any code on line
so, could you please provide some other stacks, help me find the regular on this problem?And could you two guys fix such problem with me, it would be nice if you can help me with this problem, and PR. And following are related methods
P.S. the database is refactored since |
I have problem too. My log:
|
Finally I find the Reason of the crash:Add column executions are invoked for SQLite isn't effective immediately on So after database upgrade, we expect everything is changed on the database but NOT............... so some column can't find... When does your user can face this crash?The following condition must be met at the same time:
BUT This crash only can be raised once since user upgrade filedownloader, because the next time the database upgrade has been affected. THIS ISSUE WILL BE FIXED ON
|
Wooo that was a really complicated issue :/ Thanks for working on it! |
Thanks so much |
Sorry for the late response.. and thanks for looking into this, really appreciated!! |
did you guyes are able to use the 1.5.6 @sinhpn92 @YuriHeupa Androdi Studio is unable to import the classes :/ |
@HugoGresse Yeh, I did. Try cleaning then rebuilding the project. |
Yep I did, somehting got wrong with AS see #620 |
I've encounterd this issue on a Nexus 5 runing 6.0.1 :
Caused by java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
FileDownloader v1.5.5
See full crash here.
It will really help if you can look into it.
The text was updated successfully, but these errors were encountered: