twilio / voice-quickstart-ios

Twilio Voice Quickstart for iOS with Swift
MIT License
183 stars 97 forks source link

TwilioVoice SDK Crash: void absl::internal_any_invocable::LocalInvoker #552

Closed davidweissler closed 2 months ago

davidweissler commented 11 months ago

Before filing an issue please check that the issue is not already addressed by the following:

Please ensure that you are not sharing any Personally Identifiable Information(PII) or sensitive account information (API keys, credentials, etc.) when reporting an issue.

Description

Twilio SDK crash while calls are in progress

Steps to Reproduce

Cannot consistently reproduce

Code

Expected Behavior

Actual Behavior

Reproduces How Often

Twilio Call SID(s)

Logs


Hardware Model:      iPhone12,5
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Date/Time:           2023-12-13 12:58:11.8258 -0800
Launch Time:         2023-12-13 12:48:10.8528 -0800
OS Version:          iPhone OS 17.1.2 (21B101)
Release Type:        User
Baseband Version:    5.00.00
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000007
Exception Codes: 0x0000000000000001, 0x0000000000000007
VM Region Info: 0x7 is not in any region.  Bytes before following region: 68719476729
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      commpage (reserved)     1000000000-7000000000 [384.0G] ---/--- SM=NUL  ...(unallocated)
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [18091]

Triggered by Thread:  8

Thread 8 name:
Thread 8 Crashed:
0   TwilioVoice                     0x0000000106036484 void absl::internal_any_invocable::LocalInvoker<false, void, twilio::voice::ListenerImpl::ListenerImpl(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, s... + 44
1   TwilioVoice                     0x0000000105c63f44 rtc::(anonymous namespace)::AnyInvocableMessageHandler::OnMessage(rtc::Message*) + 32
2   TwilioVoice                     0x0000000105c62ed4 rtc::Thread::Dispatch(rtc::Message*) + 148
3   TwilioVoice                     0x0000000105c62030 rtc::Thread::ProcessMessages(int) + 184
4   TwilioVoice                     0x0000000105c63290 rtc::Thread::PreRun(void*) + 60
5   libsystem_pthread.dylib         0x00000001fe54a4d4 _pthread_start + 136 (pthread.c:904)
6   libsystem_pthread.dylib         0x00000001fe549a10 thread_start + 8 (:-1)

Logs from a different user's crash:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xffffffffffff5f4f
Exception Codes: 0x0000000000000001, 0xffffffffffff5f4f
VM Region Info: 0xffffffffffff5f4f is not in any region.  Bytes after previous region: 18446743592673173328  
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      commpage (reserved)     1000000000-7000000000 [384.0G] ---/--- SM=NUL  ...(unallocated)
--->  
      UNUSED SPACE AT END
Triggered by Thread:  5

Thread 5 name:
Thread 5 Crashed:
0   TwilioVoice                     0x000000010379e484 void absl::internal_any_invocable::LocalInvoker<false, void, twilio::voice::ListenerImpl::ListenerImpl(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, s... + 44
1   TwilioVoice                     0x00000001033cbf44 rtc::(anonymous namespace)::AnyInvocableMessageHandler::OnMessage(rtc::Message*) + 32
2   TwilioVoice                     0x00000001033caed4 rtc::Thread::Dispatch(rtc::Message*) + 148
3   TwilioVoice                     0x00000001033ca030 rtc::Thread::ProcessMessages(int) + 184
4   TwilioVoice                     0x00000001033cb290 rtc::Thread::PreRun(void*) + 60
5   libsystem_pthread.dylib         0x00000001eab066b8 _pthread_start + 148 (pthread.c:893)
6   libsystem_pthread.dylib         0x00000001eab05b88 thread_start + 8 (:-1)

Versions

All relevant version information for the issue.

Voice iOS SDK

6.9.0 via SPM

Xcode

15.1

iOS Version

Various: 16.6.1, 17.1.2, 17.2.

iOS Device

Various: iPhone 13 Pro, iPhone 12 Pro, iPhone 11 Pro Max

bobiechen-twilio commented 11 months ago

Hi @davidweissler

Thanks for reaching out. The 6.9.2 release addressed the crash in the description and should resolve the issue for you.