nxtbgthng / OAuth2Client

Client library for OAuth2 (currently built against draft 10 of the OAuth2 spec)
855 stars 217 forks source link

Crash in NXOAuth2AccountStore #218

Open jakecastrodnt opened 7 years ago

jakecastrodnt commented 7 years ago

This stack trace may or may not be too helpful, but I'm getting a crash in NXOAuth2AccountStore, and I'm not sure if there is anything else I can do. Here is the stack trace:

CoreFoundation exceptionPreprocess + 124 2 libobjc.A.dylib objc_exception_throw + 52 3 CoreFoundation -[NSDictionaryM removeObjectForKey:] + 688 4 MyApp -[NXOAuth2AccountStore oauthClient:didFailToGetAccessTokenWithError:] (NXOAuth2AccountStore.m:530) 5 MyApp -[NXOAuth2Client oauthConnection:didFailWithError:] (NXOAuth2Client.m:567) 6 MyApp -[NXOAuth2Connection connection:didFailWithError:] (NXOAuth2Connection.m:499) 7 CFNetwork 65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 76 8 CFNetwork -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 196 9 CFNetwork -[NSURLConnectionInternal _withConnectionAndDelegate:] + 52 10 CFNetwork _NSURLConnectionDidFail(_CFURLConnection, __CFError, void const*) + 72 11 CFNetwork _ZN27URLConnectionClient_Classic17_delegate_didFailEP9CFErrorU13block_pointerFvvE_blockinvoke + 108 12 CFNetwork ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 104 13 libdispatch.dylib _dispatch_client_callout + 12 14 libdispatch.dylib _dispatch_block_invoke_direct + 372 15 CFNetwork RunloopBlockContext::_invoke_block(void const, void) + 32 16 CoreFoundation CFArrayApplyFunction + 64 17 CFNetwork RunloopBlockContext::perform() + 132 18 CFNetwork MultiplexerSource::perform() + 308 19 CFNetwork MultiplexerSource::_perform(void*) + 60 20 CoreFoundation CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 20 21 CoreFoundation CFRunLoopDoSources0 + 520 22 CoreFoundation CFRunLoopRun + 800 23 CoreFoundation CFRunLoopRunSpecific + 440 24 GraphicsServices GSEventRunModal + 176 25 UIKit -[UIApplication _run] + 680 26 UIKit UIApplicationMain + 204 27 MyApp main (main.m:14) 28 libdyld.dylib start + 0

ElKnarzo commented 6 years ago

Is there a solution to this crash now? Because this problem occurs with me and have no idea how to solve it.

rnagabandi123 commented 5 years ago

Hello,

I am also getting crash in NXOAuth2AccountStore class -> didFailToGetAccessTokenWithError method. Is there any solution found to solve this.