Anki crashes while copy pasting text from notes Anki 2.1.65

On the very first copy and paste event anki will freeze for a few seconds and on the next copy or paste event, anki crashes.

Note: Copy or paste should be from or on the note fields.

Anki crashes even with --safemode enabled

I’ve attached the tail logs below:

  File "aqt", line 688, in _run
  File "aqt.main", line 199, in __init__
  File "aqt.main", line 248, in finish_ui_setup
  File "aqt.toolbar", line 270, in draw
  File "/home/harshitsnghl/.local/share/Anki2/addons21/24411424/custom_shortcuts.py", line 618, in cs_toolbarCenterLinks
    tip=tr(TR.ACTIONS_SHORTCUT_KEY, val=config_scuts["main browse"]),
  File "anki._backend", line 166, in __call__
please use tr.message_name() instead of tr(TR.MESSAGE_NAME)
  File "<string>", line 1, in <module>
  File "aqt", line 489, in run
  File "aqt", line 688, in _run
  File "aqt.main", line 199, in __init__
  File "aqt.main", line 248, in finish_ui_setup
  File "aqt.toolbar", line 270, in draw
  File "/home/harshitsnghl/.local/share/Anki2/addons21/24411424/custom_shortcuts.py", line 623, in cs_toolbarCenterLinks
    tr(TR.QT_MISC_STATS),
  File "anki._backend", line 166, in __call__
please use tr.message_name() instead of tr(TR.MESSAGE_NAME)
  File "<string>", line 1, in <module>
  File "aqt", line 489, in run
  File "aqt", line 688, in _run
  File "aqt.main", line 199, in __init__
  File "aqt.main", line 248, in finish_ui_setup
  File "aqt.toolbar", line 270, in draw
  File "/home/harshitsnghl/.local/share/Anki2/addons21/24411424/custom_shortcuts.py", line 625, in cs_toolbarCenterLinks
    tip=tr(TR.ACTIONS_SHORTCUT_KEY, val=config_scuts["main stats"]),
  File "anki._backend", line 166, in __call__
please use tr.message_name() instead of tr(TR.MESSAGE_NAME)
Starting main loop...
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
conf key heatmap should be fetched with col.get_config(), and saved with col.set_config()
mpv not found, reverting to mplayer
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
conf key imgocc should be fetched with col.get_config(), and saved with col.set_config()
JS warning /_anki/js/browser_editor.js:4 No version information available for component [tex]/noerrors
JS warning /_anki/js/browser_editor.js:4 No version information available for component [tex]/mathtools
JS warning /_anki/js/browser_editor.js:4 No version information available for component [tex]/mhchem
Qt warning: QXcbClipboard: Selection request should be caught before 
Segmentation fault (core dumped)

I found this issue was there in Anki 2.1.54

htps://forums.ankiweb.net/t/error-copying-data-when-editing-a-note-field-anki-2-1-54/23147
Note: Add ‘t’ in ‘https://’ to open the link.

Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: Linux-5.10.142-19743-gd301e86c39f7-x86_64-with-glibc2.31
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-06-24 14:10:34


===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Add Table ['1237621971', 2023-06-18T17:07, 'None', mod]
Anki Simulator ['817108664', 2023-05-13T12:47, 'None', '']
Batch Editing ['291119185', 2023-02-10T09:10, 'None', '']
Colorful Tags  Hierarchical Tags ['594329229', 2022-09-15T20:36, 'None', '']
Customize Keyboard Shortcuts ['24411424', 2022-09-14T14:42, 'None', mod]
Image Occlusion Enhanced ['1374772155', 2022-04-09T12:45, 'None', '']
Review Heatmap ['1771074083', 2022-06-30T07:13, 'None', '']

===IDs of active AnkiWeb add-ons===
1237621971 1374772155 1771074083 24411424 291119185 594329229 817108664

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

Please look into this ASAP. As copy function is one of the most basic functionality we use.
Thanks

Built and ran Anki 2.1.66 and things are working fine there. Application is not crashing on copy paste actions. Thanks team for the fix.

Could someone tell me the tentative release date of Anki 2.1.66 ?

It sounds like the bumped Qt version helped in your case. A release is probably at least a month away, including beta testing time.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.