Add-on development setup - issue on "application is not responding"

Hi,
I’'m having issues in the setup of anki to develop anki add-on. I’m using vs-code (as already done in the past) but when I enter the step-by-step debug mode, anki (maybe the system, I’m on Ubuntu) keeps posting a window with the warning that the “application is not responding” , 1 msg any 2/3 seconds).

How can I stop it?

(this is while step-by-step debug in vs-code)

2 Likes

That’s normal - when you are single-stepping in a debugger, the UI can’t be updated.

1 Like

I’m totally sure this was not the behaviour before I updated to Ubuntu 24 (and last version of Anki).
The alert is issued any 2 seconds, it makes it impossible to debug.

Can you tell me if that alert is issued by the Operating System (I guess so…)? There must be a way to increment the time it waits.

It’s your window manager/compositor. A Linux forum might have an answer for you.

Anthropic suggested the fix:

gsettings set org.gnome.mutter check-alive-timeout 0

and when you’re finished:

gsettings reset org.gnome.mutter check-alive-timeout

*:- )

1 Like

Out of curiosity, are you running Gnome on X11 or Wayland? I know that there are some issues with running Anki on the latter.

Hi,
I’m using Gnome on Wayland, when you start a warning is issued:

$ anki
Anki starting...
Initial setup...
Preparing to run...
Wayland support is disabled by default due to bugs:
https://github.com/ankitects/anki/issues/1767
You can force it on with an env var: ANKI_WAYLAND=1

Anthropic suggests that Anki wraps in Xwayland, a way to use xorg applications in a wayland environment.

*:- )

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.