Need help for Debug Info

My Anki card desktop constantly shut down/froze, and it generates a Debug info as below.

Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.19045

— Logging error —
Traceback (most recent call last):
File “logging.handlers”, line 74, in emit
File “logging.handlers”, line 177, in doRollover
File “logging.handlers”, line 115, in rotate
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\Users\medic\AppData\Roaming\AnkiHub\ankihub.log’ → ‘C:\Users\medic\AppData\Roaming\AnkiHub\ankihub.log.1’
Call stack:
File “”, line 1, in
File “aqt”, line 509, in run
File “aqt”, line 717, in _run
File “aqt.webview”, line 50, in cmd
File “aqt.webview”, line 157, in _onCmd
File “aqt.webview”, line 686, in onBridgeCmd
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File "C:\Users\medic\AppData\Roaming\Anki2\addons21\907028815_init
.py", line 623, in myLinkHandler
return _old(self, url)
File “aqt.toolbar”, line 411, in _linkHandler
File “aqt.toolbar”, line 435, in _syncLinkHandler
File “aqt.main”, line 1046, in on_sync_button_clicked
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\threading_utils.py”, line 26, in wrapper
return func(*args, **kwargs)
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 69, in _rate_limited
_old(*args, **kwargs)
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 104, in _on_ankiweb_sync
_maybe_sync_with_ankihub(on_done=sync_with_ankiweb)
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 111, in _maybe_sync_with_ankihub
LOGGER.info(“Running _maybe_sync_with_ankihub”)
File “logging”, line 1446, in info
File “logging”, line 1589, in _log
File “logging”, line 1599, in handle
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\lib\sentry_sdk\integrations\logging.py”, line 96, in sentry_patched_callhandlers
return old_callhandlers(self, record)
File “logging”, line 1661, in callHandlers
File “logging”, line 952, in handle
File “logging.handlers”, line 77, in emit
Message: ‘Running _maybe_sync_with_ankihub’
Arguments: ()
— Logging error —
Traceback (most recent call last):
File “logging.handlers”, line 74, in emit
File “logging.handlers”, line 177, in doRollover
File “logging.handlers”, line 115, in rotate
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\Users\medic\AppData\Roaming\AnkiHub\ankihub.log’ → ‘C:\Users\medic\AppData\Roaming\AnkiHub\ankihub.log.1’
Call stack:
File “”, line 1, in
File “aqt”, line 509, in run
File “aqt”, line 717, in _run
File “aqt.webview”, line 50, in cmd
File “aqt.webview”, line 157, in _onCmd
File “aqt.webview”, line 686, in onBridgeCmd
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File "C:\Users\medic\AppData\Roaming\Anki2\addons21\907028815_init
.py", line 623, in myLinkHandler
return _old(self, url)
File “aqt.toolbar”, line 411, in _linkHandler
File “aqt.toolbar”, line 435, in _syncLinkHandler
File “aqt.main”, line 1046, in on_sync_button_clicked
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\threading_utils.py”, line 26, in wrapper
return func(*args, **kwargs)
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 69, in _rate_limited
_old(*args, **kwargs)
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 104, in _on_ankiweb_sync
_maybe_sync_with_ankihub(on_done=sync_with_ankiweb)
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 123, in _maybe_sync_with_ankihub
LOGGER.info(“Not syncing with AnkiHub”)
File “logging”, line 1446, in info
File “logging”, line 1589, in _log
File “logging”, line 1599, in handle
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\lib\sentry_sdk\integrations\logging.py”, line 96, in sentry_patched_callhandlers
return old_callhandlers(self, record)
File “logging”, line 1661, in callHandlers
File “logging”, line 952, in handle
File “logging.handlers”, line 77, in emit
Message: ‘Not syncing with AnkiHub’
Arguments: ()
— Logging error —
Traceback (most recent call last):
File “logging.handlers”, line 74, in emit
File “logging.handlers”, line 177, in doRollover
File “logging.handlers”, line 115, in rotate
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\Users\medic\AppData\Roaming\AnkiHub\ankihub.log’ → ‘C:\Users\medic\AppData\Roaming\AnkiHub\ankihub.log.1’
Call stack:
File “”, line 1, in
File “aqt”, line 509, in run
File “aqt”, line 717, in _run
File “aqt.webview”, line 50, in cmd
File “aqt.webview”, line 157, in _onCmd
File “aqt.webview”, line 686, in onBridgeCmd
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File "C:\Users\medic\AppData\Roaming\Anki2\addons21\907028815_init
.py", line 623, in myLinkHandler
return _old(self, url)
File “aqt.toolbar”, line 411, in _linkHandler
File “aqt.toolbar”, line 435, in _syncLinkHandler
File “aqt.main”, line 1046, in on_sync_button_clicked
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\threading_utils.py”, line 26, in wrapper
return func(*args, **kwargs)
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 69, in _rate_limited
_old(*args, **kwargs)
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 86, in repl
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 104, in _on_ankiweb_sync
_maybe_sync_with_ankihub(on_done=sync_with_ankiweb)
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 124, in _maybe_sync_with_ankihub
on_done(future_with_result(None))
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 99, in sync_with_ankiweb
original_sync_collection_and_media(*args, **kwargs, after_sync=new_after_sync)
File “decorator”, line 232, in fun
File “anki.hooks”, line 89, in decorator_wrapper
File “anki.hooks”, line 83, in repl
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\debug.py”, line 27, in
lambda *args, **kwargs: _log_stack(“mw._sync_collection_and_media”),
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\debug.py”, line 19, in _log_stack
LOGGER.info(f"Stack trace ({title}):\n{stack_trace}")
File “logging”, line 1446, in info
File “logging”, line 1589, in _log
File “logging”, line 1599, in handle
File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\lib\sentry_sdk\integrations\logging.py”, line 96, in sentry_patched_callhandlers
return old_callhandlers(self, record)
File “logging”, line 1661, in callHandlers
File “logging”, line 952, in handle
File “logging.handlers”, line 77, in emit
Message: ‘Stack trace (mw._sync_collection_and_media):\n File “”, line 1, in \n\n File “aqt”, line 509, in run\n\n File “aqt”, line 717, in _run\n\n File “aqt.webview”, line 50, in cmd\n\n File “aqt.webview”, line 157, in _onCmd\n\n File “aqt.webview”, line 686, in _onBridgeCmd\n\n File “decorator”, line 232, in fun\n\n File “anki.hooks”, line 89, in decorator_wrapper\n\n File “anki.hooks”, line 86, in repl\n\n File “C:\Users\medic\AppData\Roaming\Anki2\addons21\907028815\init.py”, line 623, in myLinkHandler\n return _old(self, url)\n\n File “aqt.toolbar”, line 411, in _linkHandler\n\n File “aqt.toolbar”, line 435, in _syncLinkHandler\n\n File “aqt.main”, line 1046, in on_sync_button_clicked\n\n File “decorator”, line 232, in fun\n\n File “anki.hooks”, line 89, in decorator_wrapper\n\n File “anki.hooks”, line 86, in repl\n\n File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\threading_utils.py”, line 26, in wrapper\n return func(*args, **kwargs)\n\n File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 69, in _rate_limited\n _old(*args, **kwargs)\n\n File “decorator”, line 232, in fun\n\n File “anki.hooks”, line 89, in decorator_wrapper\n\n File “anki.hooks”, line 86, in repl\n\n File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 104, in _on_ankiweb_sync\n _maybe_sync_with_ankihub(on_done=sync_with_ankiweb)\n\n File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 124, in _maybe_sync_with_ankihub\n on_done(future_with_result(None))\n\n File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 99, in sync_with_ankiweb\n original_sync_collection_and_media(*args, **kwargs, after_sync=new_after_sync)\n\n File “decorator”, line 232, in fun\n\n File “anki.hooks”, line 89, in decorator_wrapper\n\n File “anki.hooks”, line 83, in repl\n\n File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\debug.py”, line 27, in \n lambda *args, **kwargs: _log_stack(“mw._sync_collection_and_media”),\n\n File “C:\Users\medic\AppData\Roaming\Anki2\addons21\1322529746\debug.py”, line 18, in _log_stack\n stack_trace = “\n”.join(traceback.format_stack())\n’
Arguments: ()
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AMBOSS add-on [‘0amboss_addon’, 2023-11-14T01:01, ‘None’, mod]
Additional Card Fields Fork for 21 [‘744725736’, 2022-10-23T18:10, ‘None’, ‘’]
Advanced Browser [‘874215009’, 2023-10-21T22:34, ‘None’, ‘’]
Advanced Card Styles [‘1625103157’, 2021-12-29T01:50, ‘None’, ‘’]
AnKing Note Types Easy Customization [‘952691989’, 2024-01-20T05:17, ‘None’, mod]
AnkiHub [‘1322529746’, 2024-02-29T21:26, ‘None’, mod]
Automatic Basic to Cloze Updated [‘800723229’, 2022-11-15T21:37, ‘None’, ‘’]
BetterSearch [‘1052724801’, 2024-03-07T00:25, ‘None’, ‘’]
Calculate New Cards To Do [‘2014569756’, 2022-05-19T13:38, ‘None’, mod]
Closet For Anki [‘272311064’, 2022-08-12T16:27, ‘None’, ‘’]
Colorful Tags Hierarchical Tags [‘594329229’, 2022-09-15T23:06, ‘None’, ‘’]
CrowdAnki JSON exportimport Edit history Collaborate on deck creation [‘1788670778’, 2023-10-31T02:57, ‘None’, ‘’]
Duplicate and Reorder [‘1114271285’, 2023-08-28T04:55, ‘None’, mod]
Edit Field During Review Cloze [‘385888438’, 2024-01-03T15:19, ‘6.18’, mod]
Editor Scripts Symbols [‘2065559429’, 2022-07-26T01:48, ‘None’, ‘’]
Enhanced Cloze for Anki 21 [‘1990296174’, 2023-09-11T02:48, ‘None’, ‘’]
Exam Notifier [‘236593452’, 2023-01-20T01:12, ‘None’, ‘’]
Fast cards reposition [‘544982740’, 2021-09-19T21:51, ‘None’, ‘’]
Fastbar- with nightmode support [‘46611790’, 2023-06-27T19:47, ‘None’, mod]
Fix invalid card IDs [‘196231552’, 2021-11-26T09:33, ‘None’, ‘’]
High Yield Tags [‘1918380616’, 2023-01-11T03:14, ‘None’, ‘’]
Highlight Search Results in the Browser [‘225180905’, 2023-10-22T03:17, ‘None’, ‘’]
Image Editor [‘307397307’, 2022-09-08T12:09, ‘None’, ‘’]
Image Occlusion Enhanced [‘1374772155’, 2022-04-09T15:15, ‘None’, ‘’]
More Decks Stats and Time Left [‘1556734708’, 2023-09-24T22:08, ‘None’, ‘’]
New Cards Counter [‘635082046’, 2022-04-21T04:37, ‘None’, ‘’]
PDF Exporter [‘1442112168’, 2023-03-21T07:53, ‘None’, ‘’]
Quick Colour Changing [‘2491935955’, 2023-10-19T11:15, ‘None’, mod]
ReColor [‘688199788’, 2024-03-03T09:45, ‘3.0’, mod]
Remote Decks [‘924929499’, 2022-11-15T21:37, ‘None’, ‘’]
Remove card history [‘2089200096’, 2023-10-19T11:15, ‘None’, ‘’]
Reset Ease [‘947935257’, 2023-11-12T09:22, ‘None’, ‘’]
Reset Review Stats [‘742319784’, 2020-01-07T04:10, ‘None’, ‘’]
Special Fields [‘1102281552’, 2023-11-02T00:37, ‘None’, mod]
Spell Checker with Custom Dictionaries [‘390813456’, 2023-10-21T00:00, ‘None’, mod]
Symbols As You Type FIXED [‘2088399109’, 2023-12-15T02:45, ‘None’, ‘’]
Symbols [‘1461102936’, 2024-02-11T00:53, ‘None’, mod]
The KING of Button Add-ons [‘374005964’, 2024-01-27T18:19, ‘None’, mod]
The KING of Study Timers [‘907028815’, 2022-04-21T02:14, ‘None’, mod]
Weekends and Holidays [‘1992008104’, 2022-12-20T09:24, ‘None’, ‘’]

===IDs of active AnkiWeb add-ons===
1052724801 1102281552 1114271285 1322529746 1374772155 1442112168 1461102936 1556734708 1625103157 1788670778 1918380616 196231552 1990296174 1992008104 2014569756 2065559429 2088399109 2089200096 225180905 236593452 2491935955 272311064 307397307 374005964 385888438 390813456 46611790 544982740 594329229 635082046 688199788 742319784 744725736 800723229 874215009 907028815 924929499 947935257 952691989

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Add Hyperlink [‘318752047’, 2023-06-18T19:39, ‘None’, ‘’]
Anki Simulator [‘817108664’, 2023-11-07T01:26, ‘None’, ‘’]
Batch Editing [‘291119185’, 2023-10-26T08:38, ‘None’, ‘’]
Clickable Tags v20 [‘1739176371’, 2022-01-31T06:58, ‘None’, ‘’]
Contanki - Controller Support for Anki beta [‘1898790263’, 2024-03-01T09:22, ‘v1.0.2’, ‘’]
Customize Keyboard Shortcuts [‘24411424’, 2023-11-01T17:17, ‘None’, ‘’]
Editor ProToolBox - Web importer, quick format, & media scraper [‘editor_pro_toolbox’, 2023-10-23T05:38, ‘None’, ‘’]
Export Single Tag For Sharing [‘960563361’, 2022-04-11T05:30, ‘None’, ‘’]
Extended Card Stats During Review [‘1008566916’, 2024-02-27T03:07, ‘None’, ‘’]
Extended Tag AddEdit Dialog [‘1135507717’, 2023-11-12T00:58, ‘None’, ‘’]
Google Translate [‘1536291224’, 2024-02-21T22:34, ‘None’, ‘’]
Hint Hotkeys [‘1844908621’, 2023-04-14T22:13, ‘None’, ‘’]
Learning Step and Review Interval Retention [‘1949865265’, 2024-01-07T01:48, ‘None’, ‘’]
Load Balanced Scheduler [‘208879074’, 2018-10-05T08:06, ‘None’, ‘’]
Manually Set Ease Factor [‘566075556’, 2023-12-10T02:27, ‘None’, ‘’]
Mini Format Pack [‘295889520’, 2023-11-03T02:00, ‘None’, ‘’]
More Overview Stats 21 [‘738807903’, 2021-07-31T03:13, ‘None’, ‘’]
Quizlet to Anki 21 Importer with audio support [‘1362209126’, 2024-01-16T02:55, ‘None’, ‘’]
Review Card Order Customizer - V2 Scheduler only [‘81245454’, 2023-08-20T12:38, ‘None’, mod]
Searching PDF Reading Note-Taking in Add Dialog [‘1781298089’, 2022-08-15T15:22, ‘None’, mod]
Syllabus - Anki Statistics and Export by Tag and Deck [‘668156440’, 2020-01-12T19:47, ‘None’, ‘’]
add-on dialog searchfilter bar [‘561945101’, 2023-10-19T00:22, ‘None’, ‘’]
rebuildempty some or all filtered decks [‘104518886’, 2023-05-17T06:33, ‘None’, ‘’]
uworld_qid_to_anki_search [‘607963104’, 2023-09-21T23:18, ‘None’, ‘’]

1 Like

Have you tried everything on the Troubleshooting checklist? Troubleshooting - Anki Manual

It seems like an add-on problem, so pay particular attention to #2.

2 Likes

It is an AnkiHub issue, see if there are updates to the addon and contact their support.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.