Closed sgowda97 closed 1 year ago
Hi @sgowda97
From the stack you provided, I couldn't find the exact reason that caused the crash in thread 1. Is this reproducible in the debugging environment and did you see the system message when it crashed?
Hi @bobiechen-twilio,
The logs I have provided earlier are from bt all
. The package is being used with Flutter via Method/Event channels. The code used here is from Twilio's iOS Quickstart with minimal modifications, such as variable names, etc. The message it produces in Xcode window before crashing is,
2022-05-26 14:39:11.551817+0530 Runner[76765:79905938] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[6]'
*** First throw call stack:
(
0 CoreFoundation 0x000000011102a604 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x000000010c6c4a45 objc_exception_throw + 48
2 CoreFoundation 0x00000001110abc63 _CFThrowFormattedException + 200
3 CoreFoundation 0x00000001110b615d -[__NSPlaceholderDictionary initWithCapacity:].cold.1 + 0
4 CoreFoundation 0x0000000111098930 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 251
5 CoreFoundation 0x0000000111029258 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6 TwilioVoice 0x00000001104375b0 +[TVOEndpointAnalyticsUtilities getPlatformMetadata] + 787
7 TwilioVoice 0x000000011045125f +[TVOEndpointAnalyticsEvent eventWithName:group:level:payload:] + 445
8 TwilioVoice 0x0000000110440331 -[TVOEventReceiver publishConnectionEvent:error:level:] + 873
9 TwilioVoice 0x00000001104436f0 _ZN6twilio5voice20EventObserverAdapter7onEventENSt3__13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS2_4pairIS9_NS0_8DataTypeEEENS2_4lessIS9_EENS7_INSA_IKS9_SC_EEEEEE + 1342
10 TwilioVoice 0x0000000110881ecf _ZNSt3__110__function6__funcIZN6twilio5voice8CallImpl9postEventERNS_3mapINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESB_NS_4lessISB_EENS9_INS_4pairIKSB_SB_EEEEEERSF_E4$_46NS9_ISL_EEFvvEEclEv + 223
11 libdispatch.dylib 0x000000010ebbb816 _dispatch_call_block_and_release + 12
12 libdispatch.dylib 0x000000010ebbca5b _dispatch_client_callout + 8
13 libdispatch.dylib 0x000000010ebcb325 _dispatch_main_queue_drain + 1169
14 libdispatch.dylib 0x000000010ebcae86 _dispatch_main_queue_callback_4CF + 31
15 CoreFoundation 0x0000000110f96ed5 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
16 CoreFoundation 0x0000000110f916ca __CFRunLoopRun + 2761
17 CoreFoundation 0x0000000110f90704 CFRunLoopRunSpecific + 562
18 GraphicsServices 0x0000000117c00c8e GSEventRunModal + 139
19 UIKitCore 0x000000012ecde65a -[UIApplication _run] + 928
20 UIKitCore 0x000000012ece32b5 UIApplicationMain + 101
21 Runner 0x0000000100baeeef main + 63
22 dyld 0x00000001094c2f21 start_sim + 10
23 ??? 0x0000000200da24fe 0x0 + 8604230910
24 ??? 0x0000000200d9d000 0x0 + 8604209152
)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/shreyas/Library/Developer/Xcode/DerivedData/Runner-bzjfnhtfsoqhougtlptllqfctomv/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/shreyas/Library/Developer/Xcode/DerivedData/Runner-bzjfnhtfsoqhougtlptllqfctomv/Build/Products/Debug-iphonesimulator
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[6]'
terminating with uncaught exception of type NSException
CoreSimulator 802.6.1 - Device: iPhone 13 Pro Max (E6FB63DE-70AE-4D25-9635-4CFC2B2E4C15) - Runtime: iOS 15.5 (19F70) - DeviceType: iPhone 13 Pro Max```
Description
App is crashing as soon as I place an audio call.
Steps to Reproduce
Code
Expected Behavior
Outgoing call should happen without crashing.
Actual Behavior
Crashes after a few seconds of calling Voice.connect(), the TwiML end-point is not being called either.
Reproduces How Often
Always
Logs
Versions
All relevant version information for the issue.
Voice iOS SDK
6.3.0
Xcode
13.4
iOS Version
15.5
iOS Device
iPhone 13 Pro Max (Simulator), iPhone SE 2 (Physical device).