kelciour / edit-field-during-review

3 stars 1 forks source link

AssertionError: 1600707171015 == 1600707199665 #7

Open kelciour opened 4 years ago

kelciour commented 4 years ago

For now, it's not clear how to reproduce it or what could cause it. If other add-ons were to be involved, maybe Help - About - Copy Debug Info.

purequant commented 4 years ago
Thanks, there is Help - About - Copy Debug Info:

Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-22 17:58:58

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Add Hyperlink ['318752047', 2020-07-30T04:37, 'None', mod]
Add card default copies current cards tag and deck in ['676957592', 2020-04-03T17:47, 'None', '']
Additional Card Fields Fork for 21 ['744725736', 2020-09-20T19:50, 'None', mod]
Advanced Browser ['874215009', 2020-04-23T06:45, 'None', '']
Advanced Copy Fields ['1898445115', 2019-05-04T02:46, 'None', '']
Advanced Review Bottom Bar ['1136455830', 2020-06-09T19:54, 'None', mod]
Anki Zoom ['538879081', 2020-04-04T08:20, 'v1.1.3', '']
AnkiConnect ['2055492159', 2020-07-13T03:54, 'None', '']
AnkiWebView Inspector ['31746032', 2019-08-02T13:41, 'None', '']
Auto Markdown - fix version ['15061497', 2020-09-15T00:09, 'None', mod]
AwesomeTTS Google Cloud Text-to-Speech unofficial ['814349176', 2020-09-17T16:46, 'None', '']
Batch Editing ['291119185', 2019-08-02T13:00, 'None', '']
Blitzkrieg II - Advanced Browser Sidebar BETA8 ['564851917', 2020-04-17T11:53, 'None', '']
Browser Card Info Bar ['2140680811', 2020-08-02T01:14, 'None', '']
Browser MaximizeHide TableEditor ['1819291495', 2020-07-03T06:51, 'None', '']
Browser TableEditor side-by-side horizontal split ['831846358', 2020-07-08T07:44, 'None', '']
Clickable Tags v11 ['380714095', 2020-03-22T21:56, 'None', '']
Color Confirmation ['1084228676', 2020-03-14T20:13, 'None', '']
Copy notes ['1566928056', 2020-08-03T00:21, 'None', mod]
Correct Answers Graph ['993120073', 2020-03-24T20:57, 'None', '']
Custom Styles font color background colour classes ['1899278645', 2020-09-20T20:23, 'None', '']
Customize Keyboard Shortcuts ['0', 2020-09-02T12:53, 'None', mod]
Customize Sidebar ['1988760596', 2020-01-16T05:01, 'None', '']
Dict2Anki ['1284759083', 2020-06-29T15:24, 'None', mod]
Edit Field During Review ['1020366288', 2020-09-11T19:48, 'None', '']
Extended Tag AddEdit Dialog ['1135507717', 2020-06-30T21:46, 'None', '']
External Note Editor for the Browser ['1996266159', 2020-04-01T04:59, 'None', '']
Fast Word Query Multi-threaded queries for words from local or web dictionaries ['1807206748', 2020-01-06T19:45, 'None', '']
Five Finger Silver New Answer Button Graph ReLrn Stats ReMemorize Plan9-0 ['2047355215', 2020-01-06T22:56, 'None', '']
Frozen Fields ['516643804', 2020-03-03T22:13, 'None', '']
Hierarchical Tags 2 ['594329229', 2020-04-12T00:36, 'None', '']
High Yield Tags ['1918380616', 2020-07-01T04:35, 'None', '']
Highlight Search Results in the Browser ['225180905', 2019-06-06T21:40, 'None', '']
Image Style Editor ['1593969147', 2020-03-06T12:51, 'None', mod]
Keep model of add cards ['424778276', 2020-05-17T07:18, 'None', '']
LPCG LyricsPoetry Cloze Generator ['2084557901', 2020-07-12T07:06, 'None', '']
Leaderboard ['41708974', 2020-07-14T03:24, 'None', mod]
Mini Format Pack ['295889520', 2019-06-06T21:37, 'None', mod]
More Decks Stats and Time Left ['1556734708', 2020-04-01T04:19, 'None', '']
More Overview Stats 21 ['738807903', 2019-06-06T22:32, 'None', mod]
No Distractions Full Screen Clean review interface  TabletTouch support ['1049863218', 2020-08-14T06:59, 'v4.1.8', mod]
Open linked pdf docx epub audiovideo etc in external Program ['879473266', 2020-07-20T17:19, 'None', mod]
OpenInExternalEditorRenameDuplicate for ImageAudioVideo ['1560623518', 2020-08-06T17:28, 'None', '']
Opening the same window multiple time ['354407385', 2020-05-16T08:59, 'None', '']
Percentage Heatmap ['1314463504', 2020-03-18T07:53, 'None', '']
Pretzel Logic Retention Benchmarking ['1168065472', 2020-04-25T11:13, 'None', mod]
Progress Graphs and Stats for Learned and Matured Cards ['266436365', 2020-03-29T14:26, 'None', '']
Quick note and deck buttons Fork for 21 ['1331140127', 2020-07-14T02:54, 'None', mod]
Quick tagging 21 ['304770511', 2020-02-11T21:09, 'None', mod]
Refocus Card when Reviewing 21 ['1642550423', 2019-06-11T15:58, 'None', '']
Remaining time for Anki 21 ['1508357010', 2020-09-22T11:40, '20.9.22i38', '']
Remove Duplicate Cards ['95590040', 2020-04-25T14:55, 'None', '']
Remove card history ['2089200096', 2020-01-03T15:16, 'None', '']
Review Heatmap ['review_heatmap', 2020-04-30T21:23, 'None', '']
Reviewer Context Menu ['281854631', 2019-08-09T14:09, 'None', '']
Reviewer to Browser choosing what to display ['1555020859', 2020-03-12T12:48, 'None', '']
Session Timer ['1287298831', 2020-07-01T00:35, 'None', '']
Showing time in browser ['1243668133', 2020-03-11T06:13, 'None', '']
Small Potatoes Show learning step count in days ['75718778', 2020-04-03T02:53, 'None', '']
Speed Focus Mode auto-alert auto-reveal auto-fail ['1046608507', 2019-06-06T18:27, 'None', '']
Statistics for Note Types Card Types and Tags ['16703369', 2020-07-20T10:11, 'None', '']
Study Logger ['1919929679', 2020-04-02T11:54, 'None', '']
Syllabus - Anki Statistics and Export by Tag and Deck ['668156440', 2020-03-05T14:18, 'None', mod]
Syntax Highlighting Enhanced Fork ['1972239816', 2020-09-13T19:48, 'None', mod]
TagSelectorV2 ['1022577188', 2020-08-13T11:09, 'None', '']
Time Spent Creating Cards ['1178407876', 2020-07-02T04:08, 'None', '']
Touch Wood Show New Cards Left Hint ['1498273991', 2020-04-04T12:37, 'None', '']
Web Browser - Search terms Import texts and images automatically ['864545277', 2020-08-30T02:23, 'None', '']
add-on dialog searchfilter bar ['561945101', 2020-05-08T21:16, 'None', '']
editor paste raw unfiltered full html ['1765712663', 2020-08-05T03:48, 'None', '']
extended html editor for fields and card templates with some versioning ['1043915942', 2020-07-30T01:19, 'None', mod]
paste plainunformatted text ['107041104', 2020-02-28T10:53, 'None', '']

===IDs of active AnkiWeb add-ons===
1020366288 1022577188 1043915942 1046608507 1049863218 107041104 1084228676 1135507717 1136455830 1168065472 1178407876 1243668133 1284759083 1287298831 1314463504 1331140127 1498273991 15061497 1508357010 1555020859 1556734708 1560623518 1566928056 1593969147 1642550423 16703369 1765712663 1807206748 1819291495 1898445115 1899278645 1918380616 1919929679 1972239816 1988760596 1996266159 2047355215 2055492159 2084557901 2089200096 2140680811 225180905 266436365 281854631 291119185 295889520 304770511 31746032 318752047 354407385 380714095 41708974 424778276 516643804 538879081 561945101 564851917 594329229 668156440 676957592 738807903 744725736 75718778 814349176 831846358 864545277 874215009 879473266 95590040 993120073

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Add note id ['1672832404', 2019-08-14T13:21, 'None', '']
Add tagmove card in review ['647335063', 2020-06-12T18:32, 'None', '']
Ankdown ['109255569', 2019-07-19T01:17, 'None', mod]
Anki Simulator ['817108664', 2020-07-21T22:17, 'None', '']
Anki Time anti-distraction helper ['998250600', 2020-09-13T05:27, '20.7.20i40', mod]
Ankidown - The advanced importer for Anki ['38786043', 2020-04-16T23:56, 'None', '']
Basic Printing Support ['1025789669', 2020-02-24T14:12, 'None', mod]
Cardistry 2 Dynamically Adjust New Cards ['1535078906', 2020-09-04T04:52, 'None', mod]
Change note type respect field and card names ['513858554', 2020-03-09T17:30, 'None', '']
Edit Field During Review Cloze ['385888438', 2020-06-11T20:32, 'None', '']
Enhance main window ['877182321', 2020-09-03T05:49, 'None', mod]
Enhanced cloze 21 ['2062736101', 2020-01-09T01:41, 'None', '']
Export preview to HTML ['96435883', 2019-05-31T20:06, 'None', '']
External Editor ['16727059', 2020-07-27T17:06, 'None', '']
Fast cards reposition ['544982740', 2019-06-10T22:52, 'None', '']
Field History ['1247884413', 2020-01-07T21:24, 'None', mod]
Fill the blanks - Multiple typecloze support ['1933645497', 2020-03-14T09:20, 'None', '']
Flexible Duplicate Checking ['1587955871', 2020-05-19T14:49, 'None', '']
HTML Window source ['1214415810', 2020-02-18T21:20, 'None', '']
History Recorder ['2039239436', 2020-08-23T21:26, 'None', '']
HoochieMama Randomize Rev Queue ['1460733408', 2020-06-03T21:17, 'None', '']
Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-04-28T10:21, 'None', '']
Knockout Deck Subset Learning ['899747926', 2020-01-05T20:20, 'None', '']
Media Import ['1531997860', 2019-08-20T22:25, 'None', '']
Merge two notes into a single note ['1482505492', 2020-05-28T11:48, 'None', '']
Postpone cards review ['1152543397', 2020-05-29T11:40, 'None', '']
Preview any cloze number ['915063177', 2020-02-28T21:01, 'None', '']
Quick note and deck change menus ['277081964', 2020-05-17T06:56, 'None', '']
ReMemorize Rescheduler with sibling and logging v140 ['323586997', 2020-04-17T15:07, 'None', '']
Searching PDF Reading  Note-Taking in Add Dialog ['1781298089', 2020-09-21T15:40, 'None', mod]
Straight Reward ['957961234', 2020-09-16T22:45, 'None', mod]
Trigger and actions change one card depending on what occurs on another card ['1981494159', 2020-05-05T04:53, 'None', mod]
Vocabulary Extractor study difficult words prior to reading a book ['1152823001', 2020-07-13T00:23, 'None', mod]
copy note contents to new Add window from Browser Reviewer Add EditCurrent ['759018284', 2020-01-07T19:37, 'None', '']
export all notetypesmodels and deckoptionsgroups without notes or media ['870620435', 2020-01-15T22:47, 'None', '']
extended editor for field for tables searchreplace  ['805891399', 2020-07-30T06:54, 'None', '']
link Cards Notes and Preview them in extra window ['1423933177', 2020-07-29T07:36, 'None', '']
load balancer ['1417170896', 2020-08-06T07:58, 'None', '']
put ALL due learning cards first modified v2 support ['1807121582', 2020-01-07T21:20, 'None', '']
remove linebreaks  do word wrap fork for 21 ['2028179508', 2020-05-11T20:58, 'None', '']
kelciour commented 4 years ago

Thank you. That's a lot of add-ons. I installed all add-ons that are active but couldn't reproduce the issue.

Please let me know if there's a way to reproduce it or maybe it happens when you do this, this, and that.

The error message from the add-on indicates that the current note is being different from the edited note, they have different id keys, and I'm not sure how it could have happened.

purequant commented 4 years ago

Thanks for your hard work! Actually I don't know how to reproduce this error.And I'm afraid my poor English can't describe this situation clearly.

Whenever I encounter this error, I will restart anki and this add-on can work normally again. Then when I'm reviewing cards, Anki will pup up a error message window after some time(I'm not alway editing card at that time). After that all directly edit notes can't be saved,the new added content will lose.

kelciour commented 4 years ago

I uploaded a new version on AnkiWeb and added a temporary fix. If you update the add-on, restart Anki, open Tools - Add-ons - ... - Config, you can set "debug" to false to make this error message disappear.

It probably happens when you edit a card and move to the next card, maybe immediately.

I'll try to reproduce it later once I have more time.

purequant commented 3 years ago

I think maybe this addon Refocus Card when Reviewing (2.1) - AnkiWeb caused the problem.

kelciour commented 3 years ago

Ah, no, it's pretty simple and shouldn't cause any problems.

purequant commented 3 years ago

But when I disable this addon, this problem doesn't seem to happen again.

kelciour notifications@github.com 于2020年10月13日周二 下午7:54写道:

Ah, no, it's pretty simple and shouldn't cause any problems.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kelciour/edit-field-during-review/issues/7#issuecomment-707688087, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJXGNY5BA4SFFHSXB3FCXLSKQ5WTANCNFSM4RVQT6LQ .

kelciour commented 3 years ago

It's pretty strange and I can't explain it. The Refocus Card when Reviewing add-on stays dormant most of the time and only activates once the question or answer has been shown and doesn't use any Anki methods or hooks that might interfere with the Edit Field During Review in any way.

The error message could be ignored by setting "debug" to false in the config file. The changes will be still saved and nothing will be lost.

The add-on was updated to support hooks introduced by Anki 2.1.20+ but this error message prevents to fully use new functioinality and the add-on still works as it used to be. From the users' point of view there's no difference.

Maybe this is something that needs to be patched in Anki itself, but I need to read the code, understand how Anki works, maybe reproduce the issue somehow and maybe find a way to fix it or at least understand where is the problem. I'm not good at it and it'd take time for me to make some progress with it.

The issue doesn't seem to affect other add-ons, it's not very important to give it the highest priority and I guess it'll be some time before I could look at it again.

purequant commented 3 years ago

Thank you for your very detailed reply, I have deleted this plugin. It is said that(in Refocus Card when Reviewing (2.1) - AnkiWeb comment):

Starting with Anki v2.1.36, this add-on will no longer be necessary, as refocusing the card (rather than the bottom bar) will be the default behavior: https://github.com/ankitects/anki/pull/778.

Then we may not have to worry about this issue.

kelciour commented 3 years ago

I think it's just a coincidence but having the Refocus Card when Reviewing add-on to be built-in with Anki will be very great and Henrik did an impressive work to make it happened.