ios facebook ad sdk crash, FBAdCache.m line 528 -[FBAdCache defaultImageContext] - facebook

0
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000200
Raw Text
0
CoreImage
CI::GLContext::init() + 276
1 CoreImage
CI::GLContext::init() + 240
2 CoreImage
CI::GLContext::GLContext(CI::GLContext::ShareContextInfo, CGColorSpace*, CGColorSpace*, CI::PixelFormat, bool, unsigned long, bool, bool) + 468
3 CoreImage
CI::GLContext::GLContext(CI::GLContext::ShareContextInfo, CGColorSpace*, CGColorSpace*, CI::PixelFormat, bool, unsigned long, bool, bool) + 24
4 CoreImage
+[CIContext(Internal) internalContextWithEAGLContext:options:] + 808
5 CoreImage
-[CIContext initWithOptions:] + 816
6
CoreImage
+[CIContext contextWithOptions:] + 52
7 MyApp
FBAdCache.m line 528
-[FBAdCache defaultImageContext]
8 MyApp
FBAdImageMetalRenderer.m line 67
-[FBAdImageMetalRenderer initWithMTLDevice:]
9 MyApp
FBAdBlurredImageView.m line 158
-[FBAdBlurredImageView metalImageRenderer:]
10 MyApp
FBAdBlurredImageView.m line 138
-[FBAdBlurredImageView createImageRenderer]
11 MyApp
FBAdBlurredImageView.m line 113
-[FBAdBlurredImageView setupViewsWithImage:withBlurredImage:]
12 MyApp
FBAdBlurredImageView.m line 268
-[FBAdBlurredImageView updateView:]
13 MyApp
FBAdBlurredImageView.m line 257
-[FBAdBlurredImageView layoutSubviews]
14
UIKit
-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1256
15 QuartzCore
-[CALayer layoutSublayers] + 184
16 QuartzCore
CA::Layer::layout_if_needed(CA::Transaction*) + 332
17
UIKit
-[UIView(Hierarchy) layoutBelowIfNeeded] + 548

Related

iOS Crash Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000

I have received the following crash log from Firebase Crashlytics but could not identify the exact reason. It's happing on iOS devices having os version above 15.0. I am using DiffableDataSource for loading collection view and table view.
Crashed: com.apple.main-thread
0 libswiftCore.dylib 0x3da990 swift_getObjectType + 40
1 libswiftUIKit.dylib 0x9674 thunk for #escaping #callee_guaranteed (#guaranteed UITableView, #in_guaranteed IndexPath, #in_guaranteed Any) -> (#owned UITableViewCell?) + 192
2 UIKitCore 0x3e81c -[__UIDiffableDataSource collectionView:cellForItemAtIndexPath:] + 188
3 libswiftUIKit.dylib 0x2dc8 UICollectionViewDiffableDataSource.collectionView(_:cellForItemAt:) + 80
4 libswiftUIKit.dylib 0x2c0c #objc UICollectionViewDiffableDataSource.collectionView(_:cellForItemAt:) + 224
5 UIKitCore 0x32b0f4 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 1148
6 UIKitCore 0x2255f0 -[UICollectionView _updateVisibleCellsNow:] + 4372
7 UIKitCore 0x179c4c -[UICollectionView layoutSubviews] + 320
8 UIKitCore 0x18c17c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2592
9 QuartzCore 0x407fc CA::Layer::layout_if_needed(CA::Transaction*) + 532
10 QuartzCore 0x32c60 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
11 QuartzCore 0x475b4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 452
12 QuartzCore 0x504a8 CA::Transaction::commit() + 704
13 UIKitCore 0x165b2c _afterCACommitHandler + 88
14 CoreFoundation 0x410c4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
15 CoreFoundation 0x10080 __CFRunLoopDoObservers + 592
16 CoreFoundation 0xb13c __CFRunLoopRun + 1052
17 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
18 GraphicsServices 0x1374 GSEventRunModal + 164
19 UIKitCore 0x514b58 -[UIApplication _run] + 1100
20 UIKitCore 0x296090 UIApplicationMain + 364
21 libswiftUIKit.dylib 0x30ecc UIApplicationMain(_:_:_:_:) + 104
22 AppName 0xd640 main + 4295185984 (TagListView.swift:4295185984)
23 ??? 0x10513dda4 (Missing)
Can anyone describe what this crash is?

Why app crashes with [NSObject(NSObject) doesNotRecognizeSelector:]?

The app sometimes crashes with [NSObject(NSObject) doesNotRecognizeSelector:], the selector being [UIImageView setImage:].
I captured it by setting an exception breakpoint and the crash happens when setting an UIImageView.image in prepareForReuse of a UICollectionViewCell:
class MyCell: UICollectionViewCell {
var coverImageView = UIImageView()
...
override func prepareForReuse() {
super.prepareForReuse()
coverImageView.image = nil
}
}
The prepareForReuse is called then the cell is instantiated:
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = myCollectionView.dequeueReusableCell(withReuseIdentifier: "myReuseID", for: indexPath) as! MyCell
...
}
Why is that happening?
Also I cannot load the quick look data view for the UIImageView so maybe the object has been released?
The error messages in console are:
2017-01-21 15:56:19.653 MyApp[4873:20387361] -[__NSMallocBlock__ size]: unrecognized selector sent to instance 0x608000880aa0
2017-01-21 15:56:37.697 MyApp[4873:20387361] invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
2017-01-21 15:56:38.847 MyApp[4873:20617657] [Optimizely Logging]: Successfully saved data file to disk. Code revision is 229
2017-01-21 15:56:42.723 MyApp[4873:20387361] [Optimizely Logging]: (ERROR) NSInvalidArgumentException: Stack Trace:
(
0 CoreFoundation 0x000000010f587d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010ef6121e objc_exception_throw + 48
2 CoreFoundation 0x000000010f5f7f04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010f50d005 ___forwarding___ + 1013
4 CoreFoundation 0x000000010f50cb88 _CF_forwarding_prep_0 + 120
5 UIKit 0x000000010ba5e20f -[UIImageView _updateImageViewForOldImage:newImage:] + 297
6 UIKit 0x000000010ba59950 -[UIImageView setImage:] + 391
7 MyApp 0x000000010945e0d8 _TFC6MyApp23MyCell15prepareForReusefT_T_ + 136
8 MyApp 0x000000010945e112 _TToFC6MyApp23MyCell15prepareForReusefT_T_ + 34
9 UIKit 0x000000010c19aed1 -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + 773
10 UIKit 0x000000010c19b8ea -[UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] + 169
11 MyApp 0x00000001095bdee2 _TFC6MyApp23MyViewController14collectionViewfTCSo16UICollectionView13cellForItemAtV10Foundation9IndexPath_CSo20UICollectionViewCell + 594
12 MyApp 0x00000001095be747 _TToFC6MyApp23MyViewController14collectionViewfTCSo16UICollectionView13cellForItemAtV10Foundation9IndexPath_CSo20UICollectionViewCell + 87
13 UIKit 0x000000010c18675f -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 467
14 UIKit 0x000000010c186586 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 35
15 UIKit 0x000000010c18ba5e -[UICollectionView _updateVisibleCellsNow:] + 4803
16 UIKit 0x000000010c191725 -[UICollectionView layoutSubviews] + 313
17 UIKit 0x000000010b90dab8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
18 QuartzCore 0x000000010d558bf8 -[CALayer layoutSublayers] + 146
19 QuartzCore 0x000000010d54c440 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
20 QuartzCore 0x000000010d54c2be _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
21 QuartzCore 0x000000010d4da318 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
22 QuartzCore 0x000000010d5073ff _ZN2CA11Transaction6commitEv + 475
23 QuartzCore 0x000000010d507d6f _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113
24 CoreFoundation 0x000000010f52c267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
25 CoreFoundation 0x000000010f52c1d7 __CFRunLoopDoObservers + 391
26 CoreFoundation 0x000000010f510f8e __CFRunLoopRun + 1198
27 CoreFoundation 0x000000010f510884 CFRunLoopRunSpecific + 420
28 GraphicsServices 0x0000000112b77a6f GSEventRunModal + 161
29 UIKit 0x000000010b848c68 UIApplicationMain + 159
30 MyApp 0x00000001092f5a7f main + 111
31 libdyld.dylib 0x00000001115b568d start + 1
)
2017-01-21 15:56:42.725 MyApp[4873:20387361] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSMallocBlock__ size]: unrecognized selector sent to instance 0x608000880aa0'
*** First throw call stack:
(
0 CoreFoundation 0x000000010f587d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010ef6121e objc_exception_throw + 48
2 CoreFoundation 0x000000010f5f7f04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010f50d005 ___forwarding___ + 1013
4 CoreFoundation 0x000000010f50cb88 _CF_forwarding_prep_0 + 120
5 UIKit 0x000000010ba5e20f -[UIImageView _updateImageViewForOldImage:newImage:] + 297
6 UIKit 0x000000010ba59950 -[UIImageView setImage:] + 391
7 MyApp 0x000000010945e0d8 _TFC6MyApp23MyCell15prepareForReusefT_T_ + 136
8 MyApp 0x000000010945e112 _TToFC6MyApp23MyCell15prepareForReusefT_T_ + 34
9 UIKit 0x000000010c19aed1 -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + 773
10 UIKit 0x000000010c19b8ea -[UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] + 169
11 MyApp 0x00000001095bdee2 _TFC6MyApp23MyViewController14collectionViewfTCSo16UICollectionView13cellForItemAtV10Foundation9IndexPath_CSo20UICollectionViewCell + 594
12 MyApp 0x00000001095be747 _TToFC6MyApp23MyViewController14collectionViewfTCSo16UICollectionView13cellForItemAtV10Foundation9IndexPath_CSo20UICollectionViewCell + 87
13 UIKit 0x000000010c18675f -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 467
14 UIKit 0x000000010c186586 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 35
15 UIKit 0x000000010c18ba5e -[UICollectionView _updateVisibleCellsNow:] + 4803
16 UIKit 0x000000010c191725 -[UICollectionView layoutSubviews] + 313
17 UIKit 0x000000010b90dab8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
18 QuartzCore 0x000000010d558bf8 -[CALayer layoutSublayers] + 146
19 QuartzCore 0x000000010d54c440 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
20 QuartzCore 0x000000010d54c2be _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
21 QuartzCore 0x000000010d4da318 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
22 QuartzCore 0x000000010d5073ff _ZN2CA11Transaction6commitEv + 475
23 QuartzCore 0x000000010d507d6f _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113
24 CoreFoundation 0x000000010f52c267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
25 CoreFoundation 0x000000010f52c1d7 __CFRunLoopDoObservers + 391
26 CoreFoundation 0x000000010f510f8e __CFRunLoopRun + 1198
27 CoreFoundation 0x000000010f510884 CFRunLoopRunSpecific + 420
28 GraphicsServices 0x0000000112b77a6f GSEventRunModal + 161
29 UIKit 0x000000010b848c68 UIApplicationMain + 159
30 MyApp 0x00000001092f5a7f main + 111
31 libdyld.dylib 0x00000001115b568d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I think the problem is that you are not calling the designated initializer of UIImageView, therefore its image property is not properly initialized and trying to assign to it crashes the app:
-[NSMallocBlock size]: unrecognized selector sent to instance 0x608000880aa0
The method tries to call the size method on the old image but the old image was set to some random memory address.
To fix it, initialize UIImageView properly using the designated initializer:
var coverImageView = UIImageView(image: nil)

iPhone app crash when used Facebook SDK's

Could anyone help me to analyze the below crash log
I am trying to integrate Facebook on to the app, when I click a Facebook icon on the app, a Facebook login page is displayed as a web view with in the app. but the app crashes.
Thread 5 name: Closure Thread
Thread 5 Crashed:
0 JavaScriptCore 0x2bf9afaa WTFCrash + 54
1 WebCore 0x36b218f8 WebCore::FloatingPointEnvironment::saveMainThreadEnvironment() + 28
2 WebCore 0x36767882 StartWebThread() + 458
3 libsystem_pthread.dylib 0x39416d5c __pthread_once_handler + 48
4 libsystem_platform.dylib 0x3940f864 _os_once + 40
5 libsystem_pthread.dylib 0x39414f16 pthread_once + 46
6 WebKitLegacy 0x3727b34c +[WebView(WebPrivate) enableWebThread] + 272
7 WebKitLegacy 0x3727a86a WebKitInitialize + 66
8 UIKit 0x2e349fd6 ___UIApplicationLoadWebKit_block_invoke + 150
9 libdispatch.dylib 0x392ac2cc _dispatch_client_callout + 20
10 libdispatch.dylib 0x392acf0e dispatch_once_f + 58
11 libobjc.A.dylib 0x38d424d4 _class_initialize + 532
12 libobjc.A.dylib 0x38d4805a lookUpImpOrForward + 250
13 libobjc.A.dylib 0x38d47f52 _class_lookupMethodAndLoadCache3 + 30
14 libobjc.A.dylib 0x38d4e1d6 _objc_msgSend_uncached + 22
15 MYAPP 0x000fc916 -[FBSDKWebDialogView initWithFrame:] (FBSDKWebDialogView.m:46)
16 MYAPP 0x000eb1a4 -[FBSDKWebDialog show] (FBSDKWebDialog.m:90)
17 MYAPP 0x000eafa6 +[FBSDKWebDialog showWithName:parameters:delegate:] (FBSDKWebDialog.m:52)
18 MYAPP 0x006dbe06 -[FBSDKLoginManager(WebDialog) performWebLogInWithParameters:] (FBSDKLoginManager.m:634)
19 MYAPP 0x006da52a -[FBSDKLoginManager logInWithBehavior:] (FBSDKLoginManager.m:304)
20 MYAPP 0x006da41c -[FBSDKLoginManager logInWithPermissions:handler:] (FBSDKLoginManager.m:262)
21 MYAPP 0x006d9576 -[FBSDKLoginManager logInWithReadPermissions:handler:] (FBSDKLoginManager.m:66)
22 MYAPP 0x00073c78 +[ViewController facebookLoginClicked] (ViewController.m:44)
23 MYAPP 0x000734a0 +[JSFacebookFFIAPI facebookLoginClicked:] (JSFacebookFFIAPI.m:43)
24 CoreFoundation 0x2aa94660 __invoking___ + 64
25 CoreFoundation 0x2a9bf488 -[NSInvocation invoke] + 296
26 MYAPP 0x002005c8 -[Runtime executeStaticFunction:withArguments:exception:] (Runtime.m:1906)
27 MYAPP 0x001ff11c staticDispatchFunction (Runtime.m:420)
28 MYAPP 0x005c415e long long JSC::APICallbackFunction::call<JSC::JSCallbackFunction>(JSC::ExecState*) + 422
29 MYAPP 0x00623dd4 JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*) + 396
30 MYAPP 0x00622902 llint_slow_path_call + 118
31 MYAPP 0x006285fc JSC::LLInt::CLoop::execute(JSC::ExecState*, void*, bool) + 16212
32 MYAPP 0x00624228 callToJavaScript + 140
33 MYAPP 0x005bb13e JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*, JSC::Register*) + 38
34 MYAPP 0x005b99c2 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 534
35 MYAPP 0x00591564 JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 44
36 MYAPP 0x005f23e0 JSObjectCallAsFunction + 428
37 MYAPP 0x001ffae0 -[Runtime executeJSFunction:thisObject:withArguments:] (Runtime.m:1773)
38 MYAPP 0x00207406 -[JSFunctionExecuter execute:] (JSFunctionExecuter.m:55)
39 MYAPP 0x00206f6c -[FunctionExecuter execute:] (FunctionExecuter.m:76)
40 MYAPP 0x00150df0 doExecuteClosure (ClosureExecuter.m:43)
41 MYAPP 0x001522d6 +[ClosureExecuter executeClosure:] (ClosureExecuter.m:262)
42 Foundation 0x2b7ce5ca __NSThreadPerformPerform + 382
43 CoreFoundation 0x2aa55fac __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
44 CoreFoundation 0x2aa553ba __CFRunLoopDoSources0 + 214
45 CoreFoundation 0x2aa53a20 __CFRunLoopRun + 768
46 CoreFoundation 0x2a9a01fc CFRunLoopRunSpecific + 472
47 CoreFoundation 0x2a9a000e CFRunLoopRunInMode + 102
48 Foundation 0x2b709138 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 260
49 MYAPP 0x000ff454 -[VMThread main] (VMAppDelegate.m:271)
50 Foundation 0x2b7ce3b6 __NSThread__main__ + 1114
51 libsystem_pthread.dylib 0x39415e20 _pthread_body + 136
52 libsystem_pthread.dylib 0x39415d92 _pthread_start + 114
53 libsystem_pthread.dylib 0x39413b1c thread_start + 4
Running on main thread resolved the issue

iOS Xcode App crashes after release to App Store but not when testing

I've had an app on the app store for about a month and then I recently uploaded an updated binary to the App Store, version 2.0. It uses SpriteKit and ever since that update every person who downloaded it got a crash upon startup (this was apparent in the customer reviews). So I went back through my code and realized that I forgot to change one of the code signing options to Distribution instead of developer. After archiving that new binary, 2.1, and waiting ANOTHER week to have it released again, version 2.1 crashed as well. My app has been down for 2 weeks now and I'm fed up with this. I made very minor changes including a line of code in the AppDelegate.m that allows the user to play their own music in the background:
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
return YES;
}
I am not super comfortable with Xcode and it is my first app. I get this crash report in iTunes Connect:
Incident Identifier: A0DB04E6-A62B-46AB-8896-CE77A91064EF
Hardware Model: iPhone5,3
Process: PokeJump [831]
Path: /var/mobile/Applications/BB765A31-6028-429B-9939- F69DB8B62E85/PokeJump.app/PokeJump
Identifier: PokeJump.PokeJump
Version: 2.0 (2.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-07-01 19:07:36.341 -0400
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2fe61f06 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3a5f8ce2 objc_exception_throw + 34
2 CoreFoundation 0x2fe61e48 +[NSException raise:format:] + 108
3 SpriteKit 0x325a6c12 +[SKPlaySound playSoundFileNamed:atPosition:waitForCompletion:] + 578
4 SpriteKit 0x3255f8ec +[SKAction(SKActions) playSoundFileNamed:waitForCompletion:] + 60
5 PokeJump 0x000637de 0x0005a000 + 38878
6 PokeJump 0x0006177e 0x0005a000 + 30590
7 PokeJump 0x0006e080 0x0005a000 + 82048
8 UIKit 0x32695a4e -[UIViewController loadViewIfRequired] + 514
9 UIKit 0x3269580c -[UIViewController view] + 20
10 UIKit 0x327b5292 -[UIWindow handleStatusBarChangeFromHeight:toHeight:] + 690
11 UIKit 0x3271c432 +[UIWindow _noteStatusBarHeightChanged:oldHeight:forAutolayoutRootViewsOnly:] + 234
12 UIKit 0x3281cb2c __79-[UIApplication _setStatusBarHidden:animationParameters:changeApplicationFlag:]_block_invoke + 128
13 UIKit 0x326c6a36 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 486
14 UIKit 0x327ff33a +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 66
15 UIKit 0x32741de6 -[UIApplication _setStatusBarHidden:animationParameters:changeApplicationFlag:] + 458
16 UIKit 0x3269c8fc -[UIApplication _updateCurrentStatusBarViewControllerAppearance] + 244
17 UIKit 0x32699d8e -[UIWindow _setHidden:forced:] + 230
18 UIKit 0x32703a4c -[UIWindow makeKeyAndVisible] + 56
19 UIKit 0x327006e0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1816
20 UIKit 0x326facc4 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 716
21 UIKit 0x32696c92 -[UIApplication handleEvent:withNewEvent:] + 3546
22 UIKit 0x32695df4 -[UIApplication sendEvent:] + 68
23 UIKit 0x326fa400 _UIApplicationHandleEvent + 612
24 GraphicsServices 0x34d03b50 _PurpleEventCallback + 604
25 GraphicsServices 0x34d0373a PurpleEventCallback + 30
26 CoreFoundation 0x2fe2c842 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
27 CoreFoundation 0x2fe2c7de __CFRunLoopDoSource1 + 342
28 CoreFoundation 0x2fe2afaa __CFRunLoopRun + 1402
29 CoreFoundation 0x2fd95764 CFRunLoopRunSpecific + 520
30 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
31 UIKit 0x326f9626 -[UIApplication _run] + 758
32 UIKit 0x326f488c UIApplicationMain + 1132
33 PokeJump 0x0006e73e 0x0005a000 + 83774
34 libdyld.dylib 0x3aaf6ab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3abad1f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3ac157b2 pthread_kill + 54
2 libsystem_c.dylib 0x3ab5dff4 abort + 72
3 libc++abi.dylib 0x39fac98a abort_message + 70
4 libc++abi.dylib 0x39fc56e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x3a5f8f7a _objc_terminate() + 190
6 libc++abi.dylib 0x39fc31b0 std::__terminate(void
7 libc++abi.dylib 0x39fc2d12 __cxa_rethrow + 98
8 libobjc.A.dylib 0x3a5f8e2a objc_exception_rethrow + 38
9 CoreFoundation 0x2fd957da CFRunLoopRunSpecific + 638
10 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
11 UIKit 0x326f9626 -[UIApplication _run] + 758
12 UIKit 0x326f488c UIApplicationMain + 1132
13 PokeJump 0x0006e73e 0x5a000 + 83774
14 libdyld.dylib 0x3aaf6ab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3ab9a804 kevent64 + 24
1 libdispatch.dylib 0x3aae9050 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3aae32de _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x3abadc70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3ac12c1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3ac12ad8 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3abadc70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3ac12c1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3ac12ad8 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x3ab9aa50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3ab9a848 mach_msg + 36
2 CoreFoundation 0x2fe2c624 __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2fe2ad44 __CFRunLoopRun + 788
4 CoreFoundation 0x2fd95764 CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2fd95546 CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2edfa45e GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2edee8fc CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x3ac14956 _pthread_body + 138
9 libsystem_pthread.dylib 0x3ac148c6 _pthread_start + 98
10 libsystem_pthread.dylib 0x3ac12ae4 thread_start + 4
Thread 5:
0 AudioToolbox 0x2f74f7d4 CrashIfClientProvidedBogusAudioBufferList + 124
1 AudioToolbox 0x2f75e1d6 AudioConverterFillComplexBuffer + 250
2 AudioToolbox 0x2f81decc AUInputFormatConverter2::PullAndConvertInput(AudioTimeStamp const&, unsigned long&, AudioBufferList&, AudioStreamPacketDescription*, bool&) + 96
3 AudioToolbox 0x2f81da74 AUConverterBase::RenderBus(unsigned long&, AudioTimeStamp const&, unsigned long, unsigned long) + 212
4 AudioToolbox 0x2f7518f4 AUBase::DoRenderBus(unsigned long&, AudioTimeStamp const&, unsigned long, AUOutputElement*, unsigned long, AudioBufferList&) + 144
5 AudioToolbox 0x2f751744 AUBase::DoRender(unsigned long&, AudioTimeStamp const&, unsigned long, unsigned long, AudioBufferList&) + 528
6 AudioToolbox 0x2f80d96c AURemoteIO::PerformIO(unsigned long, unsigned int, unsigned int, AudioTimeStamp const&, AudioTimeStamp const&, AudioBufferList const*, AudioBufferList*, int&) + 484
7 AudioToolbox 0x2f80e9b8 AURIOCallbackReceiver_PerformIO + 392
8 AudioToolbox 0x2f8050b2 _XPerformIO + 174
9 AudioToolbox 0x2f77264a mshMIGPerform + 122
10 AudioToolbox 0x2f7e1b28 MSHMIGDispatchMessage + 28
11 AudioToolbox 0x2f80dbe4 AURemoteIO::IOThread::Run() + 116
12 AudioToolbox 0x2f810cc4 AURemoteIO::IOThread::Entry(void*) + 4
13 AudioToolbox 0x2f74db38 CAPThread::Entry(CAPThread*) + 208
14 libsystem_pthread.dylib 0x3ac14956 _pthread_body + 138
15 libsystem_pthread.dylib 0x3ac148c6 _pthread_start + 98
16 libsystem_pthread.dylib 0x3ac12ae4 thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
I realize it says version 2.0 on this crash report but I am assuming both crashed for the same reason. I am desperate to find a fix for this and it frustrates me so much because it runs perfectly fine on all the simulators and on my iPad and iPhone when I run it when connected to my computer. Any help would mean a lot. Thanks

CCSpriteSheet random crash on draw

I am facing an issue in myApp that i am developing. I am using CCSpriteSheet for objects that move around the screen, the objects move randomly and after some time get removed from the screen. The crash usually occurs when the state is heavy when lots of objects are coming and removing, moreover it is completely random. I do not have any leaks in the code, the occurance is usually very less but increases when it first comes. Any kind of help will be appreciated.
I am using Cocos2d v 0.99.4/0.99.5rc0, Xcode SDK : 4.0/4.1
CRASH:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000004
Crashed Thread: 0
Thread 0 Crashed:
0 IMGSGX535GLDriver 0x0001f462 glrRenderVertexArray + 406
1 GLEngine 0x0002c138 gleExecuteVertexArrayRange + 100
2 GLEngine 0x0002db0a glDrawElements_ACC_Exec + 270
3 OpenGLES 0x00003334 glDrawElements + 32
4 myApp 0x000cfca6 -[CCTextureAtlas drawNumberOfQuads:] (CCTextureAtlas.m:306)
5 myApp 0x000cf560 -[CCTextureAtlas drawQuads] (CCTextureAtlas.m:277)
6 myApp 0x000cdb42 -[CCSpriteSheet draw] (CCSpriteSheet.m:291)
7 myApp 0x000cd9ee -[CCSpriteSheet visit] (CCSpriteSheet.m:147)
8 myApp 0x000b97c2 -[CCNode visit] (CCNode.m:486)
9 myApp 0x00062e3c -[myAppGameLayer visit] (myAppGameLayer.m:38)
10 myApp 0x000b97c2 -[CCNode visit] (CCNode.m:486)
11 myApp 0x000a7c96 -[CCDirector drawScene] (CCDirector.m:253)
12 myApp 0x000a673e -[CCDisplayLinkDirector preMainLoop:] (CCDirector.m:1212)
13 QuartzCore 0x000926fc CA::Display::DisplayLink::dispatch(unsigned long long, unsigned long long) + 144
14 QuartzCore 0x00092820 CA::Display::IOMFBDisplayLink::callback(__IOMobileFramebuffer*, unsigned long long, unsigned long long, unsigned long long, void*) + 44
15 IOMobileFramebuffer 0x00001bf4 IOMobileFramebufferVsyncNotifyFunc + 68
16 ??? 0x35079040 0 + 889688128
17 CoreFoundation 0x0003d30c __CFMachPortPerform + 204
18 CoreFoundation 0x00034cdc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
19 CoreFoundation 0x00034ca0 __CFRunLoopDoSource1 + 160
20 CoreFoundation 0x00027566 __CFRunLoopRun + 514
21 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
22 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
23 GraphicsServices 0x000045ec GSEventRunModal + 108
24 GraphicsServices 0x00004698 GSEventRun + 56
25 UIKit 0x0000411c -[UIApplication _run] + 396
26 UIKit 0x00002128 UIApplicationMain + 664
27 myApp 0x00002904 main (main.m:13)
28 myApp 0x000028a8 start + 44
It would appear that you are referencing an object that has been released.