Xcode 4.5 callStackSymbol not Symbolicated - ios6

I am using NSException's callStackSymbol to log the stack trace of my crash and send it to my server.
I am getting this kind of stack trace from my release ipa file and/or the original released app on iTunes.
0 CoreFoundation 0x35d048a7 __exceptionPreprocess + 186
1 libobjc.A.dylib 0x33928259 objc_exception_throw + 32
2 CoreFoundation 0x35c591d7 -[__NSArrayM insertObject:atIndex:] + 186
3 MyApp 0x00125443 _mh_execute_header + 300099
4 Foundation 0x3512a933 __NSFireDelayedPerform + 414
5 CoreFoundation 0x35cd8a33 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
6 CoreFoundation 0x35cd8699 __CFRunLoopDoTimer + 364
7 CoreFoundation 0x35cd726f __CFRunLoopRun + 1206
8 CoreFoundation 0x35c5a4a5 CFRunLoopRunSpecific + 300
9 CoreFoundation 0x35c5a36d CFRunLoopRunInMode + 104
10 GraphicsServices 0x339f5439 GSEventRunModal + 136
11 UIKit 0x33432cd5 UIApplicationMain + 1080
12 MyApp 0x00124b07 _mh_execute_header + 297735
13 MyApp 0x000deaf0 _mh_execute_header + 10992
And I'm getting this on debug/release via Simulator (I was getting this kind of stack trace before supporting iOS 6.0):
0 CoreFoundation 0x35d048a7 __exceptionPreprocess + 186
1 libobjc.A.dylib 0x33928259 objc_exception_throw + 32
2 CoreFoundation 0x35c591d7 -[__NSArrayM insertObject:atIndex:] + 186
3 MyApp 0x00125443 [MyApp didAppLoad] + 300099
4 Foundation 0x3512a933 __NSFireDelayedPerform + 414
5 CoreFoundation 0x35cd8a33 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
6 CoreFoundation 0x35cd8699 __CFRunLoopDoTimer + 364
7 CoreFoundation 0x35cd726f __CFRunLoopRun + 1206
8 CoreFoundation 0x35c5a4a5 CFRunLoopRunSpecific + 300
9 CoreFoundation 0x35c5a36d CFRunLoopRunInMode + 104
10 GraphicsServices 0x339f5439 GSEventRunModal + 136
11 UIKit 0x33432cd5 UIApplicationMain + 1080
12 MyApp 0x00124b07 [MyApp appLoad] + 297735
13 MyApp 0x000deaf0 [MyApp start] + 10992
My question is, what should I do to make it symbolicated (do not offer me of using symbolicating tools because it was working on the previous releases and supporting iOS 6 using Xcode 4.5, it became like this, and it is not iTunes.crash file).
If there's any chance of getting the reason of the crash from iTunes.crash, can you teach me how to do it? I searched for about 6 hours and I still didn't find any clue.
Thanks in advance!

Related

React Native crash RCTImage RCTBlurredImageWithRadius

My iOS App is getting crash developed using React Native. Below is the stack trace of crash.
Crashed: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x7b78 __pthread_kill + 8
1 libsystem_pthread.dylib 0x73bc pthread_kill + 268
2 libsystem_c.dylib 0x2051c abort + 168
3 RCTImage 0x5d44 RCTBlurredImageWithRadius + 914
4 RCTImage 0x145d4 __68-[RCTImageView imageLoaderLoadedImage:error:forImageSource:partial:]_block_invoke.109 + 44
5 libdispatch.dylib 0x1e68 _dispatch_call_block_and_release + 32
6 libdispatch.dylib 0x3a2c _dispatch_client_callout + 20
7 libdispatch.dylib 0x6b44 _dispatch_queue_override_invoke + 784
8 libdispatch.dylib 0x15164 _dispatch_root_queue_drain + 396
9 libdispatch.dylib 0x1596c _dispatch_worker_thread2 + 164
10 libsystem_pthread.dylib 0x1080 _pthread_wqthread + 228
11 libsystem_pthread.dylib 0xe5c start_wqthread + 8
Any idea what is the reason for this issue.

Unusual Error appending new element to an array resulting in application crash

I am fetching a list of items from an API. This works fine. I have a local variable in my view controller such that upon successfully fetch of the items from API, I am reloading my table view.
Recently in the line where I am appending contents of the array from API to my local array variable, I am now getting a crash. I have research severally on SO with no success. I keep getting the thesame error
This is code causing the crash
Irrelevant API fetch code
if refresh {
self?.items = ticketItems
}
else {
self?.ticketItems.append(contentsOf:
ticketItems)
}
Usually, I should not get a crash when appending the contents of an array. This is weird to me. Please Find error message:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: !CGSizeEqualToSize(size, CGSizeZero)'
*** First throw call stack:
(
0 CoreFoundation 0x0000000116bb86fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x00000001157adac5 objc_exception_throw + 48
2 CoreFoundation 0x0000000116bb8482 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010fe51927 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 UIKitCore 0x000000011e0f0399 -[_UIUpdateVisibleCellsContext addSize:forIndexPath:] + 385
5 UIKitCore 0x000000011e0e8643 -[UICollectionViewFlowLayout shouldInvalidateLayoutForPreferredLayoutAttributes:withOriginalAttributes:] + 409
6 UIKitCore 0x000000011e0a2f08 -[UICollectionView _checkForPreferredAttributesInView:originalAttributes:] + 559
7 UIKitCore 0x000000011e0a3c24 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 1596
8 UIKitCore 0x000000011e0a35e2 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 31
9 UIKitCore 0x000000011e0a8a8c -[UICollectionView _updateVisibleCellsNow:] + 6120
10 UIKitCore 0x000000011e0adbb6 -[UICollectionView layoutSubviews] + 365
11 UIKitCore 0x000000011ecf99c1 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1417
12 QuartzCore 0x0000000111cf7eae -[CALayer layoutSublayers] + 173
13 QuartzCore 0x0000000111cfcb88 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 396
14 QuartzCore 0x0000000111d08ee4 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 72
15 QuartzCore 0x0000000111c783aa _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 328
16 QuartzCore 0x0000000111caf584 _ZN2CA11Transaction6commitEv + 608
17 QuartzCore 0x0000000111cafede _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 76
18 CoreFoundation 0x0000000116b1f0f7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
19 CoreFoundation 0x0000000116b195be __CFRunLoopDoObservers + 430
20 CoreFoundation 0x0000000116b19c31 __CFRunLoopRun + 1505
21 CoreFoundation 0x0000000116b19302 CFRunLoopRunSpecific + 626
22 GraphicsServices 0x000000011be162fe GSEventRunModal + 65
23 UIKitCore 0x000000011e82bba2 UIApplicationMain + 140
24 Sterling Bank App 0x000000010c1be211 main + 225
25 libdyld.dylib 0x0000000118307541 start + 1
26 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I was getting the exact error:
'Invalid parameter not satisfying: !CGSizeEqualToSize(size, CGSizeZero)'
It was just because I forgot to set translatesAutoresizingMaskIntoConstraints to false for a subview I was adding to cell's contentView...

random crash in ios6 after app launched

We're getting a random crash in iOS6, here's the crash stack we're getting:
0 libobjc.A.dylib 0x399d75b0 objc_msgSend + 15
1 CoreFoundation 0x31c945de ___CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
2 CoreFoundation 0x31c94290 ___CFRunLoopDoTimer + 272
3 CoreFoundation 0x31c92f00 ___CFRunLoopRun + 1232
4 CoreFoundation 0x31c05ebc CFRunLoopRunSpecific + 351
5 CoreFoundation 0x31c05d48 CFRunLoopRunInMode + 103
6 GraphicsServices 0x357dc2ea GSEventRunModal + 71
7 UIKit 0x33b1b300 UIApplicationMain + 1119
8 21 0x00224e96 _main(main.m:27)
9 libdyld.dylib 0x39e13b20 _start
SEGV_ACCERR
We checked the corresponding logs, the crash just happened quite after app launched.
The code is a little complicated. Briefly, here just start a timer for net task when app not launched over.
(void)startTimeOutDetect{
execOnMainThread(^{
#synchronized(self){
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:#selector(handleSyncTimeOut) object:nil];
[self performSelector:#selector(handleSyncTimeOut) withObject:nil afterDelay:70.f];
}
});
}
(void)cancelTimeOutDetect{
execOnMainThread(^{
#synchronized(self){
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:#selector(handleSyncTimeOut) object:nil];
}
});
}

Problems with Flurry Crash Analytics

I think Flurry crash analytics service is not working properly. It is reporting some errors, so far so good. The problem is that they are including an initial symbolication and it doesn't make any sense:
Thread 0 Crashed:
0 libobjc.A.dylib 0x3a3005b0 +[Protocol load] + 663
1 UIKit 0x343993f5 0x342b1000 + 951285
2 UIKit 0x34586a39 0x342b1000 + 2972217
3 UIKit 0x342bd82f 0x342b1000 + 51247
4 UIKit 0x342bc293 0x342b1000 + 45715
5 UIKit 0x342c71e7 0x342b1000 + 90599
6 UIKit 0x342c6db3 0x342b1000 + 89523
7 UIKit 0x342b4801 0x342b1000 + 14337
8 UIKit 0x342b411b 0x342b1000 + 12571
9 GraphicsServices 0x35fa85a3 0x35fa2000 + 26019
10 GraphicsServices 0x35fa81d3 0x35fa2000 + 25043
11 CoreFoundation 0x32481173 +[__NSCFLocale automaticallyNotifiesObserversForKey:] + 17062
12 CoreFoundation 0x32481117 +[__NSCFLocale automaticallyNotifiesObserversForKey:] + 16970
13 CoreFoundation 0x3247ff99 +[__NSCFLocale automaticallyNotifiesObserversForKey:] + 12492
14 CoreFoundation 0x323f2ebd -[__NSDate timeIntervalSinceReferenceDate] + 500
15 CoreFoundation 0x323f2d49 -[__NSDate timeIntervalSinceReferenceDate] + 128
16 GraphicsServices 0x35fa72eb 0x35fa2000 + 21227
17 UIKit 0x34308301 0x342b1000 + 357121
18 myApp 0x000f962d __mh_execute_header + 50733
I uploaded its respective dsym file but no significant change.
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x8
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3a3005b0 +[Protocol load] + 663
1 UIKit 0x343993f5 0x342b1000 + 951285
2 UIKit 0x34586a39 0x342b1000 + 2972217
3 UIKit 0x342bd82f 0x342b1000 + 51247
4 UIKit 0x342bc293 0x342b1000 + 45715
5 UIKit 0x342c71e7 0x342b1000 + 90599
6 UIKit 0x342c6db3 0x342b1000 + 89523
7 UIKit 0x342b4801 0x342b1000 + 14337
8 UIKit 0x342b411b 0x342b1000 + 12571
9 GraphicsServices 0x35fa85a3 0x35fa2000 + 26019
10 GraphicsServices 0x35fa81d3 0x35fa2000 + 25043
11 CoreFoundation 0x32481173 +[__NSCFLocale automaticallyNotifiesObserversForKey:] + 17062
12 CoreFoundation 0x32481117 +[__NSCFLocale automaticallyNotifiesObserversForKey:] + 16970
13 CoreFoundation 0x3247ff99 +[__NSCFLocale automaticallyNotifiesObserversForKey:] + 12492
14 CoreFoundation 0x323f2ebd -[__NSDate timeIntervalSinceReferenceDate] + 500
15 CoreFoundation 0x323f2d49 -[__NSDate timeIntervalSinceReferenceDate] + 128
16 GraphicsServices 0x35fa72eb 0x35fa2000 + 21227
17 UIKit 0x34308301 0x342b1000 + 357121
18 myApp 0x000f962d main + 145 (main.m:17)
Does anyone know how to disable their symbolication service. What I want is to download a plain crash report so I can do my business and make my own symbolication locally.
Just download the crash report from Flurry and import it in XCODE and resymbolicate.
If you dont want flurry to symbolicate your crash reports, In the TARGETS sections in XCODE set
Build Settings -> Build Options -> Debug Information Format = DWARF

Upgrading existing app to iOS 6

while compiling/upgrading one of my existing apps to iOS 6 beta 4, it's crashing on device, however with simulator it's working fine.If anyone has tried it before, that will be really helpful.
Here is the crash log:
Incident Identifier: CC4112AC-DB73-489B-A64D-C946B6B25422
CrashReporter Key: ea874c1da9152b46ac359400c82fdc7f548b1778
Hardware Model: iPhone4,1
Process: AppCatalogue [2248]
Path: /var/mobile/Applications/9E3C6AAF-7341-42AF-B1DE-875F3B7A5555/AppCatalogue.app/AppCatalogue
Identifier: AppCatalogue
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-08-08 11:03:46.526 -0500
OS Version: iOS 6.0 (10A5376e)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3674d6be 0x3668b000 + 796350
1 libobjc.A.dylib 0x389c697a 0x389be000 + 35194
2 CoreFoundation 0x36751222 0x3668b000 + 811554
3 CoreFoundation 0x3674f94c 0x3668b000 + 805196
4 CoreFoundation 0x366a7464 0x3668b000 + 115812
5 AppCatalogue 0x0000a2aa 0x1000 + 37546
6 AppCatalogue 0x0000aa12 0x1000 + 39442
7 UIKit 0x38167b7c 0x38119000 + 322428
8 UIKit 0x3814c936 0x38119000 + 211254
9 UIKit 0x38163e12 0x38119000 + 306706
10 UIKit 0x3811ff26 0x38119000 + 28454
11 QuartzCore 0x3546de96 0x3546a000 + 16022
12 QuartzCore 0x3546da34 0x3546a000 + 14900
13 QuartzCore 0x3546e970 0x3546a000 + 18800
14 QuartzCore 0x3546e34e 0x3546a000 + 17230
15 QuartzCore 0x3546e15c 0x3546a000 + 16732
16 QuartzCore 0x3546dfbc 0x3546a000 + 16316
17 CoreFoundation 0x36722ae8 0x3668b000 + 621288
18 CoreFoundation 0x36720ddc 0x3668b000 + 613852
19 CoreFoundation 0x36721132 0x3668b000 + 614706
20 CoreFoundation 0x36694398 0x3668b000 + 37784
21 CoreFoundation 0x36694224 0x3668b000 + 37412
22 GraphicsServices 0x35049316 0x35044000 + 21270
23 UIKit 0x381708f4 0x38119000 + 358644
24 AppCatalogue 0x0003052a 0x1000 + 193834
25 AppCatalogue 0x00002e54 0x1000 + 7764
Thanks.
Try to build/run with xCode 4.5 GM. Some troubles was fixed in my case.

Resources