random crash in ios6 after app launched - ios6

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];
}
});
}

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...

Xcode 4.5 callStackSymbol not Symbolicated

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!

Xtify Datastore Richnotification db is Nil

I must say I've been seeing that your support team is terrific, batting many, many problems successfully. Kudos on heroic support.
Here's my little one.
I installed everything by the book, and ran the code on my iPhone 5, firmware 6.0.1. It's giving the following error: ERROR Creating data store. Datastore for richnotification db is nil. Below is the log. Also below is the last exception backtrace.
-[XLappMgr registerForPush] [Line 325] Attempt to register for push notifications...
Reachability Flag Status: WR t------ networkStatusForFlags
Succeeded registering for push notifications. Device token: <left out for security purposes, but valid.>
ERROR Creating data store. Datastore for richnotification db is nil
Last Exception Backtrace:
0 CoreFoundation 0x3972a3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x385b695e objc_exception_throw + 26
2 CoreFoundation 0x3972a302 +[NSException raise:format:] + 102
3 Foundation 0x39964f14 -[NSURL(NSURL) initFileURLWithPath:] + 72
4 Foundation 0x39964e3e +[NSURL(NSURL) fileURLWithPath:] + 38
5 Rabbit 0x00108acc -[XLDbMgr managedObjectModel] (XLDbMgr.m:74)
6 Rabbit 0x00108caa -[XLDbMgr createNewDatabase] (XLDbMgr.m:101)
7 Rabbit 0x00108b4c -[XLDbMgr persistentStoreCoordinator] (XLDbMgr.m:89)
8 Rabbit 0x001088f0 -[XLDbMgr managedObjectContext] (XLDbMgr.m:47)
9 Rabbit 0x0010883c +[XLDbMgr getDBMgr] (XLDbMgr.m:23)
10 Rabbit 0x000fba10 -[AppDetailsMgr init] (AppDetailsMgr.m:33)
11 Rabbit 0x000fb97c +[AppDetailsMgr get] (AppDetailsMgr.m:26)
12 Rabbit 0x00110fd2 -[XLServerMgr sendProviderDeviceToken] (XLServerMgr.m:94)
13 Rabbit 0x00110d0c -[XLServerMgr initWithReg:] (XLServerMgr.m:64)
14 Rabbit 0x001000d6 -[XLappMgr registerWithXtify:] (XLappMgr.m:118)
15 Rabbit 0x0008073e -[AppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] (AppDelegate.m:54)
16 UIKit 0x38c5f7ee _UIXXRemoteNotificationRegistrationSucceeded + 146
17 UIKit 0x38c60278 _XRemoteNotificationRegistrationSucceeded + 112
18 AppSupport 0x36a9940c migHelperRecievePortCallout + 188
19 CoreFoundation 0x396ff3e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
20 CoreFoundation 0x396ff386 __CFRunLoopDoSource1 + 134
21 CoreFoundation 0x396fe20a __CFRunLoopRun + 1378
22 CoreFoundation 0x39671238 CFRunLoopRunSpecific + 352
23 CoreFoundation 0x396710c4 CFRunLoopRunInMode + 100
24 GraphicsServices 0x369aa336 GSEventRunModal + 70
25 UIKit 0x38a6128c UIApplicationMain + 1116
26 Rabbit 0x0008055a main (main.m:16)
27 Rabbit 0x000804fc start + 36
I did ANE for Adobe AIR App and I had to solve this problem for a long time, but finally I realized the reason: The resource files that are in the XtifyLib / XtifyPush.embeddedframework / XtifyPush.framework / Versions / A / Resources / must always be added to the project in my case, with ANE it should be in the folder iPhone-ARM, because ADT moves them to the top-level directory - it is there where it is necessary

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