-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Problem description
Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?
Hi,
[What]
Anki throws a runtime error (see logs below) when Windows' theme changes.
[Context]
I set up my Windows theme to automatically change on sunrise and sunset (for light and dark mode), when it does the Anki error popup shows up.
[Info]
This is a non-blocking issue (and nothing seems to be broken when it happens) but is annoying still. I've narrowed it down to ReColor by disabling other add-ons, and it doesn't happen when Anki is launched in safe-mode.
[Details]
I'm running Anki version 25.02.6 (6381f184), on Windows 11 update 24H2 (build 26100.4061), and the automatic theme switcher I use is (open-source) AutoDarkMode version 10.4.2.29 (commit 5922db4)
Thank you!
Checklist
Please replace the space inside the brackets with an x if the following items apply:
- I've restarted Anki to see if it helps
- I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
- I've tried to disable other add-ons to see if there are any interactions present
- My issue disappears when I hold shift while starting Anki.
- I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.
What Anki version are you using?
*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below
25.02.6 (6381f184)
Error message (if any)
If you've received an error message, please copy and paste it between the backticks below:
Anki 25.02.6 (6381f184) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.26100
Traceback (most recent call last):
File "aqt.progress", line 121, in handler
File "aqt.theme", line 244, in apply_style
File "_aqt.hooks", line 5121, in __call__
File "aqt.webview", line 918, in on_theme_did_change
File "aqt.webview", line 400, in page
RuntimeError: wrapped C/C++ object of type AnkiWebView has been deleted
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Advanced Review Bottom Bar ['1136455830', 2024-08-22T13:04, 'None', mod]
Button Colours Good Again ['2494384865', 2022-09-27T12:18, 'None', '']
Custom Background Image and Gear Icon ['1210908941', 2025-01-29T09:31, 'None', mod]
Deck icons ['1519592143', 2024-10-08T23:01, 'None', '']
Editor Live Preview ['1960039667', 2024-03-05T00:59, 'None', '']
Highlight Search Results in the Browser ['225180905', 2023-10-21T21:17, 'None', '']
Math Delimiters Replacer LaTex MathJax - Fixed by Shige ['401047458', 2024-04-06T16:13, 'None', '']
ReColor ['688199788', 2025-01-28T12:23, '3.1', mod]
===IDs of active AnkiWeb add-ons===
1136455830 1210908941 1519592143 1960039667 225180905 2494384865 401047458 688199788
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnkiRestart - Quick Anki Rebooter for Customize Develop Created by Shige ['237169833', 2025-05-15T01:08, 'None', '']
Custom Debug Info - for Development Created by Shige ['1616945135', 2024-11-13T13:11, 'None', '']
Customize Keyboard Shortcuts ['24411424', 2023-11-01T10:17, 'None', mod]
Meta json Formatter - for Development Created by Shige ['1984416286', 2024-12-22T12:36, 'None', '']