[BUG] CommunicationCalling crashes on hangup

Open
#440 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp, ios

Research direction

Start with SessionManager.cs:226 and ActiveSessionPortraitPageViewModel.cs:52, following the hangup path into ACSCallAgent.g.cs:81. The report cannot reproduce the crash and provides no test or device logs, so first investigate the recorded check_status failure and establish a reliable hangup scenario. Done means ending a call no longer crashes under the affected conditions.

Written by the indexing model from the issue text.

Description

Needs: triage :mag:

@tompi commented on Mon Feb 07 2022

Describe the bug
Experienced 3 crashes on 2 different iphones yesterday, unfortunately not "our" phones, so cant provide device logs.

Exception or Stack Trace

check_status
SIGABRT: Failed (1). Unknown error. RequestCorrelationVector: . ResponseCorrelationVector:
Main thread
LAST EXCEPTION BACKTRACE
CoreFoundation
__exceptionPreprocess
libobjc.A.dylib
objc_exception_throw
CoreFoundation
+[NSException raise:format:]
AzureCommunicationCalling
check_status
TCPRLink.iOS
wrapper_managed_to_native_ApiDefinitions_Messaging_objc_msgSend_intptr_intptr_0
TCPRLink.iOS
ACSCallAgent.g.cs:81
TCPRLink.iOS
TCPRLink_iOS_ACS_VideoCallManager_Hangup <unknown>:1
TCPRLink.iOS
SessionManager.cs:226
TCPRLink.iOS
AsyncMethodBuilder.cs:316
TCPRLink.iOS
TCPRLink_Services_SessionManager_StopSession
TCPRLink.iOS
ActiveSessionPortraitPageViewModel.cs:52
TCPRLink.iOS
AsyncMethodBuilder.cs:316
TCPRLink.iOS
TCPRLink_Pages_DuringSession_ActiveSession_ActiveSessionPortraitPageViewModel_EndSession
TCPRLink.iOS
AsyncAwaitBestPractices_MVVM_AsyncCommand__c__DisplayClass2_0__ConvertExecuteb__0_object <unknown>:1
TCPRLink.iOS
AsyncAwaitBestPractices_MVVM_BaseAsyncCommand_2_TExecute_REF_TCanExecute_REF_ExecuteAsync_TExecute_REF <unknown>:1
TCPRLink.iOS
AsyncAwaitBestPractices_MVVM_BaseAsyncCommand_2_TExecute_REF_TCanExecute_REF_System_Windows_Input_ICommand_Execute_object <unknown>:1
TCPRLink.iOS
Xamarin_Forms_ButtonElement_ElementClicked_Xamarin_Forms_VisualElement_Xamarin_Forms_Internals_IButtonElement (D:\a\1\s\Xamarin.Forms.Core\ButtonElement.cs:60)
TCPRLink.iOS
Xamarin_Forms_Button_SendClicked (D:\a\1\s\Xamarin.Forms.Core\Button.cs:173)
TCPRLink.iOS
Xamarin_Forms_Platform_iOS_ButtonElementManager_OnButtonTouchUpInside_Xamarin_Forms_IButtonController (D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\ButtonElementManager.cs:86)
TCPRLink.iOS
Xamarin_Forms_Platform_iOS_ButtonRenderer_OnButtonTouchUpInside_object_System_EventArgs (D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\ButtonRenderer.cs:189)
TCPRLink.iOS
UIControl.cs:39
TCPRLink.iOS
wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
TCPRLink.iOS
mono_jit_runtime_invoke mini-runtime.c:3190
TCPRLink.iOS
mono_runtime_invoke_checked object.c:3052
TCPRLink.iOS
mono_runtime_invoke object.c:3107
TCPRLink.iOS
native_to_managed_trampoline_18(objc_object*, objc_selector*, _MonoMethod**, unsigned int) registrar.m:960
TCPRLink.iOS
-[UIKit_UIControlEventProxy BridgeSelector] registrar.m:9877
UIKitCore
-[UIApplication sendAction:to:from:forEvent:]
TCPRLink.iOS
wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr
TCPRLink.iOS
UIApplication.cs:73
TCPRLink.iOS
TCPRLink_iOS_Application_Main_string__ <unknown>:1
TCPRLink.iOS
wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
TCPRLink.iOS
mono_jit_runtime_invoke mini-runtime.c:3190
TCPRLink.iOS
mono_runtime_invoke_checked object.c:3052
TCPRLink.iOS
mono_runtime_exec_main_checked object.c:0
TCPRLink.iOS
mono_jit_exec driver.c:1383
TCPRLink.iOS
xamarin_main monotouch-main.m:497
TCPRLink.iOS
main main.m:252
0x0000000105291aa4

To Reproduce
Not able to reproduce

Setup (please complete the following information):

  • OS: IOS 15.2.1 and 15.3
  • Version of the Library used: 2.0.0-beta.1 (We are using the recording feature which is NOT in 2.0.0...)

I know this is not the best quality bug report, so feel free to close it at your discretion, just felt I should share in case you didnt know about this...

Dominant language
No language data
Stars
340
Forks
113
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/Communication

All issues in Azure/Communication

Similar issues

More Audio/Video & RTC issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.