ankitects / ankitects/anki

Keyboard layout causes Anki to crash

Open
#4,427 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.