Azure / Communication

Azure Communication Services - SDKs and Release Notes
MIT License
317 stars 98 forks source link

[iOS]CallingSDK crash with ACSException `Attempting to get event handler for a cookie which was never added.' #423

Open AmyL219 opened 2 years ago

AmyL219 commented 2 years ago

Describe the bug when a Calling SDK user being kicked out from Teams meeting, the SDK could randomly crash because of `Attempting to get event handler for a cookie which was never added.'

To Reproduce Steps to reproduce the behavior:

  1. Join a Team's meeting through CallingSDK
  2. Grant permission to this CallingSDK user of joining the meeting
  3. Kick out the CallingSDK user when some participants are speaking
  4. The CallingSDK user would get a crash. See the attached screen

Expected behavior CallingSDK shouldn't crash.

Screenshots

Screen Shot 2021-11-15 at 3 27 09 PM

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Logs 2021-11-17 11:40.37.xcappdata.zip

raosanat commented 2 years ago

AB#2650046

tompi commented 2 years ago

Just happened to me to on iOS sdk 2.1.0-beta.1. The only time it happened was when disposing some objects RIGHT AFTER/DURING call initialization.

0x0000000108a0c000 + 91424
SIGABRT: Attempting to get event handler for a cookie which was never added.

LAST EXCEPTION BACKTRACE
CoreFoundation
__exceptionPreprocess
libobjc.A.dylib
objc_exception_throw
CoreFoundation
+[NSException raise:format:]
AzureCommunicationCalling
0x0000000108a0c000 + 91424
AzureCommunicationCalling
0x0000000108a0c000 + 87192
AzureCommunicationCalling
0x0000000108a0c000 + 89696
AzureCommunicationCalling
0x0000000108a0c000 + 48536
AzureCommunicationCalling
0x0000000108a0c000 + 365188
AzureCommunicationCalling
0x0000000108a0c000 + 355740
AzureCommunicationCalling
0x0000000108a0c000 + 381472
AzureCommunicationCalling
0x0000000108a0c000 + 20548828
AzureCommunicationCalling
0x0000000108a0c000 + 20533452
AzureCommunicationCalling
0x0000000108a0c000 + 20533060
libdispatch.dylib
_dispatch_call_block_and_release
libdispatch.dylib
_dispatch_client_callout
libdispatch.dylib
_dispatch_root_queue_drain
libdispatch.dylib
_dispatch_worker_thread2
libsystem_pthread.dylib
_pthread_wqthread
libsystem_pthread.dylib
start_wqthread