Anki Browser Still Crashing on Mac

This problem still occurring in the latest release:

Same issue, open browser and do anything (resize the side column, search for a card, etc.) and it crashes. Truncated report below…


Translated Report (Full Report Below)

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

Date/Time: 2023-06-17 17:48:05.7240 -0700
OS Version: macOS 12.6.6 (21G646)
Report Version: 12
Anonymous UUID: F52ED7B5-34EE-F411-E5DC-DF50B337B22A

Sleep/Wake UUID: 654390BB-3DB0-4719-A65B-9FA7970E47F8

Time Awake Since Boot: 270000 seconds
Time Since Wake: 6987 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Exception Codes: 0x0000000000000001, 0x0000000000000008
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [66215]

VM Region Info: 0x8 is not in any region. Bytes before following region: 105553518919672
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
—>
MALLOC_NANO (reserved) 600018000000-600020000000 [128.0M] rw-/rwx SM=NUL …(unallocated)

Kernel Triage:
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage

Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 QtWidgets 0x10dd020a0 QWidget::raise() + 52
1 QtWidgets 0x10ddf3344 0x10dcac000 + 1340228
2 QtWidgets 0x10ddf3344 0x10dcac000 + 1340228
3 QtWidgets 0x10ddf3948 0x10dcac000 + 1341768
4 QtWidgets 0x10de204e4 0x10dcac000 + 1524964
5 QtWidgets 0x10de20298 QMainWindow::event(QEvent*) + 68
6 QtWidgets.abi3.so 0x10e309150 sipQMainWindow::event(QEvent*) + 224
7 QtWidgets 0x10dcb9b00 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
8 QtWidgets 0x10dcbb4a8 QApplication::notify(QObject*, QEvent*) + 3396
9 QtWidgets.abi3.so 0x10e3be548 sipQApplication::notify(QObject*, QEvent*) + 248
10 QtCore 0x10a8e8e18 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 292
11 QtCore 0x10aa57164 QTimerInfoList::activateTimers() + 944
12 libqcocoa.dylib 0x110963124 0x110950000 + 78116
13 CoreFoundation 0x18d7d0f64 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
14 CoreFoundation 0x18d7d0eb0 __CFRunLoopDoSource0 + 208
15 CoreFoundation 0x18d7d0bb0 __CFRunLoopDoSources0 + 268
16 CoreFoundation 0x18d7cf530 __CFRunLoopRun + 828
17 CoreFoundation 0x18d7cea54 CFRunLoopRunSpecific + 600
18 HIToolbox 0x196413338 RunCurrentEventLoopInMode + 292
19 HIToolbox 0x1964130b4 ReceiveNextEventCommon + 564
20 HIToolbox 0x196412e68 _BlockUntilNextEventMatchingListInModeWithFilter + 72
21 AppKit 0x1903374b8 _DPSNextEvent + 860
22 AppKit 0x190335db0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
23 AppKit 0x190327f7c -[NSApplication run] + 596
24 libqcocoa.dylib 0x110963cd0 0x110950000 + 81104
25 QtCore 0x10a8f241c QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 532
26 QtCore 0x10a8e94a4 QCoreApplication::exec() + 112
27 QtWidgets.abi3.so 0x10e4c1cb0 meth_QApplication_exec(_object*, _object*) + 96
28 anki 0x102c0e494 cfunction_call + 104
29 anki 0x102bc79f0 _PyObject_MakeTpCall + 136
30 anki 0x102cc827c _PyEval_EvalFrameDefault + 23972
31 anki 0x102bc8c78 _PyFunction_Vectorcall + 720
32 anki 0x102cc6508 _PyEval_EvalFrameDefault + 16432
33 anki 0x102bc8a98 _PyFunction_Vectorcall + 240
34 anki 0x102cc73f8 _PyEval_EvalFrameDefault + 20256
35 anki 0x102ccb8bc PyEval_EvalCode + 532
36 anki 0x102cc23d4 PyEval_EvalCode + 80
37 anki 0x102d163ec run_mod + 152
38 anki 0x102d15948 PyRun_StringFlags + 152
39 anki 0x102d1586c PyRun_SimpleStringFlags + 64
40 anki 0x102b29a2c Py_RunMain + 340
41 anki 0x102823d5c pyembed::interpreter::MainPythonInterpreter::run::h58fae664a09cebdc + 204
42 anki 0x1028189bc anki::main::h431c981aae624753 + 1108
43 anki 0x102818048 std::sys_common::backtrace::__rust_begin_short_backtrace::h11a847fbc656954f + 12
44 anki 0x102818010 std::rt::lang_start::
$u7b$$u7b$closure$u7d$$u7d$::hcc8152733870c265 + 16
45 anki 0x1031c4e44 std::rt::lang_start_internal::h24d09c16ec322e75 + 648
46 anki 0x102818bd0 main + 52
47 dyld 0x1061f508c start + 520

Thread 1:: Dispatch queue: glmtl.ioSurfaceNotifierQueue
0 libsystem_kernel.dylib 0x18d6c6d94 mach_msg + 224
1 libsystem_kernel.dylib 0x18d6c6d00 mach_msg + 76
2 libdispatch.dylib 0x18d55def0 dispatch_mig_server + 288
3 libdispatch.dylib 0x18d5401b4 _dispatch_client_callout + 20
4 libdispatch.dylib 0x18d543670 _dispatch_continuation_pop + 500
5 libdispatch.dylib 0x18d5568e0 _dispatch_source_invoke + 1596
6 libdispatch.dylib 0x18d547784 _dispatch_lane_serial_drain + 376
7 libdispatch.dylib 0x18d548404 _dispatch_lane_invoke + 392
8 libdispatch.dylib 0x18d552c98 _dispatch_workloop_worker_thread + 648
9 libsystem_pthread.dylib 0x18d700360 _pthread_wqthread + 288
10 libsystem_pthread.dylib 0x18d6ff080 start_wqthread + 8

Thread 2:
0 libsystem_pthread.dylib 0x18d6ff078 start_wqthread + 0

Thread 3:
0 libsystem_pthread.dylib 0x18d6ff078 start_wqthread + 0

Thread 4:
0 libsystem_kernel.dylib 0x18d6c68cc semaphore_wait_trap + 8
1 libdispatch.dylib 0x18d540750 _dispatch_sema4_wait + 28
2 libdispatch.dylib 0x18d540df8 _dispatch_semaphore_wait_slow + 132
3 _rsbridge.so 0x1092088d0 std::thread::park::h4e2cd03b59e8660e + 56
4 _rsbridge.so 0x108a24e20 crossbeam_channel::context::Context::wait_until::hbde06cbc6bd36655 + 1004
5 rsbridge.so 0x108a24f88 crossbeam_channel::context::Context::with::$u7b$$u7b$closure$u7d$$u7d$::h0f3a0966504aa09a + 156
6 _rsbridge.so 0x108a255e0 crossbeam_channel::flavors::array::Channel$LT$T$GT$::recv::h0ee0dd844b65b473 + 1076
7 _rsbridge.so 0x108cb4a48 crossbeam_channel::channel::Receiver$LT$T$GT$::recv::he98893ca13a0a482 + 84
8 _rsbridge.so 0x108c696a4 tracing_appender::worker::Worker$LT$T$GT$::work::h0229be0f2d13aa8c + 36
9 _rsbridge.so 0x108c22224 std::sys_common::backtrace::__rust_begin_short_backtrace::hb303c321a8c6cb49 + 80
10 _rsbridge.so 0x108bbdc8c core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h9b9c0e1838bfc495 + 188
11 _rsbridge.so 0x1092156c0 std::sys::unix::thread::thread::new::thread_start::h7c145656763309f3 + 48
12 libsystem_pthread.dylib 0x18d70426c _pthread_start + 148
13 libsystem_pthread.dylib 0x18d6ff08c thread_start + 8

The crash still happens if you open Anki, reset window positions in the preferences, and then open the browse screen?

1 Like

Wow great, this seemed to do the trick. What an odd bug and workaround. Thank you so much!

Glad to hear that helped, but it unfortunately means there’s an ongoing issue, as the positions should have been cleared when you updated to 2.1.65. Do you find the problem comes back again at one point?

I’ll keep an eye out and let you know.

1 Like

How have things being going?

Thanks so much for checking in. It still happens but the reset window size option works to fix the issue so this is a workable solution for now. I frequently move my laptop between my home setup where I have 2 external monitors and work where I just use the laptop screen. I query whether switching between the desktop viewing resolution (27 inches) and the laptop screen (14 inches) may be a trigger.

That sounds like a likely cause. The Qt version will get a minor bump in the next update; will be interesting to hear if that helps.

Thanks! I’ll keep a lookout

this is happening to me as well - the reset window size option worked as a temporary fix but are there any permanent fixes?

Are you also altering your monitor layout? There is no permanent fix for this at the moment.

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