应用程序在UITextView中使用听写时崩溃

时间:2015-03-11 06:23:45

标签: ios uitextview xcode6.1 uitextinput dictation

在UITextView中使用听写时,应用程序崩溃了。 在键盘中使用听写功能时,文本会自动保存,并且应用程序因同样的原因而崩溃。 正常情景:

当用户使用键盘通过听写模式输入文本时,文本将在2秒后自动保存。

当前情况

当用户通过听写模式尝试长文本时,文本会自动保存,同时应用程序本身也会崩溃。

请找到堆栈跟踪



Exception Type:  SIGABRT
Exception Codes: #0 at 0x371bbdfc
Crashed Thread:  0

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'We were never set up properly to stream in this document.'

Last Exception Backtrace:
0   CoreFoundation                       0x294205f7 __exceptionPreprocess + 127
1   libobjc.A.dylib                      0x36b5ac77 objc_exception_throw + 36
2   CoreFoundation                       0x294204cd +[NSException raise:format:arguments:] + 102
3   Foundation                           0x2a0f4a49 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 90
4   UIKit                                0x2ce48c2b -[UIDictationStreamingOperations willEndEditingInInputDelegate:] + 136
5   UIKit                                0x2c8ecf4f +[UIDictationController keyboardWillChangeFromDelegate:toDelegate:] + 140
6   UIKit                                0x2c8ec717 -[UIKeyboardImpl setDelegate:force:] + 320
7   UIKit                                0x2c8e64d1 -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 1118
8   UIKit                                0x2c9b8631 -[UIResponder _finishResignFirstResponder] + 158
9   UIKit                                0x2c9634f5 -[UIResponder resignFirstResponder] + 274
10  UIKit                                0x2c96327f -[UITextView resignFirstResponder] + 76
11  Classroom                            0x00372f2f -[ComposerViewController autoSaveDraft] (ComposerViewController.m:1800)
12  Foundation                           0x2a1349e5 __NSFireTimer + 62
13  CoreFoundation                       0x293e6f07 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
14  CoreFoundation                       0x293e6a89 __CFRunLoopDoTimer + 654
15  CoreFoundation                       0x293e4cf3 __CFRunLoopRun + 1416
16  CoreFoundation                       0x29331b31 CFRunLoopRunSpecific + 474
17  CoreFoundation                       0x29331943 CFRunLoopRunInMode + 104
18  GraphicsServices                     0x306e8051 GSEventRunModal + 134
19  UIKit                                0x2c923f21 UIApplicationMain + 1438
20  Classroom                            0x000e7493 main (main.m:13)
21  libdyld.dylib                        0x370f6aaf start + 0




0 个答案:

没有答案