iPhone app crash when used Facebook SDK's - facebook

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

Related

Swift 5 very random and hardly identifiable crashes

My crash log from firebase unfortunately doesnt really help me finding a solution to my issue.
Crashed: com.apple.main-thread
0 MyApp 0x94d30 PostsAPI.loadNewestPosts(ordering:start:limit:onSuccess:) + 4306505008 (<compiler-generated>:4306505008)
1 MyApp 0x5f8ec OverviewVC.loadNewestPosts(more:) + 4306286828 (<compiler-generated>:4306286828)
2 MyApp 0x6393c partial apply for closure #2 in closure #1 in OverviewVC.loadNewestPosts(more:) + 4306303292 (<compiler-generated>:4306303292)
3 MyApp 0x74a94 thunk for #escaping #callee_guaranteed () -> () + 4306373268 (<compiler-generated>:4306373268)
4 libdispatch.dylib 0x3a30 _dispatch_client_callout + 20
5 libdispatch.dylib 0x6eec _dispatch_continuation_pop + 500
6 libdispatch.dylib 0x1a13c _dispatch_source_invoke + 1596
7 libdispatch.dylib 0x11e9c _dispatch_main_queue_drain + 756
8 libdispatch.dylib 0x11b98 _dispatch_main_queue_callback_4CF + 44
9 CoreFoundation 0x51800 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
10 CoreFoundation 0xb704 __CFRunLoopRun + 2532
11 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
12 GraphicsServices 0x1374 GSEventRunModal + 164
13 UIKitCore 0x514b58 -[UIApplication _run] + 1100
14 UIKitCore 0x296090 UIApplicationMain + 364
15 MyApp 0x9a28 main + 20 (AppDelegate.swift:20)
16 ??? 0x102a59da4 (Fehlt)
As my code obviously doesn't have so many lines as the compiler tells me where it crashes. Any help is greatly appreciated as I cannot provoke this crash and it only happens randomly on some devices...

GULUserDefaults crash Swift Xcode (maybe firebase)

I am facing this error really randomly and rarely but still want to fix it. I don't know how to reproduce it as its not happening on my device but on other users devices.
The crash log does not really help me, at least I cannot figure out where the is issue is coming from and how to solve it.
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000000000001c
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x19fa3513c object_isClass + 16
1 Foundation 0x18c807978 KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED + 48
2 Foundation 0x18c807774 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] + 288
3 Foundation 0x18c7413f8 -[NSObject(NSKeyValueObservingPrivate) _notifyObserversOfChangeFromValuesForKeys:toValuesForKeys:] + 836
4 CoreFoundation 0x18b3cc60c -[CFPrefsSource forEachObserver:] + 336
5 CoreFoundation 0x18b3cde3c -[CFPrefsSource _notifyObserversOfChangeFromValuesForKeys:toValuesForKeys:] + 112
6 CoreFoundation 0x18b541b68 ___CFPrefsDeliverPendingKVONotificationsGuts_block_invoke + 428
7 CoreFoundation 0x18b4253f0 __CFDictionaryApplyFunction_block_invoke + 28
8 CoreFoundation 0x18b50bd94 CFBasicHashApply + 144
9 CoreFoundation 0x18b4253ac CFDictionaryApplyFunction + 240
10 CoreFoundation 0x18b53d748 _CFPrefsDeliverPendingKVONotificationsGuts + 300
11 CoreFoundation 0x18b53bf44 -[_CFXPreferences _deliverPendingKVONotifications] + 96
12 CoreFoundation 0x18b4ff194 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 432
13 CoreFoundation 0x18b4fe720 normalizeQuintuplet + 356
14 CoreFoundation 0x18b4fefbc -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 152
15 CoreFoundation 0x18b3c1580 -[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:] + 128
16 CoreFoundation 0x18b53fdd8 _CFPreferencesSetAppValueWithContainerAndConfiguration + 136
17 GoogleUtilities 0x1012a7acc -[GULUserDefaults setObject:forKey:] + 109 (GULUserDefaults.m:109)
18 FirebaseMessaging 0x1011a86b0 -[FIRMessagingPubSub archivePendingTopicsList:] + 238 (FIRMessagingPubSub.m:238)
19 FirebaseMessaging 0x1011a67d4 -[FIRMessagingPendingTopicsList addOperationForTopic:withAction:completion:] + 164 (FIRMessagingPendingTopicsList.m:164)
20 FirebaseMessaging 0x1011a8304 -[FIRMessagingPubSub subscribeToTopic:handler:] + 184 (FIRMessagingPubSub.m:184)
21 FirebaseMessaging 0x1011a16a8 __44-[FIRMessaging subscribeToTopic:completion:]_block_invoke + 674 (FIRMessaging.m:674)
22 FirebaseInstanceID 0x101166674 __39-[FIRInstanceID instanceIDWithHandler:]_block_invoke + 220 (FIRInstanceID.m:220)
23 FirebaseInstanceID 0x101167ee8 __34-[FIRInstanceID getIDWithHandler:]_block_invoke + 454 (FIRInstanceID.m:454)
24 FirebaseInstallations 0x1011378a8 __49-[FIRInstallations installationIDWithCompletion:]_block_invoke + 210 (FIRInstallations.m:210)
25 FBLPromises 0x100deda48 __56-[FBLPromise chainOnQueue:chainedFulfill:chainedReject:]_block_invoke.48 + 273 (FBLPromise.m:273)
26 libdispatch.dylib 0x18b0d324c _dispatch_call_block_and_release + 32
27 libdispatch.dylib 0x18b0d4db0 _dispatch_client_callout + 20
28 libdispatch.dylib 0x18b0e2800 _dispatch_main_queue_callback_4CF + 920
29 CoreFoundation 0x18b45c11c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
30 CoreFoundation 0x18b456120 __CFRunLoopRun + 2508
31 CoreFoundation 0x18b45521c CFRunLoopRunSpecific + 600
32 GraphicsServices 0x1a24d4784 GSEventRunModal + 164
33 UIKitCore 0x18de8e200 -[UIApplication _run] + 1072
34 UIKitCore 0x18de93a74 UIApplicationMain + 168
35 MyApp 0x100424788 main + 20 (HashtagTableViewCell.swift:20)
36 libdyld.dylib 0x18b1156c0 start + 4
It looks like its coming from firebase but ultimately it crashes on the user defaults.
Any idea or hint how to solve this is greatly appreciated.
GULUserDefaults.m line 109
this is the headline of the crash in my firebase Crashlytics

Invalid address

My app is crashing a lot lately and it's throwing this as an error:
NSOperationQueue 0x2806fd260 (QOS: UNSPECIFIED) EXC_BAD_ACCESS
KERN_INVALID_ADDRESS 0x0000000000000000.
I can't find the call that causes this problem. Can someone help me solve this problem please?
This is the crash stacktrace:
0 AlamofireNetworkLogger 0x10203c7b4 (Missing)
1 AlamofireNetworkLogger 0x10203d910 (Missing)
2 CoreFoundation 0x1829715bc __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
3 CoreFoundation 0x182971588 ___CFXRegistrationPost_block_invoke + 64
4 CoreFoundation 0x182970a7c _CFXRegistrationPost + 392
5 CoreFoundation 0x182970728 ___CFXNotificationPost_block_invoke + 96
6 CoreFoundation 0x1828ea524 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1496
7 CoreFoundation 0x1829701d8 _CFXNotificationPost + 696
8 Foundation 0x183358814 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
9 Alamofire 0x101fd7a84 closure #1 in SessionDelegate.urlSession(_:task:didCompleteWithError:) (SessionDelegate.swift:451)
10 Alamofire 0x101fd7460 SessionDelegate.urlSession(_:task:didCompleteWithError:) (SessionDelegate.swift:495)
11 Alamofire 0x101fd83c0 #objc SessionDelegate.urlSession(_:task:didCompleteWithError:) (<compiler-generated>)
12 myApp 0x10157e9d4 __InstrumentURLSessionTaskDidCompleteWithError_block_invoke + 4311443924
13 CFNetwork 0x183183420 __51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke.182 + 252
14 Foundation 0x183464f68 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
15 Foundation 0x183371420 -[NSBlockOperation main] + 72
16 Foundation 0x183370908 -[__NSOperationInternal _start:] + 740
17 Foundation 0x183466cec __NSOQSchedule_f + 272
18 libdispatch.dylib 0x182440a38 _dispatch_call_block_and_release + 24
19 libdispatch.dylib 0x1824417d4 _dispatch_client_callout + 16
20 libdispatch.dylib 0x1823e6018 _dispatch_continuation_pop$VARIANT$mp + 412
21 libdispatch.dylib 0x1823e56dc _dispatch_async_redirect_invoke + 600
22 libdispatch.dylib 0x1823f202c _dispatch_root_queue_drain + 372
23 libdispatch.dylib 0x1823f28d0 _dispatch_worker_thread2 + 128
24 libsystem_pthread.dylib 0x1826211b4 _pthread_wqthread + 464
25 libsystem_pthread.dylib 0x182623cd4 start_wqthread + 4

xamarin iphone app crashes on end user's devices

I completed the development of application and pushed to appstore. I don't know the solution and even don't know why app crashes on end user's devices.
I am able to get the crash logs and here is the logs. Please help me to resolve this unknown crash.
Hardware Model: iPhone9,4
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
OS Version: iPhone OS 10.3.2 (14F89)
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000183ea1014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000183f6b264 pthread_kill + 112 (pthread.c:1366)
2 libsystem_c.dylib 0x0000000183e159c4 abort + 140 (abort.c:91)
3 Mono 0x00000001058702cc mono_handle_native_sigsegv + 588
4 libsystem_platform.dylib 0x0000000183f6531c _sigtramp + 52 (sigtramp.c:115)
5 libsystem_pthread.dylib 0x0000000183f6b264 pthread_kill + 112 (pthread.c:1366)
6 libsystem_c.dylib 0x0000000183e159c4 abort + 140 (abort.c:91)
7 MyApp 0x000000010018dd0c print_all_exceptions(MonoObject*) (runtime.m:997)
8 Mono 0x0000000105870a14 mono_invoke_unhandled_exception_hook + 100
9 Mono 0x000000010586fca8 mono_handle_exception_internal + 3860
10 Mono 0x000000010586ed88 mono_handle_exception + 40
11 Mono 0x0000000105866424 handle_signal_exception + 64
12 MyApp 0x000000010023cb04 MyApp_MyApp_iOS_UpdatePostCommentsViewController__ViewDidLoadm__1_object_System_EventArgs + 276
13 MyApp 0x0000000100cd1bc8 Xamarin_iOS_UIKit_UIControlEventProxy_Activated (UIControl.cs:37)
14 MyApp 0x0000000100fe5c54 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
15 Mono 0x000000010587e654 mono_jit_runtime_invoke + 1772
16 Mono 0x00000001058eecf0 do_runtime_invoke + 112
17 Mono 0x00000001058eec4c mono_runtime_invoke + 208
18 MyApp 0x0000000101904980 native_to_managed_trampoline_9(objc_object*, objc_selector*, _MonoMethod**, char const*, char const*) (registrar.m:385)
19 MyApp 0x0000000101905a50 -[UIKit_UIControlEventProxy BridgeSelector] (registrar.m:10469)
20 UIKit 0x000000018b00d010 -[UIApplication sendAction:to:from:forEvent:] + 96 (UIApplication.m:4580)
21 UIKit 0x000000018b00cf90 -[UIControl sendAction:to:forEvent:] + 80 (UIControl.m:609)
22 UIKit 0x000000018aff7504 -[UIControl _sendActionsForEvents:withEvent:] + 440 (UIControl.m:694)
23 UIKit 0x000000018b00c874 -[UIControl touchesEnded:withEvent:] + 576 (UIControl.m:446)
24 UIKit 0x000000018b00c390 -[UIWindow _sendTouchesForEvent:] + 2480 (UIWindow.m:2122)
25 UIKit 0x000000018b007728 -[UIWindow sendEvent:] + 3192 (UIWindow.m:2292)
26 UIKit 0x000000018afd833c -[UIApplication sendEvent:] + 340 (UIApplication.m:10778)
27 UIKit 0x000000018b7d2014 __dispatchPreprocessedEventFromEventQueue + 2400 (UIEventDispatcher.m:1448)
28 UIKit 0x000000018b7cc770 __handleEventQueue + 4268 (UIEventDispatcher.m:1671)
29 CoreFoundation 0x0000000184e5542c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1943)
30 CoreFoundation 0x0000000184e54d9c __CFRunLoopDoSources0 + 540 (CFRunLoop.c:1989)
31 CoreFoundation 0x0000000184e529a8 __CFRunLoopRun + 744 (CFRunLoop.c:2821)
32 CoreFoundation 0x0000000184d82da4 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
33 GraphicsServices 0x00000001867ec074 GSEventRunModal + 100 (GSEvent.c:2245)
34 UIKit 0x000000018b03d058 UIApplicationMain + 208 (UIApplication.m:4089)
35 MyApp 0x0000000100d74914 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr (/<unknown>:1)
36 MyApp 0x0000000100ccf6c8 Xamarin_iOS_UIKit_UIApplication_Main_string___string_string (UIApplication.cs:63)
37 MyApp 0x000000010035c9a8 MyApp_MyApp_iOS_Application_Main_string__ + 196
38 MyApp 0x0000000100fe5c54 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
39 Mono 0x000000010587e654 mono_jit_runtime_invoke + 1772
40 Mono 0x00000001058eecf0 do_runtime_invoke + 112
41 Mono 0x00000001058f12d4 mono_runtime_exec_main + 832
42 Mono 0x00000001058f0ef0 mono_runtime_run_main + 764
43 Mono 0x0000000105862c48 mono_jit_exec + 236
44 MyApp 0x000000010019a6cc xamarin_main (monotouch-main.m:487)
45 MyApp 0x000000010199c3d0 main (main.arm64.m:115)
46 libdyld.dylib 0x0000000183d9159c start + 4
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x0000000183ea0e1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000183f68814 _pthread_cond_wait + 640 (pthread_cond.c:536)
2 Mono 0x000000010594d854 thread_func + 356
3 libsystem_pthread.dylib 0x0000000183f6968c _pthread_body + 240 (pthread.c:697)
4 libsystem_pthread.dylib 0x0000000183f6959c _pthread_start + 284 (pthread.c:744)
5 libsystem_pthread.dylib 0x0000000183f66cb4 thread_start + 4
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x0000000183e83260 semaphore_wait_trap + 8
1 Mono 0x00000001058b179c finalizer_thread + 200
2 Mono 0x0000000105921974 start_wrapper + 512
3 Mono 0x000000010595a28c inner_start_thread + 360
4 libsystem_pthread.dylib 0x0000000183f6968c _pthread_body + 240 (pthread.c:697)
5 libsystem_pthread.dylib 0x0000000183f6959c _pthread_start + 284 (pthread.c:744)
6 libsystem_pthread.dylib 0x0000000183f66cb4 thread_start + 4
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x0000000183e83224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000183e8309c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x0000000184e54e90 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x0000000184e52ae4 __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x0000000184d82da4 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 Foundation 0x000000018589cd74 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
6 Foundation 0x00000001858bdb44 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 (NSRunLoop.m:411)
7 UIKit 0x000000018b9c76a8 -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:313)
8 Foundation 0x000000018599a2d8 __NSThread__start__ + 996 (NSThread.m:1163)
9 libsystem_pthread.dylib 0x0000000183f6968c _pthread_body + 240 (pthread.c:697)
10 libsystem_pthread.dylib 0x0000000183f6959c _pthread_start + 284 (pthread.c:744)
11 libsystem_pthread.dylib 0x0000000183f66cb4 thread_start + 4
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x0000000183ea0e1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000183f68814 _pthread_cond_wait + 640 (pthread_cond.c:536)
2 Mono 0x00000001058260d0 mono_os_cond_timedwait + 168
3 Mono 0x0000000105825dc8 _wapi_handle_timedwait_signal_handle + 452
4 Mono 0x000000010596c55c wapi_WaitForSingleObjectEx + 632
5 Mono 0x000000010591d078 mono_wait_uninterrupted + 148
6 Mono 0x000000010591d308 ves_icall_System_Threading_WaitHandle_WaitOne_internal + 108
7 MyApp 0x0000000100f7af28 wrapper_managed_to_native_System_Threading_WaitHandle_WaitOne_internal_intptr_int + 104
8 MyApp 0x0000000100e8392c mscorlib_System_Threading_WaitHandle_WaitOneNative_System_Runtime_InteropServices_SafeHandle_uint_bool_bool (WaitHandle.cs:102)
9 MyApp 0x0000000100e837e0 mscorlib_System_Threading_WaitHandle_InternalWaitOne_System_Runtime_InteropServices_SafeHandle_long_bool_bool (waithandle.cs:257)
10 MyApp 0x0000000100e83714 mscorlib_System_Threading_WaitHandle_WaitOne_int_bool (waithandle.cs:239)
11 MyApp 0x0000000100e83790 mscorlib_System_Threading_WaitHandle_WaitOne_int (waithandle.cs:1)
12 MyApp 0x0000000100ec414c mscorlib_System_Threading_Timer_Scheduler_SchedulerThread (Timer.cs:395)
13 MyApp 0x0000000100e8194c mscorlib_System_Threading_ThreadHelper_ThreadStart_Context_object (thread.cs:72)
14 MyApp 0x0000000100e80558 mscorlib_System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool (executioncontext.cs:957)
15 MyApp 0x0000000100e802fc mscorlib_System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object (executioncontext.cs:893)
16 MyApp 0x0000000100e81a5c mscorlib_System_Threading_ThreadHelper_ThreadStart (thread.cs:109)
17 MyApp 0x0000000100fe5c54 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
18 Mono 0x000000010587e654 mono_jit_runtime_invoke + 1772
19 Mono 0x00000001058eecf0 do_runtime_invoke + 112
20 Mono 0x00000001059219f0 start_wrapper + 636
21 Mono 0x000000010595a28c inner_start_thread + 360
22 libsystem_pthread.dylib 0x0000000183f6968c _pthread_body + 240 (pthread.c:697)
23 libsystem_pthread.dylib 0x0000000183f6959c _pthread_start + 284 (pthread.c:744)
24 libsystem_pthread.dylib 0x0000000183f66cb4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x0000000183ea0e1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000183f68814 _pthread_cond_wait + 640 (pthread_cond.c:536)
2 libc++.1.dylib 0x0000000183891ac8 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 56 (condition_variable.cpp:44)
3 JavaScriptCore 0x0000000189735f94 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 112 (condition_variable:202)
4 JavaScriptCore 0x0000000189735f08 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 168 (condition_variable:211)
5 JavaScriptCore 0x0000000189735de8 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadEntryPoint(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*) + 36 (AsyncTask.h:110)
6 JavaScriptCore 0x0000000189736098 void* std::__1::__thread_proxy<std::__1::tuple<void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 92 (__functional_base:416)
7 libsystem_pthread.dylib 0x0000000183f6968c _pthread_body + 240 (pthread.c:697)
8 libsystem_pthread.dylib 0x0000000183f6959c _pthread_start + 284 (pthread.c:744)
9 libsystem_pthread.dylib 0x0000000183f66cb4 thread_start + 4
Thread 9 name:
Thread 9:
0 libsystem_kernel.dylib 0x0000000183e83224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000183e8309c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x0000000184e54e90 __CFRunLoopServiceMachPort + 192 (CFRunLoop.c:2527)
3 CoreFoundation 0x0000000184e52ae4 __CFRunLoopRun + 1060 (CFRunLoop.c:2870)
4 CoreFoundation 0x0000000184d82da4 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
5 WebCore 0x0000000189a54608 RunWebThread(void*) + 456 (WebCoreThread.mm:694)
6 libsystem_pthread.dylib 0x0000000183f6968c _pthread_body + 240 (pthread.c:697)
7 libsystem_pthread.dylib 0x0000000183f6959c _pthread_start + 284 (pthread.c:744)
8 libsystem_pthread.dylib 0x0000000183f66cb4 thread_start + 4
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x000000000000001b
x4: 0x000000000000001b x5: 0x000000016fd7e450 x6: 0x0000000000000031 x7: 0xffffffffffffffec
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000003dd5 x11: 0x00000001ad78dc43
x12: 0x00000001ad78dc43 x13: 0x0000000000000018 x14: 0x0000000000000001 x15: 0x0000000000000881
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001ab008b40 x21: 0x0000000105979cec x22: 0x0000000105979db3 x23: 0xbcbc681ea5d30086
x24: 0x000000016fd7e888 x25: 0x0000000105979d66 x26: 0x0000000123408f60 x27: 0x0000000105ea6d98
x28: 0x0000000105c01dc0 fp: 0x000000016fd7e820 lr: 0x0000000183f6b264
sp: 0x000000016fd7e800 pc: 0x0000000183ea1014 cpsr: 0x00000000
Binary Images:
0x10007c000 - 0x101a2ffff MyApp arm64 <2e4e02b1232a35f3a699732f3690815a> /var/containers/Bundle/Application/05168991-54CE-41A2-833F-14F645E2B8AD/MyApp.app/MyApp
0x105790000 - 0x1057c3fff dyld arm64 <a3339f99c2ea39d8beb70b8ff2e84061> /usr/lib/dyld
0x105818000 - 0x1059f3fff Mono arm64 <4d8383ffb7633ede9023910f4e550a9b> /var/containers/Bundle/Application/05168991-54CE-41A2-833F-14F645E2B8AD/MyApp.app/Frameworks/Mono.framework/Mono
0x183888000 - 0x183889fff libSystem.B.dylib arm64
EOF

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.