WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

IllegalStateException: Cannot perform this operation because there is no current transaction.

Open sentry-io[bot] opened this issue 1 year ago • 1 comments

Sentry Issue: JETPACK-ANDROID-H0P

IllegalStateException: Cannot perform this operation because there is no current transaction.
    at android.database.sqlite.SQLiteSession.throwIfNoTransaction(SQLiteSession.java:937)
    at android.database.sqlite.SQLiteSession.endTransaction(SQLiteSession.java:400)
    at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:990)
    at org.wordpress.android.datasets.NotificationsTable.saveNotes(NotificationsTable.java:141)
    at org.wordpress.android.ui.notifications.services.NotificationsUpdateLogic$RestListener.onResponse(NotificationsUpdateLogic.java:77)
...
(12 additional frame(s) were not displayed)

sentry-io[bot] avatar Jan 12 '24 09:01 sentry-io[bot]

I think it is related to race condition because we have multiple tabs which might access the database at the same time.

jarvislin avatar Mar 06 '24 09:03 jarvislin