AnkiHub Add on Error

The category for general support questions related to using AnkiHub.

Things not to ask about here:

Please include supporting information and documents such as screenshots, recordings, etc.

Hello,

I am still having some issues with the ankihub add on. I have deleted the add-on and redownloaded it twice now, and it still prompts me with the “oh no!…” error whenever I open Anki. My laptop will freeze up, so it doesnt allow me to click “report error”.

Thinking

Search
Found 0 results for ‘tags:official “oh no! AnkiHub add-on” error Mac category::person_raising_hand: Support order:latest_topic max_posts:10 status:open’

Thanks for the screenshot and details—that helps.

Because your Mac is freezing before you can click “Report Error”, let’s first try to get Anki to open without AnkiHub, then narrow down the cause.


1. Confirm basic info

Please reply with:

  1. Anki version (e.g. 24.04, 23.12, etc.)
  2. macOS version (e.g. Sonoma 15.x, Ventura 13.x, etc.)
  3. The exact text of the “Oh no!” error if you can copy/paste it (or a close-up screenshot just of the error window).

This matters because some Anki versions aren’t compatible with certain AnkiHub versions.


2. Start Anki without add-ons (to stop the freezing)

  1. Completely quit Anki (Cmd+Q; make sure it’s not running in the Dock).
  2. Hold Shift on your keyboard.
  3. While holding Shift, open Anki.
  4. Keep holding Shift until a dialog appears asking whether to start without add-ons; choose Yes.

Questions:

  • Does Anki open normally in this mode (no “Oh no!” window, no freezing)?
    • If it still freezes even without add-ons, this is likely a core Anki issue → in that case, AnkiHub can’t fix it, and you’ll want to post on the Anki Support Forum with your system info.
    • If it works fine without add-ons, then the problem is almost certainly AnkiHub or another add-on.

3. Check if it’s specifically the AnkiHub add-on

If Anki opens correctly in no-add-ons mode:

  1. Go to Tools → Add-ons.
  2. Look for AnkiHub in the list.
  3. Click AnkiHub and then:
    • First try Toggle Enabled (disable it), then restart Anki normally.
    • If Anki opens fine with AnkiHub disabled, re-enable AnkiHub and restart again.
  4. If enabling AnkiHub brings the “Oh no!” error back, we’ve confirmed it’s AnkiHub.

Also, from the Add-ons window, click Check for Updates and update any add-ons (especially AnkiHub) that show updates available.


4. If your system freezes before you can do anything

If the “Oh no!” window appears immediately and macOS becomes unresponsive before you can even hold Shift:

  • Try restarting your Mac, and after reboot:
    • Open Anki while holding Shift before clicking anywhere else.
  • If this still completely freezes macOS every time, that suggests a deeper system/graphics issue. In that case:
    • Try temporarily disconnecting external monitors (if any) and opening Anki again.
    • If you can manage to start in safe mode on macOS and open Anki, let us know what happens.

5. If you manage to get the error log

If at some point your Mac stops freezing long enough that you can press “Show Details” in the “Oh no!” window:

  1. Click Show Details.
  2. Copy the full error text.
  3. Paste it here in your reply (in a code block using ``` like below):
<error message here>

That log is extremely helpful for pinpointing whether it’s a version incompatibility, network issue, or something else.


Next steps

For now, please:

  1. Try starting Anki with Shift held to disable add-ons.
  2. Let me know:
    • Whether Anki opens without freezing.
    • Your Anki version and macOS version.
    • Any error text you’re able to capture.

Once you share those, I can give you more specific, step‑by‑step instructions tailored to your setup.

yes it opens without freezing when add ons are disabled. I have the most recent updated anki, and MacOS 15.7.7 (24G720)

Thinking

Search
Found 0 results for ‘tags:official “oh no” AnkiHub add-on MacOS 15 category::person_raising_hand: Support order:latest_topic max_posts:10 status:open’

Perfect, that narrows it down a lot—this means an add-on is causing the issue, and very likely AnkiHub or a conflict with another add-on (since Anki + macOS 15.7.7 works fine without add-ons).

Let’s go step by step.


1. Make sure AnkiHub is fully up to date

  1. Start Anki with add-ons enabled (normally), let it show the “Oh no!” window, but don’t click anything yet.
  2. If it freezes too quickly, instead:
    • Start Anki with Shift held → “Yes” to start without add-ons.
  3. Go to Tools → Add-ons.
  4. Click Check for Updates (bottom right).
  5. If AnkiHub shows an update, install it, then restart Anki normally and see if the error still appears.

If after updating everything the problem persists, continue below.


2. Confirm it’s specifically AnkiHub

Since Anki runs fine with add-ons disabled, now:

  1. Start Anki with Shift again → “Yes” (no add-ons).
  2. Go to Tools → Add-ons.
  3. In the add-ons list:
    • Disable everything except AnkiHub:
      • Select each add-on → click Toggle Enabled until only AnkiHub is enabled.
  4. Restart Anki normally (no Shift).

What happens?

  • If the “Oh no!” error comes back, we’ve confirmed it’s AnkiHub itself.
  • If it doesn’t come back, another add-on is conflicting—then we’ll re‑enable them one by one.

Please let me know which case you see.


3. If it is AnkiHub: reinstall cleanly

If enabling only AnkiHub brings the error back:

  1. Start Anki with Shift → no add-ons.
  2. Go to Tools → Add-ons.
  3. Select AnkiHub → click Delete.
  4. Fully quit Anki (Cmd+Q).
  5. Reinstall AnkiHub following this guide:
    :backhand_index_pointing_right: https://community.ankihub.net/docs/install-ankihub-addon

After reinstalling, open Anki normally and see whether the error still appears.


4. If it’s a conflict with another add-on

If Anki works fine with only AnkiHub enabled:

  1. In Tools → Add-ons, re‑enable your other add-ons one at a time:
    • Enable one add-on → restart Anki → see if “Oh no!” appears.
  2. When the error returns, the last add-on you enabled is likely conflicting.
  3. Leave that add-on disabled and let me know its name so we can check known conflicts.

5. Please send the error text if possible

If you can:

  1. When the “Oh no!” window shows, click Show Details (if your Mac doesn’t freeze immediately).
  2. Copy the full error text and paste it here inside:
<paste the full error here>

That will tell us whether it’s, for example, a version incompatibility with Anki 24.x on macOS 15, a network/SSL issue, or something else.


What I need from you next

Reply with:

  1. Result of “only AnkiHub enabled” test (Section 2).
  2. Whether a fresh reinstall of AnkiHub fixed it (Section 3).
  3. If available, the full error message text from “Show Details”.

Once I have that, I can give you more targeted instructions (or confirm if it’s a known bug with the latest Anki/OS version).

I did reinstall, giving same issue

I keep receiving AnkiHub add on errors when I try to open the app. I have deleted and redownloaded the add on, and the same issue persist. The app freezes up when this error happens so I can not click “report error”.

Thinking

Search
Found 0 results for ‘tags:official AnkiHub add-on error app freezes cannot click report error category::person_raising_hand: Support order:latest max_posts:20 status:open’

Thanks for the screenshot and details—that helps a lot.

Because the app is freezing before you can click “Report error”, let’s try to (1) get the actual error text and (2) rule out common conflicts.

1. Get the error text manually

If possible, could you please:

  1. Reproduce the error.
  2. Take a full-size screenshot of the error popup so the entire message is readable, and upload it here.
    • If there’s a Details / More / Copy button, click it and paste the text.

Without that error text, we’re mostly guessing.

2. Check basic setup

Please confirm:

  1. Anki version & platform

    • Go to Help → About in Anki and let us know:
      • Anki version (e.g. 24.06, 2.1.65, etc.)
      • Your OS (e.g. macOS Sonoma/Ventura, Windows 11, etc.)
  2. Only AnkiHub enabled

    • Start Anki with add-ons disabled:
      • Hold Shift while starting Anki.
      • If it opens, go to Tools → Add-ons and:
        1. Enable only AnkiHub.
        2. Restart Anki normally.
    • Let us know:
      • Does the freeze happen only with AnkiHub enabled?
      • Or also when other add-ons are enabled?
  3. Reinstall with config cleared
    Since you already reinstalled, let’s also reset its config:

    1. Tools → Add-ons → AnkiHub → View Files…
    2. Close Anki.
    3. In the file explorer that opened, go one folder up and look for a folder related to AnkiHub.
      • You can temporarily move that folder to your Desktop (this resets AnkiHub’s settings/cache).
    4. Reopen Anki.

    Check if the error still appears.

3. If Anki won’t open at all

If Anki freezes immediately on startup:

  1. Start Anki with add-ons disabled (hold Shift).
  2. In Tools → Add-ons, disable AnkiHub.
  3. Restart Anki normally and confirm that:
    • Anki works with AnkiHub disabled.
  4. Then re-enable AnkiHub and restart—note exactly when the error appears (on launch, on sync, when you open a deck, etc.).

Please reply with:

  • Your Anki version and OS.
  • A clear screenshot or copy of the complete error text.
  • Results of:
    • Starting with add-ons disabled.
    • Running with only AnkiHub enabled.

With that info we can narrow down whether this is a version compatibility issue, a bug specific to macOS, or a conflict with another add-on.

Hello, I see that you reported the same error in this other thread a few days ago: AnkiHub add on error - #18 by MarcosZan

I sent a solution, but you did not let me know whether it worked. Please try the following:

  • Starti Anki in safe mode, it will temporarily disable all add-ons. To do this, open Anki while holding down the Shift key (make sure you see the pop-up confirming you are in safe mode.).
  • Go to Tools > Add-ons. Select the AnkiHub Add-on and delete it.
  • Close Anki, then open it normally. Go to Tools > Add-ons, get add-ons, and put this code: 1322529746
  • Restart Anki
  • Go to AnkiHub > sign in.

If it doesn’t work, start Anki in safe mode again, disable all add-ons except the AnkiHub add-on, restart Anki, and see if the error continues to happen

Hello, when I disabled all add-ons except AnkiHub, it worked.

Here is the new error details:

Anki 26.09.4 (c06370ff) (ao)

Python 3.13.17 Qt 6.11.2 PyQt 6.11.0

Platform: macOS-15.7.7-arm64-arm-64bit-Mach-O

Traceback (most recent call last):

File “/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1049863218/_init_.py”, line 395, in eventFilter

if event.type() in [QEvent.WindowStateChange]:

^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: type object ‘QEvent’ has no attribute ‘WindowStateChange’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File “/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1322529746/gui/utils.py”, line 505, in sizeHint

return QSize(450, super().sizeHint().height())

^^^^^^^^^^^^^^^^

SystemError: <class ‘super’> returned a result with an exception set

The above exception was the direct cause of the following exception:

SystemError: <class ‘PyQt6.QtGui.QTextDocument’> returned a result with an exception set

The above exception was the direct cause of the following exception:

SystemError: <class ‘PyQt6.QtGui.QTextDocument’> returned a result with an exception set

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File “/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py”, line 152, in raise_exception

File “/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py”, line 148, in _on_closures_pending

File “/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1322529746/gui/utils.py”, line 93, in

lambda: show_dialog(message, title=title, icon=warning_icon(), *args, **kwargs) # type: ignore

~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1322529746/gui/utils.py”, line 641, in show_dialog

dialog = _Dialog(

parent=parent,

…<8 lines>…

checkbox=checkbox,

)

File “/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1322529746/gui/utils.py”, line 502, in _init_

self._setup_ui()

~~~~~~~~~~~~~~^^

File “/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1322529746/gui/utils.py”, line 560, in _setup_ui

self.adjustSize()

~~~~~~~~~~~~~~~^^

SystemError: <built-in method adjustSize of _Dialog object at 0x15ee0ac10> returned a result with an exception set

Hello,

If it works with all add-ons disabled except AnkiHub, the issue is caused by another add-on. I recommend enabling half of your add-ons to see if the issue returns, narrowing it down to find the culprit.