# Anki crashes while copy pasting text from notes Anki 2.1.65

**URL:** <https://forums.ankiweb.net/t/anki-crashes-while-copy-pasting-text-from-notes-anki-2-1-65/31517>\
**Category:** Help\
**Created:** [June 24, 2023, 11:04am UTC](https://forums.ankiweb.net/t/anki-crashes-while-copy-pasting-text-from-notes-anki-2-1-65/31517 "2023-06-24T11:04:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshitsnghl](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@harshitsnghl](https://forums.ankiweb.net/u/harshitsnghl)\
**Post date:** [June 24, 2023, 11:04am UTC](https://forums.ankiweb.net/t/anki-crashes-while-copy-pasting-text-from-notes-anki-2-1-65/31517/1 "2023-06-24T11:04:37Z")

</div>

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:

```sh
  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

---

<div class="post-metadata">

**Author:** ![harshitsnghl](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@harshitsnghl](https://forums.ankiweb.net/u/harshitsnghl)\
**Post date:** [June 24, 2023, 5:45pm UTC](https://forums.ankiweb.net/t/anki-crashes-while-copy-pasting-text-from-notes-anki-2-1-65/31517/2 "2023-06-24T17:45:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![harshitsnghl](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@harshitsnghl](https://forums.ankiweb.net/u/harshitsnghl)\
**Post date:** [June 24, 2023, 5:48pm UTC](https://forums.ankiweb.net/t/anki-crashes-while-copy-pasting-text-from-notes-anki-2-1-65/31517/3 "2023-06-24T17:48:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [June 26, 2023, 5:10am UTC](https://forums.ankiweb.net/t/anki-crashes-while-copy-pasting-text-from-notes-anki-2-1-65/31517/4 "2023-06-26T05:10:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [July 26, 2023, 5:11am UTC](https://forums.ankiweb.net/t/anki-crashes-while-copy-pasting-text-from-notes-anki-2-1-65/31517/5 "2023-07-26T05:11:14Z")

</div>

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