ankidroid/Anki-Android

[Bug] Crash: Tapping "Study" shortcut ends up closing AnkiDroid immediately without any explanation if the last-selected deck doesn't have any "due" cards

snowtimeglass opened this issue · 3 comments

Thank you always, developers.

Reproduction Steps
  1. On Decks screen, tap a deck which doesn't have any "due" cards* at the moment
    *it includes the case that the deck is emptyimage
    image

  2. Press Back button (twice if necessary), or close AnkiDroid completely. Anyway, go back to Android Home screen
    image

  3. Long tap (press) AnkiDroid app icon

  4. Tap Study on the shortcut menu
    image

Expected Result

AnkiDroid shows some message which explains the last-selected deck doesn't have any due cards at the moment (or is empty).
image
image

Actual Result

AnkiDroid "crashes". I mean, it closes immediately and unexpectedly without any explanation.
image

cannotsrart.mp4
Research

Enter an [x] character to confirm the points below:

  • I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid
  • I have checked the manual and the FAQ and could not find a solution to my issue
  • I have searched for similar existing issues here and on the user forum
  • (Optional) I have confirmed the issue is not resolved in the latest alpha release
    (2.16alpha58)

Nice!

Open Reviewer directly -> No cards to review -> Closes the reviewer -> No activity to get back to -> App closes

For anyone who want to fix this: Add the main activity to the backstack before the reviewer and it should be fine

@snowtimeglass and @BrayanDSO thanks so much for the testing and triage on issues, it is such a huge help. This alpha cycle has gone on so long that we have not encountered many real users with so much new code that this QA/triage effort is pretty sizable to get rid of the immediate crashes before we go beta. Also makes me think, it's going to be a tough beta cycle 😅

A fix here may fix #10841 at the same time, both scenarios should be tested for any fix on either one