I am having an issue with frequent editor crashes on macOS. The crash seems to happen anytime I click on another application outside of Unity (such as Visual Studio or Perforce). As soon as I do, the editor will immediately crash. I am not really sure what may be causing this or how to track down a solution. Here’s is the crash stack trace.
#0 0x007fc92ec54b20 in (Unknown)
#1 0x007fff2fa60d8d in SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)
#2 0x007fff2fa60c3d in SendEventToEventTargetWithOptions
#3 0x007fff2faa0b8c in ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
#4 0x007fff2fa61e8a in DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)
#5 0x007fff2fa60d8d in SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)
#6 0x007fff2fa7647e in SendEventToEventTarget
#7 0x007fff2e0ce8ec in _DPSNextEvent
#8 0x007fff2e0cc880 in -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
#9 0x007fff2e0be58e in -[NSApplication run]
#10 0x007fff2e090396 in NSApplicationMain
#11 0x0000010767deaf in EditorMain(int, char const**)
#12 0x0000010767e1b9 in main
#13 0x007fff6aef4cc9 in start