Mac app crashes everytime when I close a window

Hi Anki team,

I’ve upgraded recently to version 2.1.49 and since that day my app crashes all the time when I close a window. I don’t have any plugins enabled.

It doesn’t matter which window. It crashes on preferences as well as on adding new words or just any other view.

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

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Application Specific Signatures:
Graphics kernel error: 0x067900fc

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff2042a92e __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff204595bd pthread_kill + 263
2 libsystem_c.dylib 0x00007fff203ae406 abort + 125
3 libGPUSupportMercury.dylib 0x00007fff463a7096 gpusGenerateCrashLog.cold.1 + 95
4 libGPUSupportMercury.dylib 0x00007fff4639e21c gpusGenerateCrashLog + 89
5 com.apple.AMDRadeonX4000GLDriver 0x00000001215446e2 gpusKillClientExt + 9
6 libGPUSupportMercury.dylib 0x00007fff4639f5e7 gpusSubmitDataBuffers + 164
7 com.apple.AMDRadeonX4000GLDriver 0x000000012151ed0c glrATI_Hwl_SubmitPacketsWithToken + 112
8 com.apple.AMDRadeonX4000GLDriver 0x000000012151a56d glrTerminateContext + 42
9 libGPUSupportMercury.dylib 0x00007fff4639f7d1 gldDestroyContext + 114
10 GLEngine 0x00007fff6bd7fb91 gliDestroyContext + 127
11 com.apple.opengl 0x00007fff6bb3d276 CGLReleaseContext + 178
12 com.apple.AppKit 0x00007fff230c98d7 -[NSOpenGLContext dealloc] + 62
13 libqcocoa.dylib 0x000000011f5fce33 QCocoaGLContext::~QCocoaGLContext() + 51
14 libqcocoa.dylib 0x000000011f5fcfae QCocoaGLContext::~QCocoaGLContext() + 14
15 QtGui 0x0000000110064768 QOpenGLContext::destroy() + 200
16 QtGui 0x0000000110064eb8 QOpenGLContext::~QOpenGLContext() + 24
17 QtQuickWidgets 0x0000000112f6dbd9 QQuickWidgetPrivate::~QQuickWidgetPrivate() + 201
18 QtQuickWidgets 0x0000000112f6dcce QQuickWidgetPrivate::~QQuickWidgetPrivate() + 14
19 QtCore 0x000000010dca206c QObject::~QObject() + 2140
20 QtWidgets 0x0000000110c157d0 QWidget::~QWidget() + 1136
21 QtWebEngineWidgets 0x000000011387bfc5 non-virtual thunk to QtWebEngineCore::RenderWidgetHostViewQtDelegateWidget::~RenderWidgetHostViewQtDelegateWidget() + 21
22 QtWebEngineCore 0x0000000113924cbe QtWebEngineCore::RenderWidgetHostViewQt::~RenderWidgetHostViewQt() + 158
23 QtWebEngineCore 0x000000011392509e QtWebEngineCore::RenderWidgetHostViewQt::~RenderWidgetHostViewQt() + 14
24 QtWebEngineCore 0x000000011a02ac55 content::RenderWidgetHostImpl::Destroy(bool) + 485
25 QtWebEngineCore 0x000000011a024892 content::RenderViewHostImpl::~RenderViewHostImpl() + 226
26 QtWebEngineCore 0x000000011a024c2e content::RenderViewHostImpl::~RenderViewHostImpl() + 14
27 QtWebEngineCore 0x0000000119e1b423 content::RenderFrameHostImpl::~RenderFrameHostImpl() + 1747
28 QtWebEngineCore 0x0000000119e1c65e content::RenderFrameHostImpl::~RenderFrameHostImpl() + 14
29 QtWebEngineCore 0x0000000119e4c812 content::RenderFrameHostManager::DeleteFromPendingList(content::RenderFrameHostImpl*) + 98
30 QtWebEngineCore 0x0000000119e1aa40 content::RenderFrameHostImpl::OnSwappedOut() + 192
31 QtWebEngineCore 0x0000000119e20427 bool IPC::MessageT<FrameHostMsg_SwapOut_ACK_Meta, std::__1::tuple<>, void>::Dispatch<content::RenderFrameHostImpl, content::RenderFrameHostImpl, void, void (content::RenderFrameHostImpl::)()>(IPC::Message const, content::RenderFrameHostImpl*, content::RenderFrameHostImpl*, void*, void (content::RenderFrameHostImpl::)()) + 87
32 QtWebEngineCore 0x0000000119e1ed9d content::RenderFrameHostImpl::OnMessageReceived(IPC::Message const&) + 1725
33 QtWebEngineCore 0x00000001169a7761 IPC::ChannelProxy::Context::OnDispatchMessage(IPC::Message const&) + 97
34 QtWebEngineCore 0x0000000115ed895f base::TaskAnnotator::RunTask(char const
, base::PendingTask*) + 255
35 QtWebEngineCore 0x0000000115eef43d base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow*, bool*) + 429
36 QtWebEngineCore 0x0000000115eef900 non-virtual thunk to base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() + 64
37 QtWebEngineCore 0x00000001138cf906 QtWebEngineCore::MessagePumpForUIQt::handleScheduledWork() + 54
38 QtCore 0x000000010dca29bf QObject::event(QEvent*) + 111
39 QtWidgets 0x0000000110bebf5a QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266
40 QtWidgets 0x0000000110bed3e6 QApplication::notify(QObject*, QEvent*) + 598
41 QtWidgets.abi3.so 0x00000001107a4fea sipQApplication::notify(QObject*, QEvent*) + 234
42 QtCore 0x000000010dc779f4 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
43 QtCore 0x000000010dc78be9 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 809
44 libqcocoa.dylib 0x000000011f5df0e9 QCocoaEventDispatcherPrivate::processPostedEvents() + 313
45 libqcocoa.dylib 0x000000011f5df858 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 40
46 com.apple.CoreFoundation 0x00007fff205512bc CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
47 com.apple.CoreFoundation 0x00007fff20551224 __CFRunLoopDoSource0 + 180
48 com.apple.CoreFoundation 0x00007fff20550fa4 __CFRunLoopDoSources0 + 242
49 com.apple.CoreFoundation 0x00007fff2054f9cc __CFRunLoopRun + 893
50 com.apple.CoreFoundation 0x00007fff2054ef8c CFRunLoopRunSpecific + 563
51 com.apple.HIToolbox 0x00007fff287971f3 RunCurrentEventLoopInMode + 292
52 com.apple.HIToolbox 0x00007fff28796f55 ReceiveNextEventCommon + 587
53 com.apple.HIToolbox 0x00007fff28796cf3 _BlockUntilNextEventMatchingListInModeWithFilter + 70
54 com.apple.AppKit 0x00007fff22d58172 _DPSNextEvent + 864
55 com.apple.AppKit 0x00007fff22d56945 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
56 com.apple.AppKit 0x00007fff22d48c69 -[NSApplication run] + 586
57 libqcocoa.dylib 0x000000011f5de5d3 QCocoaEventDispatcher::processEvents(QFlagsQEventLoop::ProcessEventsFlag) + 2579
58 QtCore 0x000000010dc73a7f QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 431
59 QtCore 0x000000010dc78002 QCoreApplication::exec() + 130
60 QtWidgets.abi3.so 0x0000000110896032 meth_QApplication_exec(_object*, _object*) + 82
61 Python 0x000000010ade55c2 cfunction_call_varargs + 290
62 Python 0x000000010ade4f85 _PyObject_MakeTpCall + 373
63 Python 0x000000010aeb3945 call_function + 533
64 Python 0x000000010aeb074e _PyEval_EvalFrameDefault + 25678
65 Python 0x000000010ade58d0 function_code_fastcall + 128
66 Python 0x000000010aeb38ec call_function + 444
67 Python 0x000000010aeb07e5 _PyEval_EvalFrameDefault + 25829
68 Python 0x000000010ade58d0 function_code_fastcall + 128
69 Python 0x000000010aeb38ec call_function + 444
70 Python 0x000000010aeb074e _PyEval_EvalFrameDefault + 25678
71 Python 0x000000010aeb4734 _PyEval_EvalCodeWithName + 2804
72 Python 0x000000010aeaa224 PyEval_EvalCode + 100
73 net.ankiweb.dtop 0x000000010a8fd01b 0x10a8fb000 + 8219
74 net.ankiweb.dtop 0x000000010a8fd41c 0x10a8fb000 + 9244
75 net.ankiweb.dtop 0x000000010a8fbbf4 0x10a8fb000 + 3060

Do you need some more information? Is there anything I can do to resolve the issue? I can easily reproduce it as it really crashes every single time when I close an anki window.

Let me know and thanks for the great work!

Are you on the latest macOS and fully up to date? Can you reproduce the problem in both the qt5 and qt6 versions of the 2.1.50 release candidate? https://betas.ankiweb.net/

I just downloaded version qt6 and can reproduce the issue there. It wasn’t crashing anymore on the preferences but after adding words and closing the add view it still crashed. Should I test version qt5 as well?

Okay, it seems to crash less. But it still crashes like every second time.

Can you reproduce the problem on the latest macOS?

I just upgraded my OS and with the release candidate, it doesn’t seem to happen there anymore.

@dae This is the same issue I’m getting here, but on Windows!