telenordigital / connect-ios-sdk

Docs 📒👉
https://telenordigital.github.io/id-docs.telenordigital.com/integrate-ios-sdk.html
Apache License 2.0
9 stars 8 forks source link

iOS: Fatal Exception: NSInvalidArgumentException #51

Closed nabeeljaved closed 6 years ago

nabeeljaved commented 6 years ago

On Application we are facing Fatal Exception NSInvalidArgumentException. Following is the crashlytics log entry.

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x18127ad8c __exceptionPreprocess
1  libobjc.A.dylib                0x1804345ec objc_exception_throw
2  CoreFoundation                 0x18127ac6c -[NSException initWithCoder:]
3  Foundation                     0x181bb40a0 +[NSString stringWithUTF8String:]
4  TDConnectIosSdk                0x104df9538 +[ForcedHEManager openUrlThroughCellular:] (ForcedHEManager.m:167)
5  TDConnectIosSdk                0x104e05360 ForcedHEURLProtocol.startLoading() -> () (ForcedHEURLProtocol.swift:13)
6  TDConnectIosSdk                0x104e061a0 @objc ForcedHEURLProtocol.startLoading() -> ()
7  CFNetwork                      0x18180e5a0 invocation function for block in CFURLProtocol_NS::_protocolInterface_startLoad(_CFCachedURLResponse const*)
8  libdispatch.dylib              0x180b6ca60 _dispatch_client_callout
9  libdispatch.dylib              0x180ba8b2c _dispatch_block_invoke_direct$VARIANT$armv81
10 CFNetwork                      0x181a4fe40 RunloopBlockContext::_invoke_block(void const*, void*)
11 CoreFoundation                 0x181140680 CFArrayApplyFunction
12 CFNetwork                      0x181a4fd00 RunloopBlockContext::perform()
13 CFNetwork                      0x181a50ec4 MultiplexerSource::perform()
14 CFNetwork                      0x181a50c24 MultiplexerSource::_perform(void*)
15 CoreFoundation                 0x181223404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
16 CoreFoundation                 0x181222c2c __CFRunLoopDoSources0
17 CoreFoundation                 0x18122079c __CFRunLoopRun
18 CoreFoundation                 0x181140da8 CFRunLoopRunSpecific
19 CFNetwork                      0x181a4e6e0 -[__CoreSchedulingSetRunnable runForever]
20 Foundation                     0x181cc5efc __NSThread__start__
21 libsystem_pthread.dylib        0x180ea1220 _pthread_body
22 libsystem_pthread.dylib        0x180ea1110 _pthread_body
23 libsystem_pthread.dylib        0x180e9fb10 thread_start
Crashed: com.apple.CFNetwork.CustomProtocols
0  my telenor                     0x1045f4d70 CLSProcessRecordAllThreads (CLSProcess.c:376)
1  my telenor                     0x1045f4d70 CLSProcessRecordAllThreads (CLSProcess.c:376)
2  my telenor                     0x1045f51e4 CLSProcessRecordAllThreads (CLSProcess.c:407)
3  my telenor                     0x1045e4824 CLSHandler (CLSHandler.m:26)
4  my telenor                     0x1045f32dc __CLSExceptionRecord_block_invoke (CLSException.mm:199)
5  libdispatch.dylib              0x180b6ca60 _dispatch_client_callout + 16
6  libdispatch.dylib              0x180ba9ed4 _dispatch_queue_barrier_sync_invoke_and_complete + 56
7  my telenor                     0x1045f2d58 CLSExceptionRecord (CLSException.mm:206)
8  my telenor                     0x1045f2b88 CLSExceptionRecordNSException (CLSException.mm:102)
9  my telenor                     0x1045f2788 CLSTerminateHandler() (CLSException.mm:259)
10 libc++abi.dylib                0x18042537c std::__terminate(void (*)()) + 16
11 libc++abi.dylib                0x180425400 std::terminate() + 84
12 libobjc.A.dylib                0x180434830 _destroyAltHandlerList + 10
13 libdispatch.dylib              0x180b6ca74 _dispatch_client_callout + 36
14 libdispatch.dylib              0x180ba8b2c _dispatch_block_invoke_direct$VARIANT$armv81 + 216
15 CFNetwork                      0x181a4fe40 RunloopBlockContext::_invoke_block(void const*, void*) + 36
16 CoreFoundation                 0x181140680 CFArrayApplyFunction + 80
17 CFNetwork                      0x181a4fd00 RunloopBlockContext::perform() + 128
18 CFNetwork                      0x181a50ec4 MultiplexerSource::perform() + 312
19 CFNetwork                      0x181a50c24 MultiplexerSource::_perform(void*) + 60
20 CoreFoundation                 0x181223404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
21 CoreFoundation                 0x181222c2c __CFRunLoopDoSources0 + 276
22 CoreFoundation                 0x18122079c __CFRunLoopRun + 1204
23 CoreFoundation                 0x181140da8 CFRunLoopRunSpecific + 552
24 CFNetwork                      0x181a4e6e0 -[__CoreSchedulingSetRunnable runForever] + 220
25 Foundation                     0x181cc5efc __NSThread__start__ + 1040
26 libsystem_pthread.dylib        0x180ea1220 _pthread_body + 272
27 libsystem_pthread.dylib        0x180ea1110 _pthread_body + 290
28 libsystem_pthread.dylib        0x180e9fb10 thread_start + 4

This issue is causing issue in login.

jorunfa commented 6 years ago

I haven't seen this issue before, so if you have some other information available (e.g. from Crashlytics) that would be really helpful:

  1. How many (percentage) of users are being affected?
  2. Do you have any information about which iOS version, an/or which device models (e.g. 6s, 7, X) are being affected/are crashing?
  3. Or other means/steps for recreating the issue?
  4. Which version of the iOS SDK are you using in the app?
nabeeljaved commented 6 years ago

@jorunfa

  1. How many (percentage) of users are being affected? we have received 300+ complaints of login today
  2. Do you have any information about which iOS version, an/or which device models (e.g. 6s, 7, X) are being affected/are crashing? iOS version 11
  3. Or other means/steps for recreating the issue? Our current use case is LOA 1. I am collecting more information on this from vendor
  4. Which version of the iOS SDK are you using in the app? iOS SDK 1.4.4

We are testing latest release 1.4.6

jorunfa commented 6 years ago

If I remember correctly 1.4.4 crashes on iPads and other older 32 bit devices, see #48. This should be resolved by updating to 1.4.5 or 1.4.6. https://github.com/telenordigital/connect-ios-sdk/releases

nabeeljaved commented 6 years ago

@jorunfa We have created new builds with latest SDKs. I will update after testing

jorunfa commented 6 years ago

Did it work? I'll reopen this issue if it didn't.