I am using an AutoHotKey script to change the case of selected text. It works as follows:
- Select some text.
- Press a keyboard shortcut (Win + CapsLk)
- Select the desired option.
- The case is changed.
This script works fine in all apps I have tried, including Notepad, MS Word, Chrome, etc.
However, just after pressing the keyboard shortcut, Anki .56 crashes. In Anki .54, the following error message is shown:
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=False sv=3
Add-ons, last update check: 2023-01-11 19:07:16
Traceback (most recent call last):
File “aqt.progress”, line 118, in handler
File “aqt.editor”, line 1349, in
RuntimeError: wrapped C/C++ object of type QMimeData has been deleted
Note, however, that the error doesn’t occur every time while using the script and I am unable to determine exactly what causes the error.
In case this issue can’t be resolved in the next release (.57), please change the behavior to showing the error message (as in .54) instead of crashing (as in .56). This is because a crash not only forces me to open the app again unnecessarily, but it also causes the loss of unsaved text I am editing in the Add note window.