BlueGreenMagick / Edit-Field-During-Review-Cloze

Code for the Anki addon Edit Field During Review Cloze
https://ankiweb.net/shared/info/385888438
Other
17 stars 3 forks source link

Flip to backside slow after Cmd+Z #82

Closed scheminger closed 2 years ago

scheminger commented 2 years ago

At first, thank you very much for the nice addon. It's a must have for me!

Everything is perfectly normal until I use Cmd+Z (undo) when reviewing cards. After that, flipping to the backside is slow with a noticable lag. The strange thing is, that it only happens by using the hotkey. If I click undo manually everything remains smooth.

It doesn't happen with the Anki Basic Card type though (less to process?). However, normally all of my card types work fine and by disabling the addon the bug disappears.

Thanks in advance! Felix

Debug Info

Anki 2.1.53 (96bacf79) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.0.1
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-05-30 16:01:51

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnKing Note Types Easy Customization ['952691989', 2022-03-29T18:30, 'None', mod]
Cloze Hide All ['1709973686', 2021-09-11T12:00, '21.9.11i107', mod]
Duplicate and Reorder ['1114271285', 2021-11-22T20:56, 'None', '']
Edit Field During Review (Cloze) ['edit-field-during-review-cloze', 0, '6.12', mod]
Image Occlusion Enhanced ['1374772155', 2022-04-09T09:15, 'None', '']
More Overview Stats 21 ['738807903', 2021-07-30T21:13, 'None', '']
Opening the same window multiple time ['354407385', 2020-05-16T02:59, 'None', '']
Pop-up Dictionary beta ['153625306', 2019-03-23T18:32, 'None', mod]
Quick note and deck buttons Fork for 21 ['1331140127', 2022-05-23T15:13, 'None', mod]
Review Heatmap ['review_heatmap', 2020-04-30T15:23, 'None', '']
Symbols As You Type ['2040501954', 2021-03-22T03:17, 'None', '']
Tippy Tooltips ['1840818335', 2022-04-10T17:50, 'None', '']
show new siblings in order  no same day spacingrandomization for new siblings ['268644742', 2020-02-18T19:41, 'None', mod]

===IDs of active AnkiWeb add-ons===
1114271285 1331140127 1374772155 153625306 1709973686 1840818335 2040501954 268644742 354407385 738807903 952691989

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AMBOSS add-on ['0amboss_addon', 2021-03-10T18:17, 'None', '']
Anki Simulator ['817108664', 2021-08-07T21:24, 'None', '']
Asset Manager ['656021484', 2021-08-29T23:07, 'None', '']
Basic Printing Support ['1025789669', 2022-03-04T12:14, 'None', '']
CSS Injector - Change default editor styles ['181103283', 2022-05-28T15:57, 'None', '']
Change Card Creation Times ['217650262', 2019-03-05T03:59, 'None', '']
Closet For Anki ['272311064', 2021-04-12T16:09, 'None', '']
Cloze Anything ['330680661', 2021-12-09T08:34, 'None', '']
Custom Styles font color background colour classes ['1899278645', 2021-03-03T01:41, 'None', '']
Customize Keyboard Shortcuts ['24411424', 2022-05-13T08:39, 'None', mod]
Enhanced Cloze for Anki 21 ['1990296174', 2022-04-22T18:55, 'None', '']
Export in CSV format ['1478130872', 2019-01-21T19:21, 'None', '']
Fast cards reposition ['544982740', 2021-09-19T15:51, 'None', '']
Flexible Cloze ['1632356464', 2022-05-27T10:57, 'None', '']
Mini Format Pack ['295889520', 2018-07-24T19:45, 'None', '']
Open linked pdf docx epub audiovideo etc in external Program ['879473266', 2022-03-06T19:41, 'None', mod]
PDF Glossary Exporter ['pdf_glossary', 2019-08-19T14:35, 'None', '']
Papercards - export  print flashcards to paper ['2042118948', 2021-05-14T03:58, 'None', mod]
Resize images in editor ['1103084694', 2020-12-30T13:48, 'None', mod]
Special Fields ['1102281552', 2022-02-23T18:27, 'None', mod]
Switch Note Type Hotkey ['565948788', 2021-10-04T05:46, 'None', mod]
Symbols ['1461102936', 2019-04-18T22:21, 'None', mod]
True Retention ['613684242', 2017-11-19T21:43, 'None', '']
export cardsnotes from browser with metadata to csv or xlsx ['1967530655', 2022-04-12T17:17, 'None', '']
BlueGreenMagick commented 2 years ago

I have no idea what could be causing this. Could you use the Ankiwebview Inspector console to see if some errors appear when this lag happens?

scheminger commented 2 years ago

Thank you! Found the problem, it was a Font which could not be loaded correctly. I have no idea why Cmd+Z + your Addon triggered this though :D Thank you once again for the quick answer :)