Anki crashing can't reproduce

Version ⁨25.02.5 (29192d15)⁩
Python 3.13.3 Qt 6.9.0 PyQt 6.9.0
ArchLinux, Hyprland

Error dilogue pops up and after closing it anki dosen’t take input except toolbar menu (file, tools … ) but even then i have to force kill anki.

Till now i have had this error 10 or more times but can’t figure out how to reproduce. only hope now is the log.

Anki 25.02.5 (29192d15) (src) (ao)
Python 3.13.3 Qt 6.9.0 PyQt 6.9.0
Platform: Linux-6.14.6-arch1-1-x86_64-with-glibc2.41

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/aqt/mediasrv.py", line 121, in run
    self.server.run()
    ~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/waitress/server.py", line 325, in run
    self.asyncore.loop(
    ~~~~~~~~~~~~~~~~~~^
        timeout=self.adj.asyncore_loop_timeout,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        map=self._map,
        ^^^^^^^^^^^^^^
        use_poll=self.adj.asyncore_use_poll,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.13/site-packages/waitress/wasyncore.py", line 240, in loop
    poll_fun(timeout, map)
    ~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/waitress/wasyncore.py", line 167, in poll
    r, w, e = select.select(r, w, e, timeout)
              ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
ValueError: filedescriptor out of range in select()
Exception in threading.excepthook:
Exception ignored in thread started by <bound method Thread._bootstrap of <MediaServer(Thread-1, started 132283180775104)>>:
Traceback (most recent call last):
  File "/usr/lib/python3.13/threading.py", line 1012, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib/python3.13/threading.py", line 1043, in _bootstrap_inner
    self._invoke_excepthook(self)
  File "/usr/lib/python3.13/threading.py", line 1300, in invoke_excepthook
    local_print("Exception in threading.excepthook:",
AttributeError: 'ErrorHandler' object has no attribute 'flush'
Exception ignored in sys.unraisablehook: <built-in function unraisablehook>
AttributeError: 'ErrorHandler' object has no attribute 'flush'
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AJT Card Management  Reset Learn and Grade cards from the Anki Browser ['1021636467', 2025-04-12T12:48, 'None', '']
Add Table ['1237621971', 2023-06-18T17:07, 'None', mod]
Advanced Browser ['874215009', 2024-10-27T19:50, 'None', '']
Advanced Review Bottom Bar ['1136455830', 2024-08-22T16:34, 'None', mod]
Clickable Tags v20 ['1739176371', 2022-01-31T04:28, 'None', '']
Edit Field During Review Cloze ['385888438', 2025-04-20T19:04, '6.22', mod]
Enhanced Cloze for Anki 21 ['1990296174', 2023-09-11T00:18, 'None', mod]
FSRS Helper Postpone  Advance  Load Balance  Easy Days  Disperse Siblings ['759844606', 2025-05-06T09:55, 'None', mod]
Fastbar- with nightmode support ['46611790', 2025-01-28T04:22, 'None', '']
Highlight Code ['112228974', 2025-03-13T10:20, 'None', '']
Image Occlusion Enhanced ['1374772155', 2022-04-09T12:45, 'None', '']
Mini Format Pack ['295889520', 2023-11-02T23:30, 'None', '']
New Format Pack ['1187194862', 2021-08-10T06:11, 'None', '']
Not FreeProgress Bar For Anki - Chunking Anki Cards Created by Shige ['1594977234', 2024-05-30T20:46, 'None', '']
Postpone cards review ['1152543397', 2023-04-15T07:59, 'None', '']
Progress Bar cards done cards left secondscard time spentleft and ETA ['1097423555', 2023-10-02T13:35, 'None', '']
Review Heatmap ['1771074083', 2022-06-30T07:13, 'None', '']
Speed Focus Mode auto-alert auto-reveal auto-answer ['1046608507', 2022-12-16T16:54, 'None', '']
Text Formatting and Editing in the Context Menu ['2143302836', 2025-04-14T20:59, 'None', '']

===IDs of active AnkiWeb add-ons===
1021636467 1046608507 1097423555 112228974 1136455830 1152543397 1187194862 1237621971 1374772155 1594977234 1739176371 1771074083 1990296174 2143302836 295889520 385888438 46611790 759844606 874215009

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AJT Browser Play Button ['182970692', 2025-03-08T01:44, 'None', '']
AJT Merge Notes  Merge and Duplicate notes ['1425504015', 2024-09-18T01:05, 'None', '']
AnKing Note Types Easy Customization ['952691989', 2025-05-14T05:38, 'None', '']
Anki Simulator ['817108664', 2023-11-06T22:56, 'None', '']
Anki-redesign ['308574457', 2023-02-05T00:13, 'None', mod]
Better Editor ['214746624', 2022-12-31T20:46, 'None', '']
Custom Background Image and Gear Icon ['1210908941', 2025-01-29T14:01, 'None', '']
Customize Keyboard Shortcuts ['24411424', 2023-11-01T14:47, 'None', '']
Defer Cards Not to answer them immediately ['149564514', 2024-10-08T02:45, 'None', '']
Editor Live Preview ['1960039667', 2024-03-05T05:29, 'None', mod]
Enhance main window ['877182321', 2023-10-23T01:58, 'None', '']
Fill the blanks - Multiple typecloze support ['1933645497', 2025-03-28T01:40, 'None', '']
Let it Snow ['321075516', 2022-12-25T04:47, 'None', '']
Life Drain ['715575551', 2024-12-03T12:14, 'None', '']
Multiple Choice for Anki ['1566095810', 2023-11-18T02:29, 'None', '']
Numeric Keypad Remapping  ease bugs fixed ['653807651', 2022-01-07T19:45, 'None', mod]
ReColor ['688199788', 2025-01-28T16:53, '3.1', mod]
Searching PDF Reading  Note-Taking in Add Dialog ['1781298089', 2022-08-15T12:52, 'None', mod]
The KING of Button Add-ons ['374005964', 2025-01-28T03:56, 'None', mod]
extended editor for field for tables searchreplace ['805891399', 2023-07-31T19:42, 'None', mod]
1 Like

Hey, I’m getting the same error. I’m also using Arch, and the same version of Anki. I just re-installed Anki today, and was greeted with the error after installing the " extended editor for field" add-on, but it goes away after I uninstall it. this is the link to the add-on causing my error https://ankiweb.net/shared/info/805891399

3 Likes

Maybe your Python version is too new. Anki is most tested with python 3.9 so using like python 3.12+ will sometimes cause bugs in some add-ons. (Anki for Windows and MacOS still uses 3.9 so most add-ons are developed with 3.9)

i don’t have this addon. Also my anki crash randomly and not at start.

This is where flatpak shines. Will try flatpak version for a week. Thanks for the info.

1 Like