Hi,
Indeed, I do not see any call to NSApplicationMain just like you have:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x19f8e85b0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x19f922848 pthread_kill + 296
2 libsystem_c.dylib 0x19f828808 abort + 124
3 kDrive 0x1009954a4 KDC::AppServer::init()::$_1::operator()() const + 20 (appserver.cpp:404)
4 kDrive 0x100995450 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KDC::AppServer::init()::$_1>::call(KDC::AppServer::init()::$_1&, void**) + 44 (qobjectdefs_impl.h:146)
5 kDrive 0x1009953ec void QtPrivate::Functor<KDC::AppServer::init()::$_1, 0>::call<QtPrivate::List<>, void>(KDC::AppServer::init()::$_1&, void*, void**) + 36 (qobjectdefs_impl.h:256)
6 kDrive 0x100995388 QtPrivate::QFunctorSlotObject<KDC::AppServer::init()::$_1, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) + 168 (qobjectdefs_impl.h:420)
7 QtCore 0x10520b0d8 QtPrivate::QSlotObjectBase::call(QObject*, void**) + 20 (qobjectdefs_impl.h:375) [inlined]
8 QtCore 0x10520b0d8 QSingleShotTimer::timerEvent(QTimerEvent*) + 204 (qtimer.cpp:358)
9 QtCore 0x1051ef36c QObject::event(QEvent*) + 88
10 QtWidgets 0x103180740 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272 (qapplication.cpp:3409)
11 QtWidgets 0x103181974 QApplication::notify(QObject*, QEvent*) + 532
12 QtCore 0x1051af7ac QCoreApplication::notifyInternal2(QObject*, QEvent*) + 208 (qcoreapplication.cpp:1067)
13 QtCore 0x10530bb04 QTimerInfoList::activateTimers() + 840 (qtimerinfo_unix.cpp:639)
14 libqcocoa.dylib 0x1037a4624 QCocoaEventDispatcherPrivate::processTimers() + 8 (qcocoaeventdispatcher.mm:131) [inlined]
15 libqcocoa.dylib 0x1037a4624 QCocoaEventDispatcherPrivate::activateTimersSourceCallback(void*) + 24 (qcocoaeventdispatcher.mm:125)
16 CoreFoundation 0x19f9c1ad8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
17 CoreFoundation 0x19f9c1a6c __CFRunLoopDoSource0 + 172
18 CoreFoundation 0x19f9c17d8 __CFRunLoopDoSources0 + 232
19 CoreFoundation 0x19f9c0468 __CFRunLoopRun + 820
20 CoreFoundation 0x19fa7e898 _CFRunLoopRunSpecificWithOptions + 532
21 HIToolbox 0x1ac38c714 RunCurrentEventLoopInMode + 316
22 HIToolbox 0x1ac38f99c ReceiveNextEventCommon + 464
23 HIToolbox 0x1ac5191c0 _BlockUntilNextEventMatchingListInMode + 48
24 AppKit 0x1a428a620 _DPSBlockUntilNextEventMatchingListInMode + 236
25 AppKit 0x1a3da6edc _DPSNextEvent + 588
26 AppKit 0x1a47eeb6c -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
27 AppKit 0x1a47ee878 -[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] + 72
28 AppKit 0x1a3d9f720 -[NSApplication run] + 368
29 libqcocoa.dylib 0x1037a4fb8 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1712 (qcocoaeventdispatcher.mm:430)
30 QtCore 0x1051b8b3c QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 36 (qeventloop.cpp:139) [inlined]
31 QtCore 0x1051b8b3c QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 500 (qeventloop.cpp:230)
32 QtCore 0x1051afe88 QCoreApplication::exec() + 128 (qcoreapplication.cpp:1382)
33 kDrive 0x1008e1f7c exec(std::__1::unique_ptr<KDC::AppServer, std::__1::default_delete<KDC::AppServer>>&) + 1996 (mainserver.cpp:193)
34 kDrive 0x1008e2134 main + 160 (mainserver.cpp:203)
35 dyld 0x19f565924 start + 6400
If switching to NSApplicationMain() resolves the issue and you’re able to make that transition, then please do so.
We will not be able to make that transition on the short term, but that is definitively toward this solution that we want to move in the next few months.