gugutu / Anki-Note-Linker

Link Anki notes to build knowledge network
https://ankiweb.net/shared/info/1077002392
GNU Affero General Public License v3.0
28 stars 3 forks source link

Message box appears when quitting Anki #6

Closed neugear closed 6 months ago

neugear commented 6 months ago

If I quit Anki while this addon is active, a message box appears for a very brief moment. The content is difficult to read, but the word "Collection" appears in it. This behavior existed before the latest update.

gugutu commented 6 months ago

Hi, may I ask which version of Anki you are using?

neugear commented 6 months ago

Here is the debug information from Anki:

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

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AJT Flexible Grading ['1715096333', 2023-11-03T03:27, 'None', mod]
AJT Japanese ['1344485230', 2024-04-14T22:00, 'None', mod]
Advanced Browser ['874215009', 2023-10-21T16:34, 'None', '']
Anki Note Linker ['1077002392', 2024-04-16T11:33, 'None', '']
Color Confirmation ['1084228676', 2024-01-06T10:55, 'None', '']
Edit Field During Review Cloze ['385888438', 2024-01-03T08:19, '6.18', mod]
Jlab Study Japanese with moviessubs2srsRomajiKana ['2110939339', 2024-01-14T20:09, 'None', '']
Kanji Grid Kuuube ['1610304449', 2024-03-12T17:13, 'None', '']
Review Heatmap ['1771074083', 2022-06-30T03:43, 'None', '']
True Retention by Card Maturity ['923360400', 2017-08-29T21:00, 'None', '']

===IDs of active AnkiWeb add-ons===
1077002392 1084228676 1344485230 1610304449 1715096333 1771074083 2110939339 385888438 874215009 923360400

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

I cannot rule out that Anki Note Linker interferes with other addons.

gugutu commented 6 months ago

Sorry, I've tried to reproduce the issue, but without success. You might try reinstalling the plugin or updating Anki to see if that resolves the problem. If you could provide a screenshot of the message box, it might be helpful.

neugear commented 6 months ago

Neither an update to Anki nor reinstalling the plugin helped. In the meantime I was able to read the entire text. It is "CollectionNotOpen". This led me to a similar bug in AnkiDroid.

https://github.com/ankidroid/Anki-Android/issues/13429

After I deactivated the automatic sync, the message box no longer appeared. However, after activating the option it appears again as long as Anki Note Linker is installed.

gugutu commented 6 months ago

Thank you very much for the information you've provided! I have updated the addon to fix this issue.

neugear commented 6 months ago

Thank you very much for the quick processing and this wonderful addon in general. I can confirm that the message box no longer appears.