The application crashed when I run it.
The debug console result:
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x108597170 UIView:0x10857e6e0.trailingMargin == UIButton:0x10b50fa60'Filters'.trailing + 8 (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful.
2018-10-09 11:13:05.328331+0800 KAppLocator[438:86468] TIC Read Status [1:0x0]: 1:57
2018-10-09 11:13:05.349980+0800 KAppLocator[438:86468] TIC Read Status [1:0x0]: 1:57
2018-10-09 11:13:07.929435+0800 KAppLocator[438:86324] * Terminating app due to uncaught exception 'NonExistentDocumentException', reason: 'Document '' doesn't exist. Check document.exists to make sure the document exists before calling document.data.'
* First throw call stack:
(0x18101ed8c 0x1801d85ec 0x100b916e8 0x100a3c460 0x100a3df74 0x100a3e01c 0x100b909dc 0x100b90ff4 0x1035f91dc 0x1035f919c 0x1035fdd2c 0x180fc7070 0x180fc4bc8 0x180ee4da8 0x182eca020 0x18af04758 0x100ad8324 0x180975fc0)
libc++abi.dylib: terminating with uncaught exception of type NSException
I've check the FSTDocumentsKey and the users/zdfWJ3sv2JXgYu8iXsA0tGI1CYF2> and the documents key exists in firebase.
Found out also the error, Thread 1 signal SIGBART [FIRDocumentSnapshot data]
What is the possible cause of crashing?
Thank you in advance, folks! :)
Related
I'm making an app with Swift and Firestore and since yesterday evening, my app crash when it start on when executing :
FirebaseApp.configure()
Here is the error message :
2018-05-23 10:27:08.562176+0200 protoMeteoApp[51741:3501027] 4.9.0 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40009000 started
2018-05-23 10:27:08.578312+0200 protoMeteoApp[51741:3501027] 4.9.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see https://help.apple.com/xcode/mac/8.0/#/dev3ec8a1cb4)
2018-05-23 10:27:08.592866+0200 protoMeteoApp[51741:3500914] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]'
First throw call stack:
(
0 CoreFoundation 0x000000010925f1e6
__exceptionPreprocess + 294
......
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I tried to fix it creating a new project, downloading again "GoogleService-Info.plist" but it still crash.
Any idea ?
Can add following two keys into your Info.plist file:
Set FirebaseAppDelegateProxyEnabled to YES
Set FirebaseScreenReportingEnabled to NO
Also configure your Firebase app into AppDelegate.swift file inside didFinishLaunchingWithOptions method before use of Firebase as:
FirebaseApp.configure()
This is the exception and in my ignorance of using the tools in the IDE I have a very basic question. How do I go to the line of code that causes the issue? I have located where the issue is, but rather than NSLogging a message in the didload and didAppear events, then stepping through the code until is breaks seems like a long way to figure this out. I am assuming that the [5970:1623718] is a clue, but to what?
2017-10-04 08:22:47.798 Auto Mileage - Universal[5970:1623718] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3]'
*** First throw call stack:
(0x2580f91b 0x24faae17 0x2572172b 0xd89e3 0xd9e57 0x2a0d1465 0x2a0d15a5 0x2a0c0b51 0x2a0d5d1b 0x29e7523b 0x29d86a73 0x27e1ebcd 0x27e1a375 0x27e1a209 0x27e196d1 0x27e193a5 0x29d7db79 0x257d16c9 0x257cf9cd 0x257cfdff 0x2571f229 0x2571f015 0x26d0fac9 0x29df3189 0xe9159 0x253c7873)
libc++abi.dylib: terminating with uncaught exception of type NSException
You can add an "Exception Breakpoint".
Like in the picture, select "Show the Breakpoint navigator" (the blue icon on the top of the navigator), then click on the plus icon on the bottom and click on "Add Exception Breakpoint".
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've implemented an In-App-Purchase into my app.
If I run my app and press the "purchase" button, i get the following error:
2014-10-22 17:48:20.733 MyApp[170:3435] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array'
Does someone got the same error and know what's to do?
It is the typical exception that emerges when handling an empty array.
Add an exception breakpoint to your project in Xcode, as shown in the picture.
It will stop the execution of the app in the line that the exception does happen