2017-02-22 234 views
0

我的客戶端設備上出現了一個奇怪的崩潰。 任何人都知道這可能意味着什麼?iOS應用程序崩潰[UIKBKeyplaneView setState:forKey:]'

該設備運行iOS 10.2

Application Specific Information: 

objc_msgSend() selector name: setFrame: 

Thread 0 Crashed: 
0 libobjc.A.dylib      0x0000000184696f68 objc_msgSend + 8 
1 UIKit        0x000000018bc0f4c4 -[UIKBKeyplaneView setState:forKey:] + 780 
2 UIKit        0x000000018bc07b90 -[UIKeyboardLayoutStar setKeyplaneName:] + 6948 
3 UIKit        0x000000018bcb3744 -[UIKeyboardLayoutStar completeSendStringActionForTouchDownWithKey:withActions:executionContext:] + 964 
4 UIKit        0x000000018c577150 -[UIKeyboardTaskExecutionContext returnExecutionToParentWithInfo:] + 268 
5 UIKit        0x000000018bcb1458 -[UIKeyboardLayoutStar touchDownWithKey:atPoint:executionContext:] + 2832 
6 UIKit        0x000000018c577150 -[UIKeyboardTaskExecutionContext returnExecutionToParentWithInfo:] + 268 
7 UIKit        0x000000018bcaf870 -[UIKeyboardLayoutStar touchDown:executionContext:] + 644 
8 UIKit        0x000000018bf3596c __47-[UIKeyboardLayout touchDownTaskForTouchState:]_block_invoke + 296 
9 UIKit        0x000000018bb25b14 -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 380 
10 UIKit        0x000000018bf34bbc -[UIKBTouchOrderedTaskList executeTasksInView:withBlock:] + 264 
11 UIKit        0x000000018bf377fc -[UIKeyboardLayout _enumerateDeferredTouchUUIDs:withBlock:] + 392 
12 UIKit        0x000000018bf37d5c __97-[UIKeyboardLayout recognizer:beginTouchDownForTouchWithId:atPoint:forBeginState:whenStateReady:]_block_invoke + 148 
13 libdispatch.dylib     0x0000000184ad61bc _dispatch_client_callout + 12 
14 libdispatch.dylib     0x0000000184ae7084 _dispatch_barrier_sync_f_slow_invoke + 316 
15 libdispatch.dylib     0x0000000184ad61bc _dispatch_client_callout + 12 
16 libdispatch.dylib     0x0000000184adad68 _dispatch_main_queue_callback_4CF + 996 
17 CoreFoundation      0x0000000185bfa810 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8 
18 CoreFoundation      0x0000000185bf83fc __CFRunLoopRun + 1656 
19 CoreFoundation      0x0000000185b262b8 CFRunLoopRunSpecific + 440 
20 GraphicsServices      0x00000001875da198 GSEventRunModal + 176 
21 UIKit        0x000000018bb667fc -[UIApplication _run] + 680 
22 UIKit        0x000000018bb61534 UIApplicationMain + 204 
23 Manager        0x0000000100165410 main (main.m:9) 
24 libdyld.dylib      0x0000000184b095b8 start + 0 

回答

1

確定了那些可能在這裏找到自己的人,我發現這個問題。事實上,還有另外兩個奇怪的堆棧跟蹤也與相同的問題有關。

基本上,如果您嘗試使用自定義鍵盤,但在鍵盤上使用另一個視圖控制器的容器視圖,那麼會發生'怪事'。我發現我能夠讓我的應用程序崩潰,如果我的鍵盤可見並導航離開又回來。

無論如何,一旦我重寫鍵盤是一個基本的UIView而不是UIViewController,崩潰就消失了。自改變以來,只進行了一個小時左右的測試,但我確信這是問題所在。