-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
SQLiteConstraintException on new account #8403
SQLiteConstraintException on new account #8403
Comments
This is a FluxC related crash. It looks like just before the crash the account was fetched and tried to be inserted while we already have an account with the same id. This should be where the crash happens: https://github.com/wordpress-mobile/WordPress-FluxC-Android/blob/develop/fluxc/src/main/java/org/wordpress/android/fluxc/persistence/AccountSqlUtils.java#L26-L40 In most cases this should not happen, because it looks like we are checking if there is an account with that I think the easy way, and probably the correct one, to fix this issue is to add an @malinajirka If you end up doing your groundskeeping next week and have bandwidth, do you think you can take a look at this one? I am happy to discuss and test this with you. |
Will be fixed via wordpress-mobile/WordPress-FluxC-Android#1248 once the FluxC hash in WPAndroid has been updated. |
I've checked Sentry and it seems no-one encountered this crash in the last couple of months. The PR Alex mentioned in the previous comment has been merged and probably fixed the issue -> Closing |
Created a new wpcom account in the app with success. Navigated the app, and created a new site. Then I sent the app to background.
2 minutes later I re-opened the app and got the following crash. Happened only once, but worth to take a look.
Not quite sure if it's a problem of the app or FluxC. Opening this in this repo for investigation.
The text was updated successfully, but these errors were encountered: