[Bug] App crashes when copying & pasting

I encountered this issue a long time ago, and it still persists in the latest version. The crash occurs when I try to copy texts from other sources and paste them into Anki while creating new cards. It’s not entirely clear that this is the root cause because the crash doesn’t happen immediately after pasting. However, I’ve never experienced the app crashing in any other situations except when I start copying and pasting – the app unexpectedly quits again!

This is the crash report log. Hope it helps.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               anki [77109]
Path:                  /Applications/Anki.app/Contents/MacOS/anki
Identifier:            net.ankiweb.dtop
Version:               23.12.1 (???)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               503

Date/Time:             2024-01-25 10:44:50.1973 +0700
OS Version:            macOS 14.2 (23C64)
Report Version:        12
Anonymous UUID:        8665244F-E557-C50E-3DE4-BBC95CF11020

Sleep/Wake UUID:       3636205C-2D28-42B6-B1A6-FF067EA7F1A8

Time Awake Since Boot: 220000 seconds
Time Since Wake:       5130 seconds

System Integrity Protection: enabled

Crashed Thread:        42  Thread (pooled)

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x0000000127c79484

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [77109]

Thread 42 Crashed:: Thread (pooled)
0   QtWebEngineCore               	       0x127c79484 0x11eec0000 + 148608132
1   QtWebEngineCore               	       0x12363decc 0x11eec0000 + 74964684
2   QtWebEngineCore               	       0x12363df10 0x11eec0000 + 74964752
3   QtWebEngineCore               	       0x123653b94 0x11eec0000 + 75053972
4   QtWebEngineCore               	       0x12116d0d4 0x11eec0000 + 36360404
5   QtWebEngineCore               	       0x121afb448 0x11eec0000 + 46380104
6   QtWebEngineCore               	       0x11ef83b90 QtWebEngineCore::WebContentsAdapter::runJavaScriptCallbackResult(QString const&, unsigned int) + 704
7   QtWebEngineCore               	       0x11eee8438 QWebEnginePage::runJavaScript(QString const&, unsigned int, std::__1::function<void (QVariant const&)> const&) + 112
8   QtWebEngineCore.abi3.so       	       0x10bf3f27c meth_QWebEnginePage_runJavaScript(_object*, _object*, _object*) + 232
9   anki                          	       0x104b1dedc cfunction_call + 64
10  anki                          	       0x104ad7460 _PyObject_MakeTpCall + 136
11  anki                          	       0x104bd7cec _PyEval_EvalFrameDefault + 23972
12  anki                          	       0x104bdb32c _PyEval_EvalCode + 532
13  anki                          	       0x104ad85b4 _PyFunction_Vectorcall + 412
14  anki                          	       0x104adab08 method_vectorcall + 276
15  anki                          	       0x104bd24ac _PyEval_EvalFrameDefault + 1380
16  anki                          	       0x104ad8508 _PyFunction_Vectorcall + 240
17  anki                          	       0x104adaa74 method_vectorcall + 128
18  anki                          	       0x104bd6e68 _PyEval_EvalFrameDefault + 20256
19  anki                          	       0x104bdb32c _PyEval_EvalCode + 532
20  anki                          	       0x104ad85b4 _PyFunction_Vectorcall + 412
21  anki                          	       0x104adaa74 method_vectorcall + 128
22  anki                          	       0x104bd6e68 _PyEval_EvalFrameDefault + 20256
23  anki                          	       0x104ad8508 _PyFunction_Vectorcall + 240
24  anki                          	       0x104adaa74 method_vectorcall + 128
25  anki                          	       0x104bd6e68 _PyEval_EvalFrameDefault + 20256
26  anki                          	       0x104ad8508 _PyFunction_Vectorcall + 240
27  anki                          	       0x104adaa74 method_vectorcall + 128
28  anki                          	       0x104bd6e68 _PyEval_EvalFrameDefault + 20256
29  anki                          	       0x104ad8508 _PyFunction_Vectorcall + 240
30  anki                          	       0x104adaa74 method_vectorcall + 128
31  anki                          	       0x104bd6e68 _PyEval_EvalFrameDefault + 20256
32  anki                          	       0x104ad8508 _PyFunction_Vectorcall + 240
33  anki                          	       0x104adab08 method_vectorcall + 276
34  anki                          	       0x104bd24ac _PyEval_EvalFrameDefault + 1380
35  anki                          	       0x104ad8508 _PyFunction_Vectorcall + 240
36  anki                          	       0x104adab8c method_vectorcall + 408
37  sip.cpython-39-darwin.so      	       0x10915dc44 sip_api_call_procedure_method + 100
38  QtCore.abi3.so                	       0x10955a78c sipQRunnable::run() + 108
39  QtCore                        	       0x10b87a660 0x10b69c000 + 1959520
40  QtCore                        	       0x10b876570 0x10b69c000 + 1942896
41  libsystem_pthread.dylib       	       0x188a7e034 _pthread_start + 136
42  libsystem_pthread.dylib       	       0x188a78e3c thread_start + 8


Thread 42 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000174e6d2a8   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000174e6d398   x5: 0x0000000143638750   x6: 0x000000000000000e   x7: 0x0000000174e6d3ac
    x8: 0x0000000145b34178   x9: 0x0000000000000002  x10: 0x0000000000000000  x11: 0x0000000000000002
   x12: 0x0000000000000002  x13: 0x0000000000000000  x14: 0x0000000000001b75  x15: 0x00000000000004ff
   x16: 0x0000000188a78b4c  x17: 0x0000000174e6f000  x18: 0x0000000000000000  x19: 0x0000000145b33f50
   x20: 0x0000000174e6d398  x21: 0x0000000145b33f50  x22: 0x0000000000000000  x23: 0x0000000000000000
   x24: 0x0000000174e6d450  x25: 0x0000000174e6d450  x26: 0x0000000174e6d708  x27: 0x0000000174e6d6f4
   x28: 0x0000000174e6d6f8   fp: 0x0000000174e6d380   lr: 0x000000012363decc
    sp: 0x0000000174e6d310   pc: 0x0000000127c79484 cpsr: 0x60001000
   far: 0x0000000000000000  esr: 0xf2000000 (Breakpoint) brk 0

Binary Images:
       0x11ee64000 -        0x11ee6ffff libobjc-trampolines.dylib (*) <7778e0d7-361a-378d-9438-3b2bb48c2154> /usr/lib/libobjc-trampolines.dylib
       0x12a0d4000 -        0x12a0dbfff libqsvg.dylib (*) <86605b87-1ce7-3cc9-adbc-5323f8801efb> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/Qt6/plugins/imageformats/libqsvg.dylib
       0x12ae44000 -        0x12ae7bfff org.qt-project.QtSvg (6.5) <9220a73c-ead2-3ccb-b3c8-665e30b9fd2f> /Applications/Anki.app/Contents/Frameworks/QtSvg.framework/Versions/A/QtSvg
       0x12a150000 -        0x12a1b7fff libqjpeg.dylib (*) <4c7b351c-98d5-3552-b142-cfa38393f983> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/Qt6/plugins/imageformats/libqjpeg.dylib
       0x11ee94000 -        0x11ee9bfff libqico.dylib (*) <493a0639-4ce5-3c48-8a96-1fca5d7255f0> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/Qt6/plugins/imageformats/libqico.dylib
       0x11ee7c000 -        0x11ee83fff libqgif.dylib (*) <fd2c91b6-95d8-3b80-ac9c-e02c3d6a19f4> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/Qt6/plugins/imageformats/libqgif.dylib
       0x11e190000 -        0x11e1b3fff libqmacstyle.dylib (*) <6534442b-0ba7-3f0c-8710-b2c97be85982> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/Qt6/plugins/styles/libqmacstyle.dylib
       0x11e208000 -        0x11e273fff com.apple.AppleMetalOpenGLRenderer (1.0) <41cb4d99-6a07-366a-9e97-d047ce10daa2> /System/Library/Extensions/AppleMetalOpenGLRenderer.bundle/Contents/MacOS/AppleMetalOpenGLRenderer
       0x1163c0000 -        0x11645bfff libqcocoa.dylib (*) <bd97c035-e8da-347b-b65a-32f99a24a38e> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/Qt6/plugins/platforms/libqcocoa.dylib
       0x115764000 -        0x11576bfff libankihelper.dylib (*) <70803fad-5e02-33da-8f53-ad9b921d66f0> /Applications/Anki.app/Contents/MacOS/libankihelper.dylib
       0x1155ec000 -        0x1155f3fff pvectorc.cpython-39-darwin.so (*) <54cf2a77-8a1d-37db-b3d5-e09036e60d55> /Applications/Anki.app/Contents/MacOS/lib/pvectorc.cpython-39-darwin.so
       0x113368000 -        0x11336bfff _speedups.cpython-39-darwin.so (*) <d400ac61-bc73-3d8d-a5ad-1ceac3d9cab7> /Applications/Anki.app/Contents/MacOS/lib/markupsafe/_speedups.cpython-39-darwin.so
       0x10b624000 -        0x10b64bfff QtPrintSupport.abi3.so (*) <6aaeaec7-e617-32c0-8411-6ae276feb928> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/QtPrintSupport.abi3.so
       0x1164b4000 -        0x1167abfff QtWidgets.abi3.so (*) <8252a886-05b3-3cc7-8c18-35fdb714868a> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/QtWidgets.abi3.so
       0x1094a8000 -        0x1094b7fff QtWebEngineWidgets.abi3.so (*) <e91a32b9-4d5d-3675-87df-dac8923be2e8> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/QtWebEngineWidgets.abi3.so
       0x1094d0000 -        0x1094e7fff org.qt-project.QtWebEngineWidgets (6.5) <652e885c-4d8b-30d9-a6bc-3f7aaf681b87> /Applications/Anki.app/Contents/Frameworks/QtWebEngineWidgets.framework/Versions/A/QtWebEngineWidgets
       0x11300c000 -        0x113053fff org.qt-project.QtPrintSupport (6.5) <89c439ac-9b79-36dd-afd6-96342c2575e9> /Applications/Anki.app/Contents/Frameworks/QtPrintSupport.framework/Versions/A/QtPrintSupport
       0x1158f0000 -        0x115d47fff org.qt-project.QtWidgets (6.5) <df852e2a-242b-3a26-8096-332c1a737531> /Applications/Anki.app/Contents/Frameworks/QtWidgets.framework/Versions/A/QtWidgets
       0x1099c4000 -        0x1099d7fff org.qt-project.QtQuickWidgets (6.5) <0157853a-4b16-3065-b1b7-8111636bfaa8> /Applications/Anki.app/Contents/Frameworks/QtQuickWidgets.framework/Versions/A/QtQuickWidgets
       0x10bf20000 -        0x10bf53fff QtWebEngineCore.abi3.so (*) <cf586f9e-46ac-3c28-bc42-7ee95b46caf8> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/QtWebEngineCore.abi3.so
       0x11eec0000 -        0x128b93fff org.qt-project.QtWebEngineCore (6.5) <8cfb1305-d799-3f49-bce4-c7cc85763a61> /Applications/Anki.app/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/QtWebEngineCore
       0x112f78000 -        0x112fe3fff org.qt-project.QtPositioning (6.5) <f377b88c-d6be-32de-b0e9-04cd7fd2e9ba> /Applications/Anki.app/Contents/Frameworks/QtPositioning.framework/Versions/A/QtPositioning
       0x1092b8000 -        0x1092bffff QtWebChannel.abi3.so (*) <e870d5e7-6d95-33b1-9ad0-c62d5e048cef> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/QtWebChannel.abi3.so
       0x1093c8000 -        0x1093f3fff org.qt-project.QtWebChannel (6.5) <94070f90-69af-3f79-9052-e4d1475722d3> /Applications/Anki.app/Contents/Frameworks/QtWebChannel.framework/Versions/A/QtWebChannel
       0x113090000 -        0x1130f7fff QtQml.abi3.so (*) <e34563a6-1b1a-3dc5-a887-1a17eb15a11e> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/QtQml.abi3.so
       0x10b460000 -        0x10b4f7fff QtQuick.abi3.so (*) <ba35c382-4327-3c2d-8313-8b128527eceb> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/QtQuick.abi3.so
       0x113e50000 -        0x114207fff org.qt-project.QtQuick (6.5) <85435499-b747-3452-944b-d9f923966b0e> /Applications/Anki.app/Contents/Frameworks/QtQuick.framework/Versions/A/QtQuick
       0x109414000 -        0x109473fff org.qt-project.QtOpenGL (6.5) <154a9848-20a0-30b2-b6eb-2e62c029d9a9> /Applications/Anki.app/Contents/Frameworks/QtOpenGL.framework/Versions/A/QtOpenGL
       0x10b358000 -        0x10b3d7fff org.qt-project.QtQmlModels (6.5) <9be34df9-eb27-3a24-8b48-b88e19397f37> /Applications/Anki.app/Contents/Frameworks/QtQmlModels.framework/Versions/A/QtQmlModels
       0x114378000 -        0x114713fff org.qt-project.QtQml (6.5) <3402f9b2-65b8-3791-9291-9b3066c3e0a2> /Applications/Anki.app/Contents/Frameworks/QtQml.framework/Versions/A/QtQml
       0x1098b8000 -        0x10992ffff QtNetwork.abi3.so (*) <7c6808c5-f68e-3945-8800-cec5f9704ff7> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/QtNetwork.abi3.so
       0x10b148000 -        0x10b24ffff org.qt-project.QtNetwork (6.5) <25fd5366-8daa-3bfc-9d09-8797d7c3991c> /Applications/Anki.app/Contents/Frameworks/QtNetwork.framework/Versions/A/QtNetwork
       0x10bbf4000 -        0x10bd73fff QtGui.abi3.so (*) <e217746b-2ebb-3a3a-9205-d66e24b5465e> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/QtGui.abi3.so
       0x1136e0000 -        0x113d17fff org.qt-project.QtGui (6.5) <5ce4cd24-cafb-355a-b242-0e365b4010be> /Applications/Anki.app/Contents/Frameworks/QtGui.framework/Versions/A/QtGui
       0x1092dc000 -        0x10935bfff org.qt-project.QtDBus (6.5) <05d2ceab-a001-393d-865e-a8601c1201bb> /Applications/Anki.app/Contents/Frameworks/QtDBus.framework/Versions/A/QtDBus
       0x1091fc000 -        0x10921bfff com.apple.security.csparser (3.0) <223733db-4edb-301c-99bc-d4c647bb1ad2> /System/Library/Frameworks/Security.framework/Versions/A/PlugIns/csparser.bundle/Contents/MacOS/csparser
       0x109520000 -        0x1096cbfff QtCore.abi3.so (*) <d5a354f7-8601-330a-952c-03ca9defcca2> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/QtCore.abi3.so
       0x10b69c000 -        0x10bb23fff org.qt-project.QtCore (6.5) <e53d4afc-0159-386f-b8d6-a55dd7b93f47> /Applications/Anki.app/Contents/Frameworks/QtCore.framework/Versions/A/QtCore
       0x109158000 -        0x10916bfff sip.cpython-39-darwin.so (*) <660c3d81-870e-3c40-8dda-0b21ee91741d> /Applications/Anki.app/Contents/MacOS/lib/PyQt6/sip.cpython-39-darwin.so
       0x108e24000 -        0x108e47fff md__mypyc.cpython-39-darwin.so (*) <49a5ec9f-6147-3a93-8579-3818ec06224b> /Applications/Anki.app/Contents/MacOS/lib/charset_normalizer/md__mypyc.cpython-39-darwin.so
       0x108dd0000 -        0x108dd3fff md.cpython-39-darwin.so (*) <85e6b6bd-ba8a-317d-91ab-156247209de3> /Applications/Anki.app/Contents/MacOS/lib/charset_normalizer/md.cpython-39-darwin.so
       0x1089fc000 -        0x108a2bfff orjson.cpython-39-darwin.so (*) <32201c09-5ce8-3254-8f14-5d20121d164b> /Applications/Anki.app/Contents/MacOS/lib/orjson/orjson.cpython-39-darwin.so
       0x108440000 -        0x10847bfff _message.abi3.so (*) <2ce057fa-b355-3643-abe8-3012df80e549> /Applications/Anki.app/Contents/MacOS/lib/google/_upb/_message.abi3.so
       0x109a20000 -        0x10ad03fff _rsbridge.so (*) <a35a46ea-8d02-30fe-904c-722408912b00> /Applications/Anki.app/Contents/MacOS/lib/anki/_rsbridge.so
       0x104818000 -        0x107013fff net.ankiweb.dtop (23.12.1) <a478762f-93c4-3f43-99e4-07d82c9c2412> /Applications/Anki.app/Contents/MacOS/anki
       0x188a3c000 -        0x188a76fff libsystem_kernel.dylib (*) <ca94fc21-bc40-3b43-b65d-b87ece9e1d48> /usr/lib/system/libsystem_kernel.dylib
       0x188ade000 -        0x188fb5fff com.apple.CoreFoundation (6.9) <47e4ec09-8f6e-30a8-99d0-34024d4f8122> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1930d8000 -        0x193397fff com.apple.HIToolbox (2.1.1) <e2187dfe-1fb4-3b47-874e-a0a6291e51b2> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x18c2fd000 -        0x18d617fff com.apple.AppKit (6.9) <f3527312-e426-3f7c-b77b-2bf49d1b7c04> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1886f7000 -        0x18878b347 dyld (*) <324e4ad9-e01f-3183-b09f-3e20b326643a> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x1888c9000 -        0x18890ffff libdispatch.dylib (*) <a53d555d-f748-3010-83fe-385c660a81bd> /usr/lib/system/libdispatch.dylib
       0x188a77000 -        0x188a83ff3 libsystem_pthread.dylib (*) <a7d94c96-7b1f-3229-9bea-048d037c3292> /usr/lib/system/libsystem_pthread.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.8G resident=0K(0%) swapped_out_or_unallocated=1.8G(100%)
Writable regions: Total=797.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=797.7M(100%)

                                   VIRTUAL   REGION 
REGION TYPE                           SIZE    COUNT (non-coalesced) 
===========                        =======  ======= 
Accelerate framework                  256K        2 
Activity Tracing                      256K        1 
CG image                              240K       10 
ColorSync                             592K       29 
CoreAnimation                         432K       27 
CoreGraphics                           48K        3 
CoreMedia Capture Data               68.3M      338 
CoreMedia Capture Data (reserved)    1360K       17         reserved VM address space (unallocated)
CoreUI image data                    1056K       14 
Dispatch continuations               80.0M        1 
Foundation                             16K        1 
Kernel Alloc Once                      32K        1 
MALLOC                              258.5M       77 
MALLOC guard page                     384K       24 
Mach message                          128K        4 
OpenGL GLSL                           384K        4 
STACK GUARD                           672K       42 
Stack                               330.5M       45 
Stack Guard                          56.0M        1 
VM_ALLOCATE                          47.0M      214 
VM_ALLOCATE (reserved)                128K        1         reserved VM address space (unallocated)
__AUTH                               1845K      363 
__AUTH_CONST                         28.9M      576 
__CTF                                  824        1 
__DATA                               26.3M      613 
__DATA_CONST                         38.5M      627 
__DATA_DIRTY                         1867K      222 
__FONT_DATA                             4K        1 
__GLSLBUILTINS                       5174K        1 
__LINKEDIT                          915.7M       46 
__OBJC_RO                            71.1M        1 
__OBJC_RW                            2168K        1 
__TEXT                              878.0M      645 
dyld private memory                   320K        4 
mapped file                         544.5M       75 
shared memory                        3216K       27 
===========                        =======  ======= 
TOTAL                                 3.3G     4059 
TOTAL, minus reserved VM space        3.3G     4059 

Any add-ons you use?

Troubleshooting - Anki Manual

Here is the list of my add-ons.
image

I just noticed I installed many add-ons but only use few of them. :sweat_smile:

I don’t see any add-on which could be triggering, but could you try doing addon step from troubleshooting just in case

Please try disabling add-ons and resetting window sizes as mentioned in the troubleshooting guide, to see if that helps. Do you use any third-party tools that modify the clipboard, like a clipboard manager?

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