How to reproduce:
- Open the Add Note window.
- Enter a few lines of text in one of the fields.
- Press Ctrl+C and keep pressing.
- Quickly select some of the text by left clicking and dragging the mouse cursor and repeat a few times, all while keeping Ctrl+C pressed down.
- In my case I need to do that just a few times until Anki crashes with the following message (from the console):
Qt critical: OleSetClipboard: Failed to set mime data (text/html, text/plain) on clipboard: COM error 0xffffffff800401d0 (OpenClipboard fehlgeschlagen) (Der Vorgang wurde erfolgreich beendet.)
Qt critical: OleSetClipboard: Failed to set mime data (text/html, text/plain) on clipboard: COM error 0xffffffff800401d0 (OpenClipboard fehlgeschlagen) (Der Vorgang wurde erfolgreich beendet.)
Qt critical: OleSetClipboard: Failed to set mime data () on clipboard: COM error 0xffffffff800401d4 (CloseClipboard fehlgeschlagen) (Der Thread hat keine Zwischenablage ge├Âffnet.)
The conditions I described sound quite artificial but the problem also occurs if you use software that copies selected text and quickly restores the clipboard afterwards.
It seems like this exact error has been addressed before.
The issue occurs in 2.1.62 as well. Anki 2.1.49, however, is unaffected.