Post

Replies

Boosts

Views

Activity

wkWebview default drag crashing on login window
I am  working on  a macOS plugin application that replaces the default macOS login process and runs during login. However, I'm encountering a crash issue when a drag session is initiated inside a WKWebView component within my application. I have added the  part of crash log below . It's worth noting that I haven't implemented any custom drag protocols, so the default dragging method is the only one in use. Interestingly, this problem doesn't occur when I implemented the same WKWebView setup  in an app that runs at macOS Desktop environment (environment in which all regular apps run) . I would greatly appreciate it if someone could provide insights into the underlying causes of this behaviour. It would not only assist in resolving the issue but also contribute to a deeper understanding of the OSX system.      *******——  Crash Log    ——  ********   Process:             MyAppHelper-arm64 [6128] Path:                  /System/Library/Frameworks/Security.framework/Versions/A/MachServices/MyApp.bundle/Contents/XPCServices/MyAppHelper-arm64.xpc/Contents/MacOS/MyAppHelper-arm64 Identifier:            com.apple.MyAppHelper.arm64 Code Type:             ARM-64 (Native) Parent Process:        launchd [1] Responsible:          MyApp [6120] User ID:               92   Date/Time:             2023-10-05 10:21:03.6146 +0530 OS Version:            macOS 14.0 (23A344) Report Version:        12   Time Awake Since Boot: 5900 seconds Time Since Wake:       1053 seconds   System Integrity Protection: enabled   Crashed Thread:        0  Dispatch queue: com.apple.main-thread   Exception Type:        EXC_CRASH (SIGABRT) Exception Codes:       0x0000000000000000, 0x0000000000000000   Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process:   MyAppHel [6128]   Application Specific Information: abort() called     Thread 0 Crashed::  Dispatch queue: com.apple.main-thread 0   libsystem_kernel.dylib                0x1840fb11c __pthread_kill + 8 1   libsystem_pthread.dylib               0x184132cc0 pthread_kill + 288 2   libsystem_c.dylib                     0x184042a50 abort + 180 3   libc++abi.dylib                       0x1840ea6d8 abort_message + 132 4   libc++abi.dylib                       0x1840da7c8 demangling_terminate_handler() + 348 5   libobjc.A.dylib                       0x183d87894 _objc_terminate() + 144 6   libc++abi.dylib                       0x1840e9a9c std::__terminate(void ()()) + 16 7   libc++abi.dylib                       0x1840eca48 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception) + 36 8   libc++abi.dylib                       0x1840ec9f4 __cxa_throw + 140 9   libobjc.A.dylib                       0x183d7e01c objc_exception_throw + 420 10  CoreFoundation                        0x1842a9bac -[NSException raise] + 16 11  AppKit                                0x187c741f8 -[NSDraggingSession(NSInternal) _initWithPasteboard:image:offset:source:] + 624 12  AppKit                                0x187c73c88 -[NSCoreDragManager dragImage:fromWindow:at:offset:event:pasteboard:source:slideBack:] + 996 13  WebKit                                0x1a6f6775c WebKit::WebViewImpl::startDrag(WebCore::DragItem const&, WebKit::ShareableBitmapHandle&&) + 620 14  WebKit                                0x1a73c2e48 WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 27068 15  WebKit                                0x1a7484aa4 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 264 16  WebKit                                0x1a709185c WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 40 17  WebKit                                0x1a74800e4 IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_deleteIPC::Decoder>) + 332 18  WebKit                                0x1a74805cc IPC::Connection::dispatchIncomingMessages() + 292 19  JavaScriptCore                        0x19fe0820c WTF::RunLoop::performWork() + 204 20  JavaScriptCore                        0x19fe090dc WTF::RunLoop::performWork(void) + 36 21  CoreFoundation                        0x18420fd28 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 22  CoreFoundation                        0x18420fcbc __CFRunLoopDoSource0 + 176 23  CoreFoundation                        0x18420fa2c __CFRunLoopDoSources0 + 244 24  CoreFoundation                        0x18420e61c __CFRunLoopRun + 828 25  CoreFoundation                        0x18420dc2c CFRunLoopRunSpecific + 608 26  HIToolbox                             0x18e766448 RunCurrentEventLoopInMode + 292 27  HIToolbox                             0x18e766284 ReceiveNextEventCommon + 648 28  HIToolbox                             0x18e765fdc _BlockUntilNextEventMatchingListInModeWithFilter + 76 29  AppKit                                0x1879e8f90 _DPSNextEvent + 660 30  AppKit                                0x1881bcb94 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716 31  AppKit                                0x1879dc43c -[NSApplication run] + 476 32  AppKit                                0x1879b3708 NSApplicationMain + 880 33  MyAppHelper-arm64             0x102d6bb2c main + 388 34  dyld                                  0x183db9058 start + 2224
0
0
242
Oct ’23