Anki Forums

Anki quit unexpectedly - crashing on Monterey

System: M1 Max, MacOS Monterey 12.1.
Anki version: 2.1.49

Grateful for some help on this

Every time I try to open it, I get a crash log with the following below. The desktop app won’t open

Steps tried:

  1. Uninstalled and reinstalled
  2. Press shift while opening Anki
  3. Restarted computer. Nothing seems to give

Crash log below

Crashed Thread:        0  CrBrowserMain  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 4 Illegal instruction: 4
Terminating Process:   exc handler [1872]

Application Specific Information:
Crashing on exception: CGSSetSurfaceColorSpace failed with 1000


Application Specific Backtrace 0:
0   CoreFoundation                      0x00007ff81c22e6cb __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff81bf90dce objc_exception_throw + 48
2   Foundation                          0x00007ff81d04c02c -[NSMutableDictionary(NSMutableDictionary) initWithContentsOfFile:] + 0
3   AppKit                              0x00007ff81f5456cc set_surface_colorspace + 124
4   AppKit                              0x00007ff81f17de14 NSOpenGLContextUpdateOffScreenViewSurface + 575
5   AppKit                              0x00007ff81ee4d9b3 NSOpenGLContextAttachOffScreenViewSurface + 91
6   AppKit                              0x00007ff81f17d48f __27-[NSOpenGLContext setView:]_block_invoke + 432
7   AppKit                              0x00007ff81eb56bf1 NSPerformVisuallyAtomicChange + 132
8   AppKit                              0x00007ff81ee4d722 -[NSOpenGLContext setView:] + 139
9   libqcocoa.dylib                     0x000000011c4b377d _ZN15QCocoaGLContext11setDrawableEP16QPlatformSurface + 1277
10  libqcocoa.dylib                     0x000000011c4b3111 _ZN15QCocoaGLContext11makeCurrentEP16QPlatformSurface + 337
11  QtGui                               0x0000000114a2084c _ZN14QOpenGLContext11makeCurrentEP8QSurface + 172
12  QtGui                               0x0000000114cc5d6d _ZN21QPlatformBackingStore15composeAndFlushEP7QWindowRK7QRegionRK6QPointP20QPlatformTextureListb + 301
13  QtWidgets                           0x00000001165cc4c4 _ZN21QWidgetRepaintManager5flushEP7QWidgetRK7QRegionP20QPlatformTextureList + 1028
14  QtWidgets                           0x00000001165ce6ad _ZN21QWidgetRepaintManager5flushEv + 605
15  QtWidgets                           0x00000001165cda58 _ZN21QWidgetRepaintManager13paintAndFlushEv + 4984
16  QtWidgets                           0x00000001165cbea0 _ZN21QWidgetRepaintManager4syncEP7QWidgetRK7QRegion + 672
17  QtWidgets                           0x000000011661b5a4 _ZN13QWidgetWindow17handleExposeEventEP12QExposeEvent + 372
18  QtWidgets                           0x000000011661893b _ZN13QWidgetWindow5eventEP6QEvent + 1067
19  QtWidgets                           0x00000001165bff5a _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 266
20  QtWidgets                           0x00000001165c13e6 _ZN12QApplication6notifyEP7QObjectP6QEvent + 598
21  QtWidgets.abi3.so                   0x0000000115a72fea _ZN15sipQApplication6notifyEP7QObjectP6QEvent + 234
22  QtCore                              0x00000001115349f4 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 212
23  QtGui                               0x00000001149dd2c2 _ZN22QGuiApplicationPrivate18processExposeEventEPN29QWindowSystemInterfacePrivate11ExposeEventE + 306
24  QtGui                               0x00000001149b9cc3 _ZN29QWindowSystemInterfacePrivate23handleWindowSystemEventIN22QWindowSystemInterface19SynchronousDeliveryEEEbPNS_17WindowSystemEventE + 115
25  QtGui                               0x00000001149c1392 _ZN22QWindowSystemInterface17handleExposeEventINS_19SynchronousDeliveryEEEvP7QWindowRK7QRegion + 178
26  libqcocoa.dylib                     0x000000011c47d4fc _ZN12QCocoaWindow17handleExposeEventERK7QRegion + 460
27  libqcocoa.dylib                     0x000000011c485b2b -[QNSView(Drawing) displayLayer:] + 907
28  AppKit                              0x00007ff81ec631e6 -[_NSBackingLayer display] + 462
29  AppKit                              0x00007ff81ebd873d -[_NSViewBackingLayer display] + 554
30  QuartzCore                          0x00007ff823697631 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 867
31  QuartzCore                          0x00007ff8237e7723 _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 717
32  QuartzCore                          0x00007ff823679292 _ZN2CA11Transaction6commitEv + 704
33  AppKit                              0x00007ff81ec74592 __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 285
34  AppKit                              0x00007ff81f3bb1d4 ___NSRunLoopObserverCreateWithHandler_block_invoke + 41
35  CoreFoundation                      0x00007ff81c1b2f98 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
36  CoreFoundation                      0x00007ff81c1b2e34 __CFRunLoopDoObservers + 543
37  CoreFoundation                      0x00007ff81c1b22cb __CFRunLoopRun + 845
38  CoreFoundation                      0x00007ff81c1b18a9 CFRunLoopRunSpecific + 567
39  HIToolbox                           0x00007ff8252334f1 RunCurrentEventLoopInMode + 292
40  HIToolbox                           0x00007ff825233247 ReceiveNextEventCommon + 587
41  HIToolbox                           0x00007ff825232fe5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
42  AppKit                              0x00007ff81eb07b4c _DPSNextEvent + 886
43  AppKit                              0x00007ff81eb061b8 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1411
44  AppKit                              0x00007ff81eaf85a9 -[NSApplication run] + 586
45  libqcocoa.dylib                     0x000000011c4945d3 _ZN21QCocoaEventDispatcher13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 2579
46  QtCore                              0x0000000111530a7f _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 431
47  QtCore                              0x0000000111535002 _ZN16QCoreApplication4execEv + 130
48  QtWidgets.abi3.so                   0x0000000115b64032 _ZL22meth_QApplication_execP7_objectS0_ + 82
49  Python                              0x000000010c0d85c2 cfunction_call_varargs + 290
50  Python                              0x000000010c0d7f85 _PyObject_MakeTpCall + 373
51  Python                              0x000000010c1a6945 call_function + 533
52  Python                              0x000000010c1a374e _PyEval_EvalFrameDefault + 25678
53  Python                              0x000000010c0d88d0 function_code_fastcall + 128
54  Python                              0x000000010c1a68ec call_function + 444
55  Python                              0x000000010c1a37e5 _PyEval_EvalFrameDefault + 25829
56  Python                              0x000000010c0d88d0 function_code_fastcall + 128
57  Python                              0x000000010c1a68ec call_function + 444
58  Python                              0x000000010c1a374e _PyEval_EvalFrameDefault + 25678
59  Python                              0x000000010c1a7734 _PyEval_EvalCodeWithName + 2804
60  Python                              0x000000010c19d224 PyEval_EvalCode + 100
61  AnkiMac                             0x0000000102db601b AnkiMac + 8219
62  AnkiMac                             0x0000000102db641c AnkiMac + 9244
63  AnkiMac                             0x0000000102db4bf4 AnkiMac + 3060
64  ???                                 0x0000000000000001 0x0 + 1```

Update: Solved. Turns out the Issue was the monitor and user ICC profile.
Steps: I deleted the User ICC Monitor profile, restarted the computer and issue was fixed. Leaving here in case anyone else experiences this issue.

1 Like

Thanks for posting your solution! If you’d prefer to keep the monitor profile, you may find you have more luck with the Qt6 native build: https://betas.ankiweb.net/

1 Like