Skip to content

Browse window crashes when selecting item on Ubuntu 22.04.5 LTS #318

@Cobradabest

Description

@Cobradabest

I've just upgraded to the latest version of Anki via Flatpak today and it has randomly started crashing whenever I go to the browse window, make a search and then select any item within the results.

I’ve tried resetting windows sizes & changing rendering to software in the settings, I’ve tried clicking Check Database, and I have tried disabling add-ons. None of it makes a difference. I don’t even get an error when it happens when I run it from the terminal.

Starting Anki 25.09.2...
Gtk-Message: 00:26:07.726: Failed to load module "xapp-gtk3-module"
Qt warning: Qt: Session management error: Could not open network socket 
2026-01-19 00:26:07,801:INFO:aqt.mediasrv: Serving on http://127.0.0.1:44811
[2:22:0119/002608.388147:ERROR:bus.cc(408)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
gettext _() is deprecated: 
<img src="/_addons/1321246682/user_files/assets/icons/deck browser icons/get shared.svg" style="margin-top: -5px; margin-right:5px">
 Get Shared 
gettext _() is deprecated: 
<img src="/_addons/1321246682/user_files/assets/icons/deck browser icons/create deck.svg" style="margin-top: -5px; margin-right:5px">
Create Deck
gettext _() is deprecated: 
<img src="/_addons/1321246682/user_files/assets/icons/deck browser icons/import file.svg" style="margin-top: -5px; margin-right:5px">
 Import File
'AnkiQt' object has no attribute 'addon_view_menu'
FORVO: Looking for word
HTTP Error 403: Forbidden
FORVO: Word not found (Page does not exist!)
Starting main loop...
deckDueTree() is deprecated; use decks.deck_tree() for a tree without counts, or sched.deck_due_tree()
addons21/1321246682/deck_browser.py:76:dayCutoff is deprecated: please use 'day_cutoff'
ngettext() is deprecated: %s <br>  minutes
awesometts/gui/homescreen.py:61:night_mode() is deprecated: use theme_manager.night_mode
gettext _() is deprecated: Shortcut key: %s
Not found: 1321246682/user_files/assets/deck_icons/Cat Signals.png
Not found: 1321246682/user_files/assets/deck_icons/Default.png
Not found: 1321246682/user_files/assets/deck_icons/I am Groot.png
Not found: 1321246682/user_files/assets/deck_icons/Makaton.png
Not found: 1321246682/user_files/assets/deck_icons/Muisic.png
Not found: 1321246682/user_files/assets/deck_icons/Martial Arts.png
Not found: 1321246682/user_files/assets/deck_icons/Robotics.png
JS error /_anki/legacyPageData?id=140123370395824:738 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
conf key anki_ipa_conf should be fetched with col.get_config(), and saved with col.set_config()
conf key anki_ipa_conf should be fetched with col.get_config(), and saved with col.set_config()
blocked main thread for 441ms:
  File "/app/bin/anki", line 8, in <module>
    sys.exit(run())
  File "/app/lib/python3.13/site-packages/aqt/__init__.py", line 565, in run
    _run()
  File "/app/lib/python3.13/site-packages/aqt/__init__.py", line 772, in _run
    app.exec()
  File "/app/lib/python3.13/site-packages/aqt/webview.py", line 188, in cmd
    return json.dumps(self.onCmd(str))
  File "/app/lib/python3.13/site-packages/aqt/webview.py", line 275, in _onCmd
    return self._onBridgeCmd(str)
  File "/app/lib/python3.13/site-packages/aqt/webview.py", line 806, in _onBridgeCmd
    return self.onBridgeCmd(cmd)
  File "/app/lib/python3.13/site-packages/aqt/toolbar.py", line 430, in _linkHandler
    self.link_handlers[link]()
  File "/app/lib/python3.13/site-packages/aqt/toolbar.py", line 448, in _browseLinkHandler
    self.mw.onBrowse()
  File "/app/lib/python3.13/site-packages/aqt/main.py", line 1287, in onBrowse
    aqt.dialogs.open("Browser", self, card=self.reviewer.card)
  File "/app/lib/python3.13/site-packages/aqt/__init__.py", line 151, in open
    instance = creator(*args, **kwargs)
  File "/app/lib/python3.13/site-packages/aqt/browser/browser.py", line 181, in __init__
    self.setupSearch(card, search)
  File "/app/lib/python3.13/site-packages/aqt/browser/browser.py", line 492, in setupSearch
    self._default_search(card)
  File "/app/lib/python3.13/site-packages/aqt/browser/browser.py", line 573, in _default_search
    self.search_for(search, prompt)
  File "/app/lib/python3.13/site-packages/aqt/browser/browser.py", line 521, in search_for
    self.search()
  File "/app/lib/python3.13/site-packages/aqt/browser/browser.py", line 530, in search
    self.table.search(self._lastSearchTxt)
  File "/app/lib/python3.13/site-packages/aqt/browser/table/table.py", line 190, in search
    self._model.search(SearchContext(search=txt, browser=self.browser))
  File "/app/lib/python3.13/site-packages/aqt/browser/table/model.py", line 260, in search
    self._search_inner(context)
  File "/app/lib/python3.13/site-packages/aqt/browser/table/model.py", line 275, in _search_inner
    context.ids = self._state.find_items(
  File "/app/lib/python3.13/site-packages/aqt/browser/table/state.py", line 159, in find_items
    return self.col.find_cards(search, order, reverse)
  File "/app/lib/python3.13/site-packages/anki/collection.py", line 666, in find_cards
    Sequence[CardId], self._backend.search_cards(search=query, order=mode)
  File "/app/lib/python3.13/site-packages/anki/_backend_generated.py", line 1739, in search_cards
    raw_bytes = self._run_command(29, 1, message.SerializeToString())
  File "/app/lib/python3.13/site-packages/anki/_backend.py", line 167, in _run_command
    print("".join(traceback.format_stack()))

JS warning /_anki/js/editor.js:439 No version information available for component [tex]/noerrors
JS warning /_anki/js/editor.js:439 No version information available for component [tex]/mathtools
JS error /_anki/legacyPageData?id=140119724288080:15 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src http://127.0.0.1:44811/_anki/ http://127.0.0.1:44811/_addons/". Either the 'unsafe-inline' keyword, a hash ('sha256-f3wtcC4CX2axMVZCM9NhKCJWAIi/INpRKRXWBftiAac='), or a nonce ('nonce-...') is required to enable inline execution.

uncaught cmd test_IPA_loaded
blocked main thread for 561ms:
  File "/app/bin/anki", line 8, in <module>
    sys.exit(run())
  File "/app/lib/python3.13/site-packages/aqt/__init__.py", line 565, in run
    _run()
  File "/app/lib/python3.13/site-packages/aqt/__init__.py", line 772, in _run
    app.exec()
  File "/app/lib/python3.13/site-packages/aqt/webview.py", line 745, in handler
    cb(val)
  File "/app/lib/python3.13/site-packages/aqt/editor.py", line 658, in <lambda>
    self.web.evalWithCallback("saveNow(%d)" % keepFocus, lambda res: callback())
  File "/app/lib/python3.13/site-packages/aqt/utils.py", line 1329, in <lambda>
    self.editor.call_after_note_saved(lambda: func(self, *args, **kwargs))
  File "/app/lib/python3.13/site-packages/aqt/browser/browser.py", line 508, in onSearchActivated
    self.search_for(normed)
  File "/app/lib/python3.13/site-packages/aqt/browser/browser.py", line 521, in search_for
    self.search()
  File "/app/lib/python3.13/site-packages/aqt/browser/browser.py", line 530, in search
    self.table.search(self._lastSearchTxt)
  File "/app/lib/python3.13/site-packages/aqt/browser/table/table.py", line 190, in search
    self._model.search(SearchContext(search=txt, browser=self.browser))
  File "/app/lib/python3.13/site-packages/aqt/browser/table/model.py", line 260, in search
    self._search_inner(context)
  File "/app/lib/python3.13/site-packages/aqt/browser/table/model.py", line 275, in _search_inner
    context.ids = self._state.find_items(
  File "/app/lib/python3.13/site-packages/aqt/browser/table/state.py", line 159, in find_items
    return self.col.find_cards(search, order, reverse)
  File "/app/lib/python3.13/site-packages/anki/collection.py", line 666, in find_cards
    Sequence[CardId], self._backend.search_cards(search=query, order=mode)
  File "/app/lib/python3.13/site-packages/anki/_backend_generated.py", line 1739, in search_cards
    raw_bytes = self._run_command(29, 1, message.SerializeToString())
  File "/app/lib/python3.13/site-packages/anki/_backend.py", line 167, in _run_command
    print("".join(traceback.format_stack()))

Here is also the debug info, if it helps.

Anki 25.09.2 (3890e12c) (ao)
Python 3.13.11 Qt 6.10.1 PyQt 6.10.2
Platform: Linux-6.2.0-39-generic-x86_64-with-glibc2.42

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Anki IPA - Add phonetic symbols Fixed by Shige ['391848360', 2025-12-16T00:16, 'None', mod]
Anki Wrapped ['1138356489', 2025-07-20T23:41, 'None', '']
AnkiStreak ['392667675', 2025-07-23T20:43, 'None', '']
Ankitty ['1319623242', 2024-07-06T12:26, 'None', '']
AwesomeTTS - Add speech to your flashcards ['1436550454', 2025-08-16T02:02, 'None', mod]
Batch Editing ['291119185', 2023-10-26T01:38, 'None', '']
Browser Search By Word Count ['307706071', 2023-10-11T00:13, 'None', '']
Deck  Media Duplication ['293224070', 2024-08-26T16:17, 'None', '']
Deck name in title 21 ['699175524', 2019-06-01T02:05, 'None', '']
Duolingo-style gamification -- visual audio and haptic feedback ['255048658', 2025-07-02T17:59, 'None', mod]
HyperTTS - Add speech to your flashcards ['111623432', 2026-01-16T14:13, 'None', mod]
JapaneseFurigana ['678316993', 2025-07-10T17:56, 'None', mod]
Memrise Cards Lt ['884199977', 2025-12-03T06:05, 'None', '']
Modern Material Theme  - Updated 062025 ['1321246682', 2025-04-16T07:31, 'None', '']
Play a celebrationcompletion sound when you finish your deck ['978869609', 2024-01-12T04:43, 'None', mod]
Progress bar - Visualize reviewed cards and remaining Fixed by Shige ['1708250053', 2024-11-10T20:00, 'None', mod]
Quizlet to Anki 21 Importer with audio support ['1362209126', 2026-01-17T20:44, 'None', '']
Simple Forvo Audio Downloader ['560814150', 2024-09-08T14:03, 'None', '']
Zoom for Anki25 - Keep zoom level after reboot Fixed by Shige ['1923741581', 2025-10-18T03:25, 'None', mod]
memrise2anki ['memrise2anki', 0, 'None', '']
tts for linux use Kokoro-FastAPI ['733203228', 2025-07-28T10:03, 'None', '']

===IDs of active AnkiWeb add-ons===
111623432 1138356489 1319623242 1321246682 1362209126 1436550454 1708250053 1923741581 255048658 291119185 293224070 307706071 391848360 392667675 560814150 678316993 699175524 733203228 884199977 978869609

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
'' ['anki-forvo-enrich', 0, 'None', mod]
Anki Habitica for 21 ['1758045507', 2026-01-14T07:20, 'None', '']
Anki Killstreaks - Reward Medals for Correct Answers Fixed by Shige ['1562475180', 2025-06-23T06:46, 'None', mod]
Anki Leaderboard - Compete with friends to boost motivation Custom by Shige ['175794613', 2026-01-12T23:24, 'None', mod]
Anki-Pacman Gamify Your Anki Experience ['927867318', 2025-02-28T15:18, 'None', '']
AnkiScape RuneScape Anki ['1808450369', 2025-08-18T23:00, 'None', '']
Ankihoot - Kahoot style gamification ['641957575', 2025-03-24T07:50, 'None', '']
Automatically flip cards ['631932779', 2021-10-10T16:28, 'None', '']
Forvo Pronunciation Downloader Fixed by Shige ['1784714388', 2025-10-12T08:31, 'None', mod]
Forvo Search ['1145562653', 2025-04-20T00:14, 'None', mod]
Hitmarkers ['1776869150', 2024-02-24T11:19, 'None', '']
Korean Support ['1336389630', 2025-06-16T22:25, 'None', '']
Offline reverso import ['759963787', 2025-07-22T15:13, 'None', '']
PassFail 2 Remove the Easy and Hard buttons ['876946123', 2024-06-04T02:56, 'None', '']
Reviewer Retest Questions after rating Again until you get it ['940071295', 2025-07-12T01:08, 'None', '']
Templates Import and Export Fixed by Shige ['2032572419', 2024-02-28T07:17, 'None', '']

I've also noticed it crashing randomly when I try to edit a card I'm currently reviewing.

Is there anything I can do to stop it from crashing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions