Hi, a user reported a break in the Kanji Grid Kuuube addon from this update. The all_names_and_ids
method appears to be broken. Calling it results in a crash without any logs from Anki.
Windows event viewer logs the following error:
Faulting application name: anki.exe, version: 0.0.0.0, time stamp: 0x66f6873c
Faulting module name: _message.cp39-win_amd64.pyd, version: 0.0.0.0, time stamp: 0x66cf5411
Exception code: 0xc0000005
Fault offset: 0x00000000000110f8
Faulting process id: 0x0xA83C
Faulting application start time: 0x0x1DB15B74B7B1534
Faulting application path: C:\Users\username_removed\AppData\Local\Programs\Anki\anki.exe
Faulting module path: C:\Users\username_removed\AppData\Local\Programs\Anki\lib\google\_upb\_message.cp39-win_amd64.pyd
Report Id: c10337f5-c99f-4cf3-a2e3-b5668f0e3221
Faulting package full name:
Faulting package-relative application ID:
This occurs on anki-24.10-windows-qt6
. It does not occur on linux or the previous windows version,anki-24.06.3-windows-qt6
.
The following code in the __init.py__
of an addon can replicate this issue (load up Anki and click the “Run the bug” menu button):
from aqt import mw
from aqt.qt import (QAction)
def setup(mw):
def the_bug():
mw.col.models.all_names_and_ids()
menuAction = QAction("Run the bug", mw, triggered=the_bug)
mw.form.menuTools.addSeparator()
mw.form.menuTools.addAction(menuAction)
if __name__ != "__main__":
setup(mw)