I'm using Custom AlertView MZFromSheetController, but it gives me the following Exception
*** Assertion failure in -[MZFormSheetController presentAnimated:completionHandler:], /Users/dt4it/Documents/SucessQuotes11/SucessQuotes/MZFormSheetController.m:418
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempting to begin a form sheet transition from to while a transition is already in progress. Wait for didPresentCompletionHandler/didDismissCompletionHandler to know the current transition has completed'
Could anyone tell me how to solve this?
Ensure you aren't calling the presentation method multiple times, I just hit this exact issue and found that the code was being called 4 times. Reducing it down to 1 (as it should be) fixed up the Assertion failure Exception.
Related
Using the following code to re-publish my Bluetooth service, I intermittently get a crash with the error message below.
self.stopAdvertising()
peripheralManager.removeAllServices()
if let service = self.cbService {
NSThread.sleepForTimeInterval(0.1)
peripheralManager.addService(service)
self.startAdvertising()
}
2016-06-03 09:32:10.262 BottleSimulator[180:3587] * Assertion failure in -[CBPeripheralManager addService:], /SourceCache/CoreBluetooth/CoreBluetooth-256/CBPeripheralManager.m:307
2016-06-03 09:32:10.270 BottleSimulator[180:3587] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Services cannot be added more than once'
Why am I getting this? I would think that the call to removeAllServices() would protect against this. I even added a sleep for testing, but it didn't stop the intermittent crashes.
Is there a more reliable way to re-publish a service?
My app is crushing when i'm calling a few methods
I can see the error message and I understand what it say but I don't know how to detect the array with the problem by the message.
I have lots of arrays in the project.
how can I know from where the problem come from?
this is the message:
2014-12-16 15:07:01.830 myApp[2776:1237923] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(0x2a3eae3f 0x37a98c8b 0x2a2ffc49 0x114c07 0x2d8e515d 0x2d8e3835 0x2d8df47d 0x2d885b37 0x2d2adccd 0x2d2a96b5 0x2d2a953d 0x2d2a8f21 0x2d2a8d25 0x2d2a2bfd 0x2a3b15cd 0x2a3aec8b 0x2a3af093 0x2a2fd621 0x2a2fd433 0x316ab0a9 0x2d8e7809 0x12fee5 0x38018aaf)
libc++abi.dylib: terminating with uncaught exception of type NSException
To handle All exceptions, From Xcode click on Show the Breakpoint Navigator
Click + button at bottom side and from pop up click on Add Exception Breakpoint.
This will add exception break points for application, try to run again and execution will stop if any runtime exception raised.
If this will not help, enable zombie environment for project, check out from this thread -
How to set exception breakpoint from Xcode
Enable Zombie Object in Xcode for better error tracing.
To enable
Press Command+Option+R
Under Diagnostic tab-> Memory Management
Check "Enable Zombie Object"
Hope this Helps
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 am Using Storyboard for a master/detail iPad app.
MenutabViewController is a UITabBarViewController.
Another Scene of the app starting from the same Controller, doing similar PUSH segues (push->master, push-detail) is OK. But this one gives me this message.
This message is never given again to someone else because I Googled a lot :p .
You can see an image of the storyboard here (not allowed to post one)
http://qupload.com/images/stackoverq.png
2012-11-13 17:13:47.244[9777:13d03] prepareForSegue: settingsStoreSegue
2012-11-13 17:13:47.244[9777:13d03] *** Assertion failure in -[UIStoryboardPushSegue perform], /SourceCache/UIKit_Sim/UIKit-2372/UIStoryboardBuiltInSegues.m:24
2012-11-13 17:13:52.323 IpposFfs[9777:13d03] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', **reason: 'Expected a navigation controller, but got an instance of 'MenuTabViewController' instead, while performing a split view controller push segue (identifier 'settingsStoreSegue') for index #0'**
*** First throw call stack:
(0x1cd6012 0x1606e7e 0x1cd5e78 0x109cf35 0x9a3ca2 0x995ad9 0x630422 0x7326b 0x5fd8d5 0x5fdb3d 0x1004e83 0x1c95376 0x1c94e06 0x1c7ca82 0x1c7bf44 0x1c7be1b 0x1c307e3 0x1c30668 0x54e65c 0x2cbd 0x2be5)
libc++abi.dylib: terminate called throwing an exception
I'm implementing UIButtons with block actions set on them for connivence and speed of integration. I've used this method before, a while ago now, and had little issue with it. Now, however, i'm facing an issue where integrating...
https://gist.github.com/2468899
... into my app now crashes it on launch. The error i'm receiving is as follows...
2012-09-27 22:18:47.459 flink[12174:907] -[UIButton setAction:withBlock:]: unrecognized selector sent to instance 0x1e8ae610
2012-09-27 22:18:47.460 flink[12174:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIButton setAction:withBlock:]: unrecognized selector sent to instance 0x1e8ae610'
*** First throw call stack:
(0x3885a3e7 0x333bf963 0x3885df31 0x3885c64d 0x387b4208 0xea477 0xff6af 0x36b92cb1 0x3882f8f7 0x3882f15d 0x3882df2f 0x387a123d 0x387a10c9 0x3868c33b 0x34014289 0xe7b8f 0xe7b30)
libc++abi.dylib: terminate called throwing an exception
... i've never seen this issue before but it's odd that it is immediately crashing without any interaction.
Thanks in advanced.
You must make sure to add the implementation file of the category to your target. In Xcode, go to the File Inspector and make sure the Target Membership checkbox for your target is checked.