You are not logged in.

#1 2026-05-25 07:19:02

Marvix
Member
Registered: 2013-10-08
Posts: 157

Anki won't start due to keyboard layout setting

Hello to all!

Since I installed anki months ago, after the first configuration dialog windows, it fails to start and gives me the following error.
The keyboard layout is set english and greek language.

Starting Anki 25.09.2...
Gtk-Message: 09:38:01.110: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:38:01.243: Failed to load module "atk-bridge"

(python:42001): Gtk-WARNING **: 09:38:01.272: Unable to locate theme engine in module_path: "adwaita",

(python:42001): Gtk-WARNING **: 09:38:01.272: Unable to locate theme engine in module_path: "adwaita",
2026-05-25 09:38:01,830:INFO:aqt.mediasrv: Serving on http://127.0.0.1:34515
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
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
[42001:42128:0525/093808.702566:FATAL:../../../qtwebengine/src/3rdparty/chromium/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc:662] Keymap file failed to load: us,gr-qwerty

It seems it is qt6-webengine causing the problem, and I have two versions installed.

pacman -Qs qt6-webengine
local/python-pyqt6-webengine 6.11.0-1 (pyqt6)
    Python bindings for QtWebEngine
local/qt6-webengine 6.11.1-1 (qt6)
    Provides support for web applications using the Chromium browser project

The closest thing I found about might be this topic [Solved] Anki broken after qt6-webengine update to 6.11.0-2.

What causes this and how to approach to a solution?

Thank you!

Offline

#2 2026-05-25 11:35:34

aurinko
Member
Registered: 2026-05-12
Posts: 2

Re: Anki won't start due to keyboard layout setting

Hey, did you change any keyboard layout descriptions in /usr/share/X11/xkb/symbols? Maybe try reinstalling extra/xkeyboard-config and see whether that helps.

Offline

#3 2026-05-25 12:54:15

Marvix
Member
Registered: 2013-10-08
Posts: 157

Re: Anki won't start due to keyboard layout setting

Hi!

Not, I didn't change any keyboard layout descriptions in /usr/share/X11/xkb/symbols.

Also, reinstalling xkeyboard-config didn't change anything. It still gives the same error.

Last edited by Marvix (2026-05-25 16:00:14)

Offline

#4 2026-05-25 13:27:02

mutlu_inek
Member
From: all over the place
Registered: 2006-11-18
Posts: 686

Re: Anki won't start due to keyboard layout setting

It seems unrelated at first, so I'm not sure if this is the same bug, but recently, Anki did not start for me, either. The UI popped up, Anki tried to synchronize and then crashed.

I tried to report upstream, but there don't seem to be others (outside Arch?) who are encountering this issue. I then upgraded the package to 25.09.4, but that didn't help, either.

I inspected the crash logs and it seemed like there was an issue with the rendering. I have hybrid graphics (AMD & NVIDIA) and some tinkering made me find a workaround: Explicitly running Anki through the NVIDIA works just fine. I simply do this:

prime-run anki

Last edited by mutlu_inek (2026-05-25 13:27:34)

Offline

#5 2026-05-25 18:59:49

Marvix
Member
Registered: 2013-10-08
Posts: 157

Re: Anki won't start due to keyboard layout setting

How to you find the Anki crash logs?

Unlike you, I don't have Nvidia.

When I'm testing, I delete the ~/.local/share/Ank2 file and I choose different languages to set in the first two configuration windows other than English and Greek, like Spanish, and I still get the same error.

Offline

#6 2026-05-26 12:58:44

mutlu_inek
Member
From: all over the place
Registered: 2006-11-18
Posts: 686

Re: Anki won't start due to keyboard layout setting

kcrash offers automatic backtraces in case of crashes.

If you don't have hybrid graphics card setup, your issue is clearly different.

Did you try something along the lines of

LC_ALL="en_US.UTF-8" anki

Offline

Board footer

Powered by FluxBB