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

Bug i cant open it

Open evangeclara-png opened this issue 9 months ago • 14 comments

Checked for duplicates?

  • [x] This issue is not a duplicate

Does it also happen in the desktop version?

  • [ ] This bug does not occur in the latest version of Anki Desktop

What are the steps to reproduce this bug?

Hello, My AnkiDroid app is crashing immediately when I try to open it. My cards were not synchronized with AnkiWeb, and I’m afraid of losing my data. The app closes instantly after opening. My device: VAIO tablet (Android) Could you please help me recover my collection? Thank you.

Expected behaviour

Hello, My AnkiDroid app is crashing immediately when I try to open it. My cards were not synchronized with AnkiWeb, and I’m afraid of losing my data. The app closes instantly after opening. My device: VAIO tablet (Android) Could you please help me recover my collection? Thank you.

Debug info

Hello,
My AnkiDroid app is crashing immediately when I try to open it.
My cards were not synchronized with AnkiWeb, and I’m afraid of losing my data.
The app closes instantly after opening.
My device: VAIO tablet (Android)
Could you please help me recover my collection?
Thank you.

(Optional) Anything else you want to share?

Hello, My AnkiDroid app is crashing immediately when I try to open it. My cards were not synchronized with AnkiWeb, and I’m afraid of losing my data. The app closes instantly after opening. My device: VAIO tablet (Android) Could you please help me recover my collection? Thank you.

Research

  • [x] I have checked the manual and the FAQ and could not find a solution to my issue
  • [x] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

evangeclara-png avatar Feb 18 '26 22:02 evangeclara-png

Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

welcome[bot] avatar Feb 18 '26 22:02 welcome[bot]

Try to clear cache and force stop the app, are you getting the prompt for making a report?

LUwUcifer avatar Feb 19 '26 02:02 LUwUcifer

if possible please share "logcat" to see the crash error

Ayush-Patel-56 avatar Feb 19 '26 04:02 Ayush-Patel-56

Are you crashing on startup or are you seeing an error dialog? @evangeclara-png

ShaanNarendran avatar Feb 19 '26 08:02 ShaanNarendran

fh.f: DbError { info: "SqliteFailure(Error { code: DatabaseCorrupt, extended_code: 11 }, Some("database disk image is malformed"))", kind: Other } at j5.k0.b(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:239) at fh.a.q0(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:23) at ea.m.k(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:67) at g9.bb.invoke(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:18) at g9.s3.invoke(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:146) at db.b.y(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:178) at wc.a.g(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:9) at fg.d0.run(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:112) at androidx.core.app.c.run(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:678) at mg.j.run(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:3) at mg.a.run(r8-map-id-45d036fd9b36eec6d41451bc65aabbe52db2e79356371b5f27b8c0570656e20b:87)

I believe this is the stack trace for the same, looking at the logcat for the crash I see that you aren't crashing on startup so possibly a recording could help us. Just in case I found the wrong report

ShaanNarendran avatar Feb 19 '26 09:02 ShaanNarendran

I believe this is the stack trace for the same, looking at the logcat for the crash I see that you aren't crashing on startup so possibly a recording could help us. Just in case I found the wrong report

How did you get the logcat? It wasn't shared here

Fandroid745 avatar Feb 19 '26 09:02 Fandroid745

Just updated to the latest pre-release (2.24. 0alpha6) through obtainium and the app crashes at the startup for me too. This might be a different issue though since this version was released only 40 minutes ago.

For some reason GitHub is giving me an error when trying to upload a video through the mobile app, so I'll upload one later on a laptop

justvam avatar Feb 19 '26 12:02 justvam

I'm on Alpha6 as well, and clearing the cache didn't helped

https://github.com/user-attachments/assets/6fbc4a11-786a-4a4f-b0b3-aad8a856e87a

NamelessGO avatar Feb 19 '26 12:02 NamelessGO

I don't have any crashes with 2.24.0alpha6.

ZornHadNoChoice avatar Feb 19 '26 13:02 ZornHadNoChoice

@NamelessGO can I know which device you're using?

ShaanNarendran avatar Feb 19 '26 14:02 ShaanNarendran

I have the exact same behaviour as @NamelessGO, clearing cache and fully stopping ankidroid does not fix it.

I'm using OnePlus 12R, with LineageOS 23.2 (Android 16), and microg.

Exact lineageos version: 23.2-20260213-NIGHTLY-aston Kernel version: 5.15.197-gec450727be50

I'll give logcat when I'll get home if it will still be needed

justvam avatar Feb 19 '26 14:02 justvam

@NamelessGO can I know which device you're using?

Using Xiaomi Poco F7 Pro (3.0.4.0.WOKMIXM)

Android version: 16 BP2A.250605.031.A3

Kernel: 6.1.118-android14-11-gca0ef6d17716-ab13624819

First time using logcat, https://f-droid.org/packages/com.f0x1d.logfox

1771518046.793 10166  4790  6331 D RecentsTaskLoader: reloadTasksData [TaskKey{id=36932, stackId=0, baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ichi2.anki/.IntentHandler }, userId=0, lastActiveTime=523244, windowingMode=1, isThumbnailBlur=false, isAccessLocked=false, isScreening=false, topActivity=ComponentInfo{com.ichi2.anki/com.ichi2.anki.IntentHandler}, mHashCode=1101164764}, title=AnkiDroid, titleDescription=AnkiDroid, bounds=null, isLaunchTarget=false, isStackTask=true, isSystemApp=false, isDockable=true, baseActivity=ComponentInfo{com.ichi2.anki/com.ichi2.anki.IntentHandler}, isLocked=false, mNeedHide=false, hasMultipleTasks=false, cti1Key=, cti2Key=]
1771518046.822 10350 27030 27030 I AnkiDroid: Timber config: PRODUCTION
1771518046.822 10350 27030 27030 I AnkiDroid: initialize()
1771518046.860 10350 27030 27030 I AnkiDroid: Not participating in analytics sample (sample percentage vs random: 10 46)
1771518046.861 10350 27030 27030 I AnkiDroid: setOptIn(): from false to true
1771518046.861 10350 27030 27030 I AnkiDroid: Not participating in analytics sample (sample percentage vs random: 10 86)
1771518046.861 10350 27030 27030 I AnkiDroid: initialize()
1771518046.861 10350 27030 27030 I AnkiDroid: AnkiDroidApp: listing debug info
1771518046.865 10350 27030 27030 I AnkiDroid: Creating notification channel with id/name: General Notifications/AnkiDroid
1771518046.865 10350 27030 27030 I AnkiDroid: Creating notification channel with id/name: Synchronization/Sincronização
1771518046.865 10350 27030 27030 I AnkiDroid: Creating notification channel with id/name: Review Reminders/Review Reminders
1771518046.867 10350 27030 27030 I AnkiDroid: AnkiDroidApp: Starting Services
1771518046.894 10350 27030 27030 I AnkiDroid: IntentHandler::onCreate, savedInstanceState: null
1771518046.898 10350 27030 27030 I AnkiDroid: Launching DeckPicker
1771518046.911 10350 27030 27030 I AnkiDroid: AnkiDroid Version = 2.24.0alpha6 (7a7f9aedccff3e8016cdc3072378a9acadb76ce5)
1771518046.911 10350 27030 27030 I AnkiDroid: Backend Version = 0.1.63-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)
1771518046.911 10350 27030 27030 I AnkiDroid: Android Version = 16 (SDK 36)
1771518046.911 10350 27030 27030 I AnkiDroid: ProductFlavor = play
1771518046.911 10350 27030 27030 I AnkiDroid: Device Info = Xiaomi | POCO | zorn | zorn_global | 24117RK2CG | qcom
1771518046.911 10350 27030 27030 I AnkiDroid: WebView Info = [com.google.android.webview | 768001413]: Mozilla/5.0 (Linux; Android 16; 24117RK2CG Build/BP2A.250605.031.A3; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/146.0.7680.14 Mobile Safari/537.36
1771518046.911 10350 27030 27030 I AnkiDroid: ACRA UUID = d7fb373a-41d6-4e35-93fb-e8cf9a4ed0be
1771518046.911 10350 27030 27030 I AnkiDroid: FSRS = 5.1.0 (Enabled: null)
1771518046.911 10350 27030 27030 I AnkiDroid: Crash Reports Enabled = true
1771518046.914 10166  4790  6331 D RecentsTaskLoader: reloadTasksData [TaskKey{id=36932, stackId=0, baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ichi2.anki/.IntentHandler }, userId=0, lastActiveTime=523373, windowingMode=1, isThumbnailBlur=false, isAccessLocked=false, isScreening=false, topActivity=ComponentInfo{com.ichi2.anki/com.ichi2.anki.DeckPicker}, mHashCode=1101164764}, title=AnkiDroid, titleDescription=AnkiDroid, bounds=null, isLaunchTarget=false, isStackTask=true, isSystemApp=false, isDockable=true, baseActivity=ComponentInfo{com.ichi2.anki/com.ichi2.anki.DeckPicker}, isLocked=false, mNeedHide=false, hasMultipleTasks=false, cti1Key=, cti2Key=]
1771518046.941 10350 27030 27030 I AnkiDroid: DeckPicker::onCreate, savedInstanceState: null
1771518046.947 10166  4790  6331 D RecentsTaskLoader: reloadTasksData [TaskKey{id=36932, stackId=0, baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ichi2.anki/.IntentHandler }, userId=0, lastActiveTime=523391, windowingMode=1, isThumbnailBlur=false, isAccessLocked=false, isScreening=false, topActivity=ComponentInfo{com.ichi2.anki/com.ichi2.anki.DeckPicker}, mHashCode=1101164764}, title=AnkiDroid, titleDescription=AnkiDroid, bounds=null, isLaunchTarget=false, isStackTask=true, isSystemApp=false, isDockable=true, baseActivity=ComponentInfo{com.ichi2.anki/com.ichi2.anki.DeckPicker}, isLocked=false, mNeedHide=false, hasMultipleTasks=false, cti1Key=, cti2Key=]
1771518046.968 10350 27030 27751 I AnkiDroid: (Re)opening Database: Path(path=/storage/emulated/0/Android/data/com.ichi2.anki/files/AnkiDroid/collection.anki2)
1771518046.973 10350 27030 27030 I AnkiDroid: isLegacyStorage(): current dir: /storage/emulated/0/Android/data/com.ichi2.anki/files/AnkiDroid
1771518046.973 10350 27030 27030 I AnkiDroid: scoped external dirs: /storage/emulated/0/Android/data/com.ichi2.anki/files
1771518046.973 10350 27030 27030 I AnkiDroid: scoped internal dir: /data/user/0/com.ichi2.anki/files
1771518046.973 10350 27030 27030 I AnkiDroid: isLegacyStorage(): false
1771518046.976 10350 27030 27030 I AnkiDroid: Applying background image selected by user
1771518046.981 10350 27030 27030 I AnkiDroid: DeckPicker::onStart
1771518046.983 10350 27779 27779 I AnkiDroid: Timber config: PRODUCTION
1771518046.983 10350 27779 27779 I AnkiDroid: initialize()
1771518046.988 10350 27030 27030 I AnkiDroid: DeckPicker::onResume
1771518046.992 10350 27030 27030 I AnkiDroid: AnkiDroid is being updated and a collection already exists.
1771518046.992 10350 27030 27030 I AnkiDroid: Current AnkiDroid version: 322400106
1771518046.992 10350 27030 27030 I AnkiDroid: Previous AnkiDroid version: 322400106
1771518046.992 10350 27030 27030 I AnkiDroid: Running preference upgrade: g
1771518046.994 10350 27030 27030 I AnkiDroid: finishWithAnimation DEFAULT
1771518047.006 10166  4790  6331 D RecentsTaskLoader: reloadTasksData [TaskKey{id=36932, stackId=0, baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ichi2.anki/.IntentHandler }, userId=0, lastActiveTime=523467, windowingMode=1, isThumbnailBlur=false, isAccessLocked=false, isScreening=false, topActivity=null, mHashCode=1101164764}, title=AnkiDroid, titleDescription=AnkiDroid, bounds=null, isLaunchTarget=false, isStackTask=true, isSystemApp=false, isDockable=true, baseActivity=null, isLocked=false, mNeedHide=false, hasMultipleTasks=false, cti1Key=, cti2Key=]
1771518047.033 10166  4790  6331 D RecentsTaskLoader: reloadTasksData [TaskKey{id=36932, stackId=0, baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ichi2.anki/.IntentHandler }, userId=0, lastActiveTime=523467, windowingMode=1, isThumbnailBlur=false, isAccessLocked=false, isScreening=false, topActivity=null, mHashCode=1101164764}, title=AnkiDroid, titleDescription=AnkiDroid, bounds=null, isLaunchTarget=false, isStackTask=true, isSystemApp=false, isDockable=true, baseActivity=null, isLocked=false, mNeedHide=false, hasMultipleTasks=false, cti1Key=, cti2Key=]
1771518047.062 10350 27779 27779 I AnkiDroid: Participating in analytics sample (sample percentage vs random: 10 3)
1771518047.062 10350 27779 27779 I AnkiDroid: setOptIn(): from false to true
1771518047.062 10350 27779 27779 I AnkiDroid: Not participating in analytics sample (sample percentage vs random: 10 33)
1771518047.063 10350 27779 27779 I AnkiDroid: initialize()
1771518047.063 10350 27779 27779 I AnkiDroid: AnkiDroidApp: listing debug info
1771518047.096 10166  4790  6331 D RecentsTaskLoader: reloadTasksData [TaskKey{id=36932, stackId=0, baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ichi2.anki/.IntentHandler }, userId=0, lastActiveTime=523467, windowingMode=1, isThumbnailBlur=false, isAccessLocked=false, isScreening=false, topActivity=null, mHashCode=1101164764}, title=AnkiDroid, titleDescription=AnkiDroid, bounds=null, isLaunchTarget=false, isStackTask=true, isSystemApp=false, isDockable=true, baseActivity=null, isLocked=false, mNeedHide=false, hasMultipleTasks=false, cti1Key=, cti2Key=]
1771518047.122 10350 27779 27779 I AnkiDroid: AnkiDroid Version = 2.24.0alpha6 (7a7f9aedccff3e8016cdc3072378a9acadb76ce5)
1771518047.122 10350 27779 27779 I AnkiDroid: Backend Version = 0.1.63-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)
1771518047.122 10350 27779 27779 I AnkiDroid: Android Version = 16 (SDK 36)
1771518047.122 10350 27779 27779 I AnkiDroid: ProductFlavor = play
1771518047.122 10350 27779 27779 I AnkiDroid: Device Info = Xiaomi | POCO | zorn | zorn_global | 24117RK2CG | qcom
1771518047.122 10350 27779 27779 I AnkiDroid: WebView Info = [com.google.android.webview | 768001413]: Mozilla/5.0 (Linux; Android 16; 24117RK2CG Build/BP2A.250605.031.A3; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/146.0.7680.14 Mobile Safari/537.36
1771518047.122 10350 27779 27779 I AnkiDroid: ACRA UUID = d7fb373a-41d6-4e35-93fb-e8cf9a4ed0be
1771518047.122 10350 27779 27779 I AnkiDroid: FSRS = 5.1.0 (Enabled: null)
1771518047.122 10350 27779 27779 I AnkiDroid: Crash Reports Enabled = true
1771518047.974 10166  4790  6331 D RecentsTaskLoader: reloadTasksData [TaskKey{id=36932, stackId=0, baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ichi2.anki/.IntentHandler }, userId=0, lastActiveTime=523467, windowingMode=1, isThumbnailBlur=false, isAccessLocked=false, isScreening=false, topActivity=null, mHashCode=1101164764}, title=AnkiDroid, titleDescription=AnkiDroid, bounds=null, isLaunchTarget=false, isStackTask=true, isSystemApp=false, isDockable=true, baseActivity=null, isLocked=false, mNeedHide=false, hasMultipleTasks=false, cti1Key=, cti2Key=]
1771518048.049 10166  4790  6331 D RecentsTaskLoader: reloadTasksData [TaskKey{id=36932, stackId=0, baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ichi2.anki/.IntentHandler }, userId=0, lastActiveTime=523467, windowingMode=1, isThumbnailBlur=false, isAccessLocked=false, isScreening=false, topActivity=null, mHashCode=1101164764}, title=AnkiDroid, titleDescription=AnkiDroid, bounds=null, isLaunchTarget=false, isStackTask=true, isSystemApp=false, isDockable=true, baseActivity=null, isLocked=false, mNeedHide=false, hasMultipleTasks=false, cti1Key=, cti2Key=]

NamelessGO avatar Feb 19 '26 16:02 NamelessGO

While very unlikely, maybe OP has the 2.24.0alpha3 issue https://github.com/ankidroid/Anki-Android/issues/20163.

ZornHadNoChoice avatar Feb 20 '26 03:02 ZornHadNoChoice

Fixed by #20343

david-allison avatar Mar 21 '26 17:03 david-allison