Watchdog killed the app because PrintKit is performing XPC operations on the main thread,see the call stacks below.
__dispatch_sema4_timedwait
__dispatch_semaphore_wait_slow
+[_PK_OneShotXPC withTimeout:doSyncronousOneShot:]
__pk_mdns_resolveSynchronous
-[PKPrinter(PKPrinterPrivate) resolveWithTimeout:]
-[PKPrinter printerURL]
-[UIPrinter _initWithPrinter:]
-[UIPrinterSelectionOption setPrinter:]
-[UIPrinterBrowserViewController tableView:didSelectRowAtIndexPath:]
-[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:isCellMultiSelect:deselectPrevious:performCustomSelectionAction:]
-[UITableView _userSelectRowAtPendingSelectionIndexPath:]
-[_UIAfterCACommitBlock run]
-[_UIAfterCACommitQueue flush]
__runAfterCACommitDeferredBlocks
__cleanUpAfterCAFlushAndRunDeferredBlocks
__UIApplicationFlushCATransaction
__UIUpdateSequenceRun
_schedulerStepScheduledMainSection
_runloopSourceCallback
___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
___CFRunLoopDoSource0
___CFRunLoopDoSources0
___CFRunLoopRun
_CFRunLoopRunSpecific
_GSEventRunModal
-[UIApplication _run]
_UIApplicationMain
main main.m:26
start
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,there's a weird crash in our app,I put the crash log below.Hope you folks could offer some solutions.
Secondary Crashed:
EXC_BREAKPOINT: undefined
0 CoreFoundation _CFGetTypeID
1 CoreFoundation __flattenPlist
2 CoreFoundation __flattenPlist
3 CoreFoundation __flattenPlist
4 CoreFoundation ___CFBinaryPlistWriteOrPresize
5 CoreFoundation _CFPropertyListWrite
6 CoreFoundation _CFPropertyListCreateData
7 CFNetwork _CFHTTPCookieGetExpirationTime
8 libdispatch.dylib __dispatch_block_async_invoke2
9 libdispatch.dylib __dispatch_client_callout
10 libdispatch.dylib __dispatch_lane_serial_drain
11 libdispatch.dylib __dispatch_lane_invoke
12 libdispatch.dylib __dispatch_workloop_worker_thread
13 libsystem_pthread.dylib libsystem_pthread.dylib#_pthread_wqthread
Our app encountered a new crash since beta5(23A5308g) released last week,and it seems the crash is not solved yet in beta6(23A5318c).The crash stack below
`-[UIView _backing_setPosition:]
-[UIView setCenter:]
-[_UIEditMenuContentPresentation _displayPreparedMenu:titleView:reason:didDismissMenu:configuration:]
___54-[_UIEditMenuContentPresentation _displayMenu:reason:]_block_invoke
-[UIEditMenuInteraction _editMenuPresentation:preparedMenuForDisplay:completion:]
-[_UIEditMenuContentPresentation _displayMenu:reason:]
-[_UIEditMenuContentPresentation displayMenu:configuration:]
___58-[UIEditMenuInteraction presentEditMenuWithConfiguration:]_block_invoke
___80-[UIEditMenuInteraction _prepareMenuAtLocation:configuration:completionHandler:]_block_invoke
___109-[UITextContextMenuInteraction _editMenuInteraction:menuForConfiguration:suggestedActions:completionHandler:]_block_invoke
___107-[UITextContextMenuInteraction _querySelectionCommandsForConfiguration:suggestedActions:completionHandler:]_block_invoke
WTF::CompletionHandler<void (WebKit::DocumentEditingContext&&)>::operator()(WebKit::DocumentEditingContext&&)
WTF::Detail::CallableWrapper<IPC::Connection::makeAsyncReplyCompletionHandler<Messages::WebPage::RequestDocumentEditingContext, WTF::CompletionHandler<void (WebKit::DocumentEditingContext&&)> >(WTF::CompletionHandler<void (WebKit::DocumentEditingContext&&)>&&, WTF::ThreadLikeAssertion)::{lambda(IPC::Connection*, IPC::Decoder*)#1}, void, IPC::Connection*, IPC::Decoder*>::call(IPC::Connection*, IPC::Decoder*)
WTF::Detail::CallableWrapper<WebKit::AuxiliaryProcessProxy::sendMessage(WTF::UniqueRefIPC::Encoder&&, WTF::OptionSetIPC::SendOption, std::__1::optionalIPC::ConnectionAsyncReplyHandler, WebKit::AuxiliaryProcessProxy::ShouldStartProcessThrottlerActivity)::$_1, void, IPC::Connection*, IPC::Decoder*>::call(IPC::Connection*, IPC::Decoder*)
IPC::Connection::dispatchMessage(WTF::UniqueRefIPC::Decoder)
IPC::Connection::dispatchIncomingMessages()
WTF::RunLoop::performWork()
WTF::RunLoop::performWork(void*)
_CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
___CFRunLoopDoSource0
___CFRunLoopDoSources0
___CFRunLoopRun
__CFRunLoopRunSpecificWithOptions
_GSEventRunModal
-[UIApplication _run]
_UIApplicationMain
main main.m
start