Anki crash when using a specific deck

I get the following error when using this deck:
ankiweb shared deck 1041686676

it’s intermittent and only happens when I press the “show answer” or “Good” buttons. I have tried the usual debugging steps including loading with no addons and check database

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Mac 11.6.8
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2022-08-12 09:35:56

Socket error
Traceback (most recent call last):
  File "waitress.channel", line 132, in _flush_exception
  File "waitress.channel", line 270, in _flush_some
  File "waitress.wasyncore", line 431, in send
OSError: [Errno 41] Protocol wrong type for socket


1 Like

If you run the following in the debug console at the start of a session, does the error go away for that session?

from errno import EPROTOTYPE
import waitress.wasyncore
waitress.wasyncore._DISCONNECTED = waitress.wasyncore._DISCONNECTED.union({EPROTOTYPE})

https://docs.ankiweb.net/misc.html#debug-console

1 Like