Skip to content

Error: Filedescriptor out of range #221

@h0tp-ftw

Description

@h0tp-ftw

Hello! This issue is triggered after an extended session of anki, when I have done a lot of cards and reached the 1024 FD limit. I wasn't sure if the flatpak packaging specifically was the reason this error would happen, that's why I have shared it here. Any help is appreciated. Thank you!

Anki 25.02.4 (a5c33ad0) (src) (ao)
Python 3.12.10 Qt 6.9.0 PyQt 6.9.0
Platform: Linux-6.15.6-103.bazzite.fc42.x86_64-x86_64-with-glibc2.40

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
self.run()
File "/app/lib/python3.12/site-packages/aqt/mediasrv.py", line 121, in run
self.server.run()
File "/app/lib/python3.12/site-packages/waitress/server.py", line 325, in run
self.asyncore.loop(
File "/app/lib/python3.12/site-packages/waitress/wasyncore.py", line 240, in loop
poll_fun(timeout, map)
File "/app/lib/python3.12/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 140185335187136)>>
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1032, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.12/threading.py", line 1077, in _bootstrap_inner
self._invoke_excepthook(self)
File "/usr/lib/python3.12/threading.py", line 1391, in invoke_excepthook
local_print("Exception in threading.excepthook:",
AttributeError: 'ErrorHandler' object has no attribute 'flush'
Exception ignored in sys.unraisablehook:
AttributeError: 'ErrorHandler' object has no attribute 'flush'

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
'' ['1908235722', 0, 'None', mod]
Addon Config Sync ['60290354', 2024-05-21T13:11, 'None', '']
Anki Leaderboard - Compete with friends to boost motivation Custom by Shige ['175794613', 2025-05-14T16:23, 'None', mod]
Anki Leaderboard Plus - Customized by Shige ['AnkiLeaderBoardPlus', 0, 'None', mod]
Anki Terminator V2 - ChatGPT DeepSeek Sidebar for Reviewer Created by Shige ['1468920185', 2025-06-23T06:07, 'None', mod]
Chartpopup Show Reference Images During Review ['317566972', 2025-06-27T14:03, 'None', '']
Custom Background Image and Gear Icon ['1210908941', 2025-06-22T07:27, 'None', mod]
Image Occlusion Enhanced ['1374772155', 2022-04-09T01:15, 'None', '']
Rebuild All Empty All for Anki 21 ['1810938259', 2018-07-19T22:40, 'None', '']
Review Heatmap ['1771074083', 2022-06-29T19:43, 'None', '']
Review Hotmouse ['1928346827', 2024-11-25T18:07, '2.12', mod]

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions