🐞 Your connection was interrupted. Your computer went to sleep

Indeed it did, Ankiさん, indeed it did.

Anki ⁨2.1.53 (96bacf79)⁩ Python 3.9.7 Qt 6.3.0 PyQt 6.3.0
Windows 10 21H2

I never experienced this funny thing (on Windows 10 too), but every time my internet connection gets choppy or interrupted, webviews in Anki become sluggish or refuse to load.

This functionality is handled by Chromium, and I’m not sure Anki can work around it. If you have any ideas, please let us know.

I got used to it. The trick is to press D (or click Decks) to reload. Clicking Reload only reloads one page, leading to a broken layout.

I wonder why this happens. Which connection was interrupted, and why is it a problem? I’m using a Chromium-based browser (Edge) and it never shows this error.

But yeah it’s not a big deal, pressing D fixed it. More amusing than annouying.

1 Like

Something (perhaps Windows, perhaps Chromium/Qt) appears to disable localhost networking when putting the computer to sleep, presumably causing that error when the deck list tries to refresh itself.

I think it’s Windows, as I am unable to reproduce this behavior on Linux, even on a laptop which gets suspended when closing the lid.

It is Windows-only as far as I’m aware, but it may be a bug in the QtNetworking/Chromium Windows code, not necessarily Windows itself.

There is a similar issue thread posted on MS forum, but no solutions have been found yet on that thread. It may still be worth watching that thread.