[Fixed] Help me decide simulator error

Update: I can no longer reproduce this bug in 2.26.0alpha3.


I did not test on Anki Desktop, but on AnkiDroid 2.25.0beta2.

Steps to reproduce

  1. Go to the developer options[1].
  2. Generate 10,000 notes.
  3. Open the deck options of one of the generated decks.
  4. Try the “Help Me Decide” simulator with default settings.

Expected behavior

It works.

Actual behavior

Error: 500: index out of bounds: the len is 0 but the index is 20

and when trying again

Error: 500: called `Result::unwrap()` on an `Err` value: PoisonError { .. }
AnkiDroid Version = 2.25.0beta2 (99efe56916dfd3ae44f974d8ccf98f4be195b9d0)  
Backend Version = 0.1.68-anki26.05 (26.05 e64c6b1aee3e8d668fb8bbe084beada8e070d985)  
Android Version = 13 (SDK 33)  
ProductFlavor = full  
Device Info = Xiaomi | POCO | mondrian | mondrian_global | 23013PC75G | qcom  
WebView Info = [com.google.android.webview | 792220203]: Mozilla/5.0 (Linux; Android 13; 23013PC75G Build/TKQ1.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7922.202 Mobile Safari/537.36  
ACRA UUID = 4afc3b3f-e93f-4a66-bc71-2b9476ef9eb0  
FSRS = 5.2.0 (Enabled: true)  
Crash Reports Enabled = true

  1. You can enable the developer options by tapping 6 times on the logo in Settings → About. ↩︎