Skip to content
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

Crash when granting permission to schedule exact alarms #8516

Open
2 tasks done
cketti opened this issue Nov 6, 2024 · 0 comments
Open
2 tasks done

Crash when granting permission to schedule exact alarms #8516

cketti opened this issue Nov 6, 2024 · 0 comments
Assignees
Labels
type: bug Something is causing incorrect behavior or errors type: crash Issues that involve fixing a crash or ANR

Comments

@cketti
Copy link
Member

cketti commented Nov 6, 2024

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

App

Thunderbird for Android

App version

8.0

Where did you get the app from?

None

Android version

various

Device model

No response

Steps to reproduce

We received this crash via the Google Play Developer Console. There are no comments attached on how to reliably reproduce this crash.

Expected behavior

No crash

Actual behavior

The app crashes.

It looks like the database is accessed when it had already been closed. Currently there are two places where we close the database:

Further investigation is needed on what needs to happen exactly in order to reproduce this crash. It looks like a race condition to me.

Logs

Exception java.lang.IllegalStateException:
  at android.database.sqlite.SQLiteClosable.acquireReference (SQLiteClosable.java:58)
  at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory (SQLiteDatabase.java:1710)
  at android.database.sqlite.SQLiteDatabase.rawQuery (SQLiteDatabase.java:1671)
  at com.fsck.k9.storage.messages.CheckFolderOperations.hasPushEnabledFolder$lambda$4 (CheckFolderOperations.kt:37)
  at com.fsck.k9.mailstore.LockableDatabase.execute (LockableDatabase.java:169)
  at com.fsck.k9.storage.messages.CheckFolderOperations.hasPushEnabledFolder (CheckFolderOperations.kt:36)
  at com.fsck.k9.storage.messages.K9MessageStore.hasPushEnabledFolder (K9MessageStore.kt:251)
  at com.fsck.k9.mailstore.NotifierMessageStore.hasPushEnabledFolder (NotifierMessageStore.kt)
  at app.k9mail.legacy.mailstore.ListenableMessageStore.hasPushEnabledFolder (ListenableMessageStore.kt)
  at app.k9mail.legacy.mailstore.FolderRepository.hasPushEnabledFolder (FolderRepository.kt:164)
  at com.fsck.k9.controller.push.PushController.getPushAccounts$lambda$6 (PushController.kt:257)
  at kotlin.sequences.FilteringSequence$iterator$1.calcNext (Sequences.kt:171)
  at kotlin.sequences.FilteringSequence$iterator$1.hasNext (Sequences.kt:194)
  at kotlin.sequences.SequencesKt___SequencesKt.toSet (_Sequences.kt:842)
  at com.fsck.k9.controller.push.PushController.getPushAccounts (PushController.kt:258)
  at com.fsck.k9.controller.push.PushController.updatePushers (PushController.kt:167)
  at com.fsck.k9.controller.push.PushController.access$onAlarmPermissionGranted (PushController.kt:34)
  at com.fsck.k9.controller.push.PushController.access$updatePushers (PushController.kt:34)
  at com.fsck.k9.controller.push.PushController$onBackendChanged$1.invokeSuspend (PushController.kt:147)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:101)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)
  at java.lang.Thread.run (Thread.java:1012)
@cketti cketti added the type: bug Something is causing incorrect behavior or errors label Nov 6, 2024
@cketti cketti self-assigned this Nov 6, 2024
@kewisch kewisch added the type: crash Issues that involve fixing a crash or ANR label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something is causing incorrect behavior or errors type: crash Issues that involve fixing a crash or ANR
Projects
None yet
Development

No branches or pull requests

2 participants