Keyboard layout causes Anki to crash
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 31.2k
- Forks
- 3.2k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 72
Description
Anki is unable to run if I have multiple layouts configured on my Arch Linux system. I'm using Anki 25.09.2. I'm happy to provide a fix if you point me in the right direction.
Python module pip_system_certs is not installed. System certificate store and custom SSL certificates may not work. See: https://github.com/ankitects/anki/issues/3016
Starting Anki 25.09.2...
2025-11-10 10:37:53,736:INFO:aqt.mediasrv: Serving on http://127.0.0.1:36089
xkbcommon: ERROR: [XKB-661] Couldn't process include statement for 'us(qwerty)'
xkbcommon: ERROR: [XKB-769] Abandoning symbols file "(unnamed map)"
xkbcommon: ERROR: Failed to compile xkb_symbols
xkbcommon: ERROR: [XKB-822] Failed to compile keymap
[1900783:1900825:1110/103753.910344:FATAL:xkb_keyboard_layout_engine.cc(661)] Keymap file failed to load: us,sk(qwerty)
[1] 1900783 trace trap (core dumped) anki
Appreciate looking into it. Thank you.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash on Arch Linux with multiple keyboard layouts and compare the startup log, especially the xkbcommon errors and xkb_keyboard_layout_engine.cc:661 failure. Trace the startup path that initializes keyboard layouts and identify where the invalid keymap is introduced. Done means Anki launches successfully with the reported layouts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- arch-linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100