ankidroid / ankidroid/Anki-Android

App breaking when adding notes in Manage Note Types

Abierto
#19,953 9 comentarios 0 reacciones 1 asignado Reclamado por @criticalAY Ver en GitHub
Needs Triage Priority-Critical
Lenguaje dominante
Kotlin
Estrellas
11.8k
Forks
2.9k
Merge medio
2 d 3 h
PR fusionados (30 d)
167

Descripción

### 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?

Go to the manage note types screen, add card types to the basic card note. They should all be having {{front}} or {{back}} (I added 5 note types so 6 total). If you try to save it, you'll get a dialog box error that says card x and card y have the same content (I can't remember the exact dialog). Change the text on the conflicting notes to "{{front" or "{{front}", and then try and save it. You should just be stuck on the following dialog:

Image

After reopening, the app is significantly slower and even crashed when I tried to manage note types and when I got in, I saw there were 20 card types, in the format of card 2+, card 2++ etc.

### Expected behaviour

The app should not break.

### Debug info

```text
AnkiDroid Version = 2.23.1 (3f3133b496b531383e9a6494f5a7704634935308)
Backend Version = 0.1.62-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)
Android Version = 14 (SDK 34)
ProductFlavor = play
Device Info = samsung | samsung | r0s | r0sxeea | SM-S901B | s5e9925
Webview User Agent = Mozilla/5.0 (Linux; Android 14; SM-S901B Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/143.0.7499.34 Mobile Safari/537.36
ACRA UUID = 519a8a65-aaa5-439f-bfa9-a6af4ee12246
FSRS = 5.1.0 (Enabled: false)
Crash Reports Enabled = true
```

### (Optional) Anything else you want to share?

_No response_

### Research

- [x] I have checked the [manual](https://ankidroid.org/docs/manual.html) and the [FAQ](https://github.com/ankidroid/Anki-Android/wiki/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](https://docs.ankidroid.org/manual.html#betaTesting))

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.