You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IndexOutOfBoundsException: Index: 3, Size: 2
at java.util.LinkedList.checkElementIndex(LinkedList.java:566)
at java.util.LinkedList.get(LinkedList.java:487)
at com.ichi2.anki.NoteEditor$addMediaFileToField$1.invokeSuspend(NoteEditor.kt:1879)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8913)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [s0{Cancelling}@5d1efd6, Dispatchers.Main.immediate]
Line of code on main is the last line here, it appears that editFields has been mutated sometime between when it was set and when this method was called, but index wasn't re-calculated...
Logcat indicates there was lots of change happening in the multimedia edit, follow it carefully when trying to reproduce, listing exact reproduction steps will be helpful prior to starting
I don't think it is device dependent, the crash shows up on lots of android versions and devices
ANDROID_VERSION
14
APP_VERSION_CODE
322001300
APP_VERSION_NAME
2.20.1
AVAILABLE_MEM_SIZE
72627994624
BRAND
samsung
BUILD
BOARD
atoll
BOOTLOADER
P619XXS5CXC8
BRAND
samsung
CPU_ABI
arm64-v8a
CPU_ABI2
DEVICE
gta4xlve
(Optional) Anything else you want to share?
No response
Research
I have checked the manual and the FAQ and could not find a solution to my issue
(Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
The text was updated successfully, but these errors were encountered:
Checked for duplicates?
Does it also happen in the desktop version?
What are the steps to reproduce this bug?
Showing up in ACRA in 2.20.1
https://ankidroid.org/acra/app/1/bug/279480/report/569ac348-3900-4ccc-8cb5-276eac2154e6
Line of code on main is the last line here, it appears that
editFields
has been mutated sometime between when it was set and when this method was called, butindex
wasn't re-calculated...Anki-Android/AnkiDroid/src/main/java/com/ichi2/anki/NoteEditor.kt
Lines 1982 to 1989 in b0d7b48
Logcat indicates there was lots of change happening in the multimedia edit, follow it carefully when trying to reproduce, listing exact reproduction steps will be helpful prior to starting
Expected behaviour
No crash
Debug info
(Optional) Anything else you want to share?
No response
Research
The text was updated successfully, but these errors were encountered: