Closed Primo85 closed 9 months ago
@raosanat can you please take a look at this?
Hi @Primo85,
Can you try using the latest version 2.8.0? We have fixed some of those video related issues since 2.3.0.
Closing this since you mentioned here https://github.com/Azure/azure-sdk-for-ios/issues/1708#issuecomment-1963171736 it is fixed on the latest versions. Feel free to re-open if that still appear.
During the Teams meeting(at the beginning), after entering the background and returning to the application, turning off the camera results in a crash.
Steps to reproduce:
- join the meeting - when another participant admit you, go to background immediately - back to the app - try turning off the camera this method is called: ``` -(void)stopVideo:(ACSLocalVideoStream * _Nonnull )stream withCompletionHandler:(void (^ _Nonnull )(NSError * _Nullable error))completionHandler NS_SWIFT_NAME( stopVideo(stream:completionHandler:)); ``` ... and the app crashesSetup:
iOS: 16.7 IDE : Xcode 14.3 PODS: ``` - AzureCommunicationCalling (2.3.0): - AzureCommunicationCommon (~> 1.0) - AzureCommunicationCommon (1.1.1) ```Additional context:
We are using the SDK in our flutter app. ```console Doctor summary (to see all details, run flutter doctor -v): [!] Flutter (Channel stable, 3.10.6, on macOS 13.1 22C65 darwin-x64, locale en-PL) ! Warning: `dart` on your path resolves to /usr/local/Cellar/dart/2.18.7/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/pbiskup/fvm/versions/3.10.6. Consider adding /Users/pbiskup/fvm/versions/3.10.6/bin to the front of your path. [!] Android toolchain - develop for Android devices (Android SDK version 33.0.2) ✗ cmdline-tools component is missing Run `path/to/sdkmanager --install "cmdline-tools;latest"` See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details. [✓] Xcode - develop for iOS and macOS (Xcode 14.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.1) [✓] VS Code (version 1.81.1) [✓] Connected device (3 available) [✓] Network resources ! Doctor found issues in 2 categories. ```.crash
``` Incident Identifier: 9A81CAF2-196C-4540-B8D4-2076B6905366 CrashReporter Key: aefd3b2c8d2b912d96e53c04464996e581c10828 Hardware Model: iPhone10,4 Process: Runner [8348] Path: /private/var/containers/Bundle/Application/17B5E3D8-3CF0-4A0D-A669-49E5ADAA3BEF/Runner.app/Runner Identifier: se.cambio.minhalsa Version: 2.5.3 (2.5.3) Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: se.cambio.minhalsa [535] Date/Time: 2023-10-05 16:32:00.6101 +0200 Launch Time: 2023-10-05 16:17:23.8121 +0200 OS Version: iPhone OS 16.7 (20H19) Release Type: User Baseband Version: 6.01.01 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: SIGNAL 6 Abort trap: 6 Terminating Process: Runner [8348] Triggered by Thread: 0 Application Specific Information: abort() called Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x1ea459198 __pthread_kill + 8 1 libsystem_pthread.dylib 0x1f99e95f8 pthread_kill + 208 2 libsystem_c.dylib 0x1b67f84b8 abort + 124 3 Flutter 0x10728dc80 0x106fac000 + 3021952 4 Flutter 0x10728ddec 0x106fac000 + 3022316 5 Flutter 0x107292390 0x106fac000 + 3040144 6 Flutter 0x10728f5b0 0x106fac000 + 3028400 7 Flutter 0x107292460 0x106fac000 + 3040352 8 CoreFoundation 0x1afa49bb0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28 9 CoreFoundation 0x1afa0ade4 __CFRunLoopDoTimer + 884 10 CoreFoundation 0x1af9b40fc __CFRunLoopDoTimers + 284 11 CoreFoundation 0x1af9fd5bc __CFRunLoopRun + 1940 12 CoreFoundation 0x1afa01d20 CFRunLoopRunSpecific + 584 13 GraphicsServices 0x1e6d78998 GSEventRunModal + 160 14 UIKitCore 0x1b1c9380c -[UIApplication _run] + 868 15 UIKitCore 0x1b1c93484 UIApplicationMain + 312 16 Runner 0x1048061cc main + 64 17 dyld 0x1cd1b8344 start + 1860 Thread 1 name: com.apple.uikit.eventfetch-thread Thread 1: 0 libsystem_kernel.dylib 0x1ea453030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1ea464b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x1ea464db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1ea453524 mach_msg + 20 4 CoreFoundation 0x1af9fc148 __CFRunLoopServiceMachPort + 156 5 CoreFoundation 0x1af9fd2e0 __CFRunLoopRun + 1208 6 CoreFoundation 0x1afa01d20 CFRunLoopRunSpecific + 584 7 Foundation 0x1a9d540e8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208 8 Foundation 0x1a9d53fe4 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60 9 UIKitCore 0x1b1db5cd8 -[UIEventFetcher threadMain] + 404 10 Foundation 0x1a9d6bc4c __NSThread__start__ + 704 11 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 12 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 2 name: io.flutter.1.ui Thread 2: 0 libsystem_kernel.dylib 0x1ea453030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1ea464b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x1ea464db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1ea453524 mach_msg + 20 4 CoreFoundation 0x1af9fc148 __CFRunLoopServiceMachPort + 156 5 CoreFoundation 0x1af9fd2e0 __CFRunLoopRun + 1208 6 CoreFoundation 0x1afa01d20 CFRunLoopRunSpecific + 584 7 Flutter 0x10729254c 0x106fac000 + 3040588 8 Flutter 0x10729203c 0x106fac000 + 3039292 9 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 10 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 3 name: io.flutter.1.raster Thread 3: 0 libsystem_kernel.dylib 0x1ea453030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1ea464b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x1ea464db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1ea453524 mach_msg + 20 4 CoreFoundation 0x1af9fc148 __CFRunLoopServiceMachPort + 156 5 CoreFoundation 0x1af9fd2e0 __CFRunLoopRun + 1208 6 CoreFoundation 0x1afa01d20 CFRunLoopRunSpecific + 584 7 Flutter 0x10729254c 0x106fac000 + 3040588 8 Flutter 0x10729203c 0x106fac000 + 3039292 9 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 10 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 4 name: io.flutter.1.io Thread 4: 0 libsystem_kernel.dylib 0x1ea453030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1ea464b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x1ea464db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1ea453524 mach_msg + 20 4 CoreFoundation 0x1af9fc148 __CFRunLoopServiceMachPort + 156 5 CoreFoundation 0x1af9fd2e0 __CFRunLoopRun + 1208 6 CoreFoundation 0x1afa01d20 CFRunLoopRunSpecific + 584 7 Flutter 0x10729254c 0x106fac000 + 3040588 8 Flutter 0x10729203c 0x106fac000 + 3039292 9 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 10 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 5 name: io.worker.1 Thread 5: 0 libsystem_kernel.dylib 0x1ea45387c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1f99de60c _pthread_cond_wait$VARIANT$armv81 + 1220 2 Flutter 0x106ff4a60 0x106fac000 + 297568 3 Flutter 0x10728c0cc 0x106fac000 + 3014860 4 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 5 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 6 name: io.worker.2 Thread 6: 0 libsystem_kernel.dylib 0x1ea45387c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1f99de60c _pthread_cond_wait$VARIANT$armv81 + 1220 2 Flutter 0x106ff4a60 0x106fac000 + 297568 3 Flutter 0x10728c0cc 0x106fac000 + 3014860 4 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 5 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 7 name: io.worker.3 Thread 7: 0 libsystem_kernel.dylib 0x1ea45387c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1f99de60c _pthread_cond_wait$VARIANT$armv81 + 1220 2 Flutter 0x106ff4a60 0x106fac000 + 297568 3 Flutter 0x10728c0cc 0x106fac000 + 3014860 4 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 5 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 8 name: io.worker.4 Thread 8: 0 libsystem_kernel.dylib 0x1ea45387c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1f99de60c _pthread_cond_wait$VARIANT$armv81 + 1220 2 Flutter 0x106ff4a60 0x106fac000 + 297568 3 Flutter 0x10728c0cc 0x106fac000 + 3014860 4 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 5 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 9 name: io.worker.5 Thread 9: 0 libsystem_kernel.dylib 0x1ea45387c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1f99de60c _pthread_cond_wait$VARIANT$armv81 + 1220 2 Flutter 0x106ff4a60 0x106fac000 + 297568 3 Flutter 0x10728c0cc 0x106fac000 + 3014860 4 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 5 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 10 name: io.worker.6 Thread 10: 0 libsystem_kernel.dylib 0x1ea45387c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1f99de60c _pthread_cond_wait$VARIANT$armv81 + 1220 2 Flutter 0x106ff4a60 0x106fac000 + 297568 3 Flutter 0x10728c0cc 0x106fac000 + 3014860 4 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 5 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 11 name: dart:io EventHandler Thread 11: 0 libsystem_kernel.dylib 0x1ea454800 kevent + 8 1 Flutter 0x1074837e0 0x106fac000 + 5076960 2 Flutter 0x1074b2780 0x106fac000 + 5269376 3 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 4 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 12 name: com.google.firebase.crashlytics.MachExceptionServer Thread 12: 0 libAWDSupport.dylib 0x1fd7449e8 0x1fd70e000 + 223720 1 libsystem_c.dylib 0x1b67f8dbc __cxa_finalize_ranges + 424 2 libsystem_c.dylib 0x1b67f43e8 exit + 28 3 FirebaseCrashlytics 0x104e00288 FIRCLSMachExceptionServer + 1184 4 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 5 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 13: 0 libsystem_kernel.dylib 0x1ea4534ac __semwait_signal + 8 1 libsystem_c.dylib 0x1b67e141c nanosleep + 216 2 libsystem_c.dylib 0x1b67f2058 sleep + 48 3 Sentry 0x105276b08 monitorCachedData + 676 4 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 5 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 14 name: SentryCrash Exception Handler (Secondary) Thread 14: 0 libsystem_kernel.dylib 0x1ea453030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1ea464b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x1ea464db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1ea453524 mach_msg + 20 4 Sentry 0x105282d9c handleExceptions + 172 5 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 6 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 15 name: io.sentry.app-hang-tracker Thread 15: 0 libsystem_kernel.dylib 0x1ea4534ac __semwait_signal + 8 1 libsystem_c.dylib 0x1b67e141c nanosleep + 216 2 Foundation 0x1a9dbddf4 +[NSThread sleepForTimeInterval:] + 156 3 Sentry 0x105266370 -[SentryANRTracker detectANRs] + 560 4 Foundation 0x1a9d6bc4c __NSThread__start__ + 704 5 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 6 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 16 name: com.apple.NSURLConnectionLoader Thread 16: 0 libsystem_kernel.dylib 0x1ea453030 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1ea464b18 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x1ea464db8 mach_msg_overwrite + 484 3 libsystem_kernel.dylib 0x1ea453524 mach_msg + 20 4 CoreFoundation 0x1af9fc148 __CFRunLoopServiceMachPort + 156 5 CoreFoundation 0x1af9fd2e0 __CFRunLoopRun + 1208 6 CoreFoundation 0x1afa01d20 CFRunLoopRunSpecific + 584 7 CFNetwork 0x1b0b80520 0x1b0958000 + 2262304 8 Foundation 0x1a9d6bc4c __NSThread__start__ + 704 9 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 10 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 17: 0 libsystem_pthread.dylib 0x1f99dd718 start_wqthread + 0 Thread 18: 0 libsystem_pthread.dylib 0x1f99dd718 start_wqthread + 0 Thread 19: 0 libsystem_pthread.dylib 0x1f99dd718 start_wqthread + 0 Thread 20: 0 libsystem_kernel.dylib 0x1ea452fac semaphore_wait_trap + 8 1 libdispatch.dylib 0x1b6704d24 _dispatch_sema4_wait$VARIANT$armv81 + 24 2 libdispatch.dylib 0x1b6705360 _dispatch_semaphore_wait_slow + 128 3 AzureCommunicationCalling 0x109abe810 spl::semaWait(spl::EventGCD*&) + 24 4 AzureCommunicationCalling 0x109b38f70 auf::tpManagerThreadTrampoline(SplOpaqueUpperLayerThread*) + 68 5 AzureCommunicationCalling 0x109ac3b58 spl::threadPosixEntry(void*) + 288 6 libsystem_pthread.dylib 0x1f99df0ec _pthread_start + 116 7 libsystem_pthread.dylib 0x1f99dd72c thread_start + 8 Thread 21: 0 libsystem_kernel.dylib 0x1ea452fac semaphore_wait_trap + 8 1 libdispatch.dylib 0x1b6704d24 _dispatch_sema4_wait$VARIANT$armv81 + 24 2 libdispatch.dylib 0x1b6705360 _dispatch_semaphore_wait_slow + 128 3 AzureCommunicationCalling 0x109abe5e4 spl::eventWait(spl::EventGCD*&, std::__1::chrono::durationCould it be related to this: https://github.com/Azure/Communication/issues/440 ??