To inherit style for all textViews in my app I did
UITextView.appearance().keyboardAppearance = .dark
The problem is when I enter the screen with textView my application quits unexpectedly, in log I see:
*** Assertion failure in void PushNextClassForSettingIMP(id, SEL)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3599.6.1/UIAppearance.m:760
* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Please file a radar on UIKit if you see this assertion.'
* First throw call stack:
Related
After I type on User Name and Password text boxes in app and then click on "Login" button, I got following error and app is crashed.
***** Assertion failure in -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3599.6/Keyboard/UIKeyboardTaskQueue.m:432
2017-05-09 10:30:00.984744 NetCast[657:113345] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] may only be called from the main thread.'
* First throw call stack:**
I encounter that problem whenever I login.
I have an error message when I tap very quickly in a TextView into a TableView. It crashes and gives me the error message :
*** Assertion failure in -[_UIKBRTRecognizer notifyDelegateOfCancelledTouch:],
/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3600.5.2/Keyboard/_UIKBRTRecognizer.m:996
2017-01-14 18:17:18.558043 Formbox_Dacia_BE_Bruxelles_2017[317:15523]
*** Assertion failure in -[_UIKBRTRecognizer notifyDelegateOfCancelledTouch:], /BuildRoot/Library/
Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'Can't cancel on a touch that isn't already active!'
*** First throw call stack:
(0x1e00ae07 0x1d26b077 0x1e00ace1 0x1e8de0f1 0x236fbeb3 0x236fa3f1 0x3f6d67 0x402ed9 0x3fa215 0x404de1 0x404be9 0x1d866937 0x1d86648c)
libc++abi.dylib: terminating with uncaught exception of type
NSException
Any ideas ?
EDIT: It seems that it is when I click on the keyboard selection, and I press on a keyboard touch for info.
I am trying to run my application and suddenly i get this error:
2014-11-05 12:12:54.972 [238:9512] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ''
*** First throw call stack:
(0x235a7c1f 0x30dafc8b 0x235a7b65 0x299b61 0x299adf 0x322ec7 0x13b50d 0x242b6d6f 0x2356e377 0x2356d787 0x2356bded 0x234ba211 0x234ba023 0x2a86d0a9 0x26ac61d1 0x102bff 0x102b88)
libc++abi.dylib: terminating with uncaught exception of type NSException
It's on the start of the application,
i get this error without changing any code in my project, any idea what can cause this?
To resolve the NSException crashes, you have to remove all the warnings of .xib/.storyboard files. Cross check the IBOutlets warnings and you can see a cross (X) icon related to the yellow warnings to remove it.
I have a similar situation to Uncaught exception handler not called but his is a Mac application and mine is an iOS app. The solution was to use ExceptionHandler framework but that is not available on iOS.
I have a brand new iOS single view application and it is only a few lines of code so I won't paste my whole file.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
NSSetUncaughtExceptionHandler(&handler);
#throw NSInternalInconsistencyException;
return YES;
}
void handler()
{
NSLog(#"hello world");
}
So in didFinishLaunchingWithOptions I set my custom exception handler and then force a crash. The exception handler is then meant to print hello world to the console but that does not happen. Putting break points in the handler shows that execution does not enter the method. However the exception gets printed to the console anyway (default action).
2014-07-24 08:58:25.476 Exception[430:70b] *** Terminating app due to uncaught exception of class '__NSCFConstantString'
libc++abi.dylib: terminating with uncaught exception of type __NSCFConstantString
Could there be another exception handler being set by default after my handler somewhere?
UPDATE
I decided to change how I force the crash from NSInternalInconsistencyException to [[NSArray arrayWithObject:#"object"] objectAtIndex:1];. The handler is now being called and hello world is being printed to the console.
So the question now is, why did NSINternalInconsistencyException not cause the handler to be called? The error is slightly different:
2014-07-24 10:13:51.333 Exception[1474:70b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
...
...
...
libc++abi.dylib: terminating with uncaught exception of type NSException
When i tried to click one button it moved to next UIViewcontroller and from there i click back button and it came back to the previous UIViewcontroller ,suddently it crashed.
Following are the crash report
2013-08-19 12:02:19.849 MyApp[851:907] *** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <CALayerArray: 0x1f1f1120> was mutated while being enumerated.' *** First throw call stack: (0x34a1d2a3 0x3c67797f 0x34a1cd85 0x36827ca3 0x36827d33 0x36827d33 0x36827d33 0x36827d33 0x36827b9b 0x36a0b585 0x368538af 0x368a3f19 0x3683aab3 0x368af8ef 0x365e4c01 0x3ca8e4b7 0x3ca8fdcb 0x349f0f3b 0x34963ebd 0x34963d49 0x384e02eb 0x36879301 0xdc439 0xdc3c0) libc++abi.dylib: terminate called throwing an exception