100% reproduceable: anki hangs when switch keyboard using shortkey

Version ⁨2.1.43 (0fbae6bc)⁩
Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Win10 20H2 (19042.985)

Whenever I switch to English United States-International Keyboard using the shortkey I specified, Ctrl + Shift + 9, the Anki application hangs, must force close it and restart. After restart it, unsynced changes will be lost.

Only when I use Ctrl+shift+9 to switch to US-International Keybord it hangs, when I use other shortkeys to switch to these keyboards, it’s okay:
Ctrl+shift+7 Google Japanese Input
Ctrl+shift+8 Chinese Huaer Wubi
Ctrl+shift+0 English US keyboard

(Just found out when I use Ctrl+shift+6 switch to Greek Keyboard, it also hangs.)
When I use Win+space to switch to these Keyboards, it’s okay.

Could you please tell me how can I help to fix this bug? Thanks!

1 Like

This is a bug in the toolkit Anki is built on, and the only workaround at the moment is to use win+space instead.

Thanks for your reply.
May I know which toolkit it is, and can I submit a bug report to them also?
I would very much like to help with the process of fix it, I can spend time to learn the things needed.

I think @dae already reported it in https://bugreports.qt.io/browse/QTBUG-73994?

4 Likes

Got it, thanks!
I’ll see if I can help in any ways.

It also exists in the beta version which I built from source.

    Anki 2.1.45 (2b8bbda5) Python 3.8.10 Qt 5.15.2 PyQt 5.15.2
    Platform: Windows 10
    Flags: frz=False ao=False sv=2

No add-ons.

change your video driver from opengl to angle or software

1 Like

Seems solved the problem, thanks!

Update: In newer version (tried 2.1.54 Qt6), the problem appeared again, and there was no option to switch video driver in Preferences.
So I rolled back to 2.1.49, then everything’s fine again.

https://docs.ankiweb.net/platform/windows/display-issues.html#qt6

1 Like

Cool, thanks a lot!

Tried 2.1.56 qt6 today, this problem still exists.
The method on that page doesn’t help much, and the app keeps terminate itself.
So I rolled back to qt5 again.
(win10 22H2 now, 2.1.54 qt6 back then was also not stable so I had rolled back to qt5)

Nice new UI design, thanks a lot !