AgoraIO-Extensions / Agora-Flutter-SDK

Flutter plugin of Agora RTC SDK for Android/iOS/macOS/Windows
https://pub.dev/packages/agora_rtc_engine
MIT License
748 stars 389 forks source link

Crash on app with agora_rtc_engine 6.1.0 #868

Closed pcrfernandes closed 1 year ago

pcrfernandes commented 1 year ago

I'm facing a chash after close mobile app built with Flutter v3.3.10 and agora_rtc_engine 6.1.0. The crash occurs all time after initialize agora rtc engine and, then, close the app. I've already updated all related dependencies, including pods. Main device used on tests: iPhone/iPhone12,8/iOS/15.1 (but testes on newer iPhone version also and had the same error).

This is the code of my widget:

class VideoRoomState extends State { final String channelId; RtcEngine engine; RtcEngineEventHandler _engineEventHandler; ...

VideoRoomState(this.channelId);

@override void initState() { super.initState(); _initEngine(); }

@override Future dispose() async { super.dispose(); return _stopCallControllers(); }

Future _stopCallControllers() async { if (_engineEventHandler != null) { this.engine?.unregisterEventHandler(_engineEventHandler); } await this.engine?.leaveChannel(); await this.engine?.release(sync: true); }

_initEngine() async { await [Permission.camera, Permission.microphone].request();

RtcEngineContext ctx = RtcEngineContext(
  appId: xxxxxxxxxxxxxxxxxxx,
  audioScenario: AudioScenarioType.audioScenarioMeeting,
  areaCode: AreaCode.areaCodeNa.value()
);
this.engine = createAgoraRtcEngine();
await this.engine.initialize(ctx);
EncryptionConfig encryptionCfg = EncryptionConfig(
  encryptionKey: xxxxxxxxxxxxxxxxxxx, 
  encryptionMode: EncryptionMode.aes256Xts
);
this.engine.enableEncryption(enabled: true, config: encryptionCfg);
await this.engine.setClientRole(role: ClientRoleType.clientRoleBroadcaster);
await this.engine.enableVideo();
await this.engine.startPreview();
this.addListeners();
await this.engine.joinChannelWithUserAccount(
  token: '',
  channelId: this.channelId,
  userAccount: xxxxxxxxxxxxxxx
);

}

addListeners() { _engineEventHandler = RtcEngineEventHandler( onJoinChannelSuccess: (RtcConnection connection, int elapsed) { if (!mounted) return; setState(() { ... }); }, onUserJoined: (RtcConnection connection, int uid, int elapsed) { if (!mounted) return; setState(() { ... }); }, onUserOffline: (RtcConnection connection, int uid, UserOfflineReasonType reason) { if (!mounted) return; setState(() { ... }); }, onLeaveChannel: (RtcConnection connection, RtcStats stats) { if (!mounted) return; setState(() { ... }); }, onFirstRemoteVideoFrame: (RtcConnection connection, int uid, int width, int height, int elapsed) { if (!mounted) return; setState(() { ... }); }, onError: (ErrorCodeType code, String msg) { if (!mounted) return; setState(() { ... }); } ); this.engine.registerEventHandler(_engineEventHandler); }

@override Widget build(BuildContext context) { return Scaffold( body: Center( child: ... ) ); } }

This is a crash log sample provided on TestFlight:

Incident Identifier: A60BC715-415F-4269-8107-7D349D18A608 Hardware Model: iPhone12,8 Process: Runner [459] Path: /private/var/containers/Bundle/Application/72D5D5B7-9F4F-4859-9E5B-2E9831564FDB/Runner.app/Runner Identifier: com.emerge.emergeApp Version: 3.7.0 (6) AppStoreTools: 14C17 AppVariant: 1:iPhone12,8:15 Beta: YES Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.emerge.emergeApp [412]

Date/Time: 2023-01-10 18:20:40.6065 -0500 Launch Time: 2023-01-10 18:20:24.5998 -0500 OS Version: iPhone OS 15.1 (19B74) Release Type: User Baseband Version: 3.00.00 Report Version: 104

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000e6b3584de710 -> 0x00000033584de710 (possible pointer authentication failure) Exception Codes: 0x0000000000000001, 0x0000e6b3584de710 VM Region Info: 0x33584de710 is in 0x1000000000-0x7000000000; bytes after start: 151805355792 bytes before end: 260511504623 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL commpage (reserved) fc0000000-1000000000 [ 1.0G] ---/--- SM=NUL ...(unallocated) ---> GPU Carveout (reserved) 1000000000-7000000000 [384.0G] ---/--- SM=NUL ...(unallocated) UNUSED SPACE AT END Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0

Thread 0 name: Thread 0 Crashed: 0 iris_event_handler 0x0000000109d1ab74 invocation function for block in irisevent::ILifeCycleObserver::addApplicationObserver() + 44 1 iris_event_handler 0x0000000109d1ab60 invocation function for block in irisevent::ILifeCycleObserver::addApplicationObserver() + 24 2 Foundation 0x000000018377db80 -[NSObserver _doit:] + 348 (NSNotification.m:327) 3 CoreFoundation 0x0000000181f51ed8 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 28 (CFNotificationCenter.c:652) 4 CoreFoundation 0x0000000181fedb8c _CFXRegistrationPost_block_invoke + 52 (CFNotificationCenter.c:173) 5 CoreFoundation 0x0000000181fc0f44 _CFXRegistrationPost + 456 (CFNotificationCenter.c:199) 6 CoreFoundation 0x0000000181f67d44 _CFXNotificationPost + 716 (CFNotificationCenter.c:1147) 7 Foundation 0x0000000183763628 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96 (NSNotification.m:560) 8 UIKitCore 0x000000018531de9c -[UIApplication _terminateWithStatus:] + 300 (UIApplication.m:6911) 9 UIKitCore 0x0000000184a08d14 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 128 (_UISceneLifecycleMultiplexer.m:808) 10 UIKitCore 0x0000000184bfdc5c -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 224 (_UISceneLifecycleMultiplexer.m:482) 11 UIKitCore 0x000000018531aae4 -[UIApplication workspaceShouldExit:withTransitionContext:] + 212 (UIApplication.m:3828) 12 FrontBoardServices 0x0000000193addc38 63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2 + 80 (FBSWorkspaceScenesClient.m:331) 13 FrontBoardServices 0x0000000193a986b4 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 (FBSWorkspace.m:352) 14 FrontBoardServices 0x0000000193addbd0 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke + 132 (FBSWorkspaceScenesClient.m:328) 15 libdispatch.dylib 0x0000000181c32660 _dispatch_client_callout + 20 (object.m:560) 16 libdispatch.dylib 0x0000000181c36118 _dispatch_block_invoke_direct + 264 (queue.c:489) 17 FrontBoardServices 0x0000000193a99f94 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48 (FBSSerialQueue.m:157) 18 FrontBoardServices 0x0000000193a993d4 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220 (FBSSerialQueue.m:181) 19 FrontBoardServices 0x0000000193a9d9e4 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:194) 20 CoreFoundation 0x0000000181fe2020 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28 (CFRunLoop.c:1972) 21 CoreFoundation 0x0000000181ff2ce0 CFRunLoopDoSource0 + 208 (CFRunLoop.c:2016) 22 CoreFoundation 0x0000000181f2cfe8 CFRunLoopDoSources0 + 268 (CFRunLoop.c:2053) 23 CoreFoundation 0x0000000181f327f4 __CFRunLoopRun + 820 (CFRunLoop.c:2951) 24 CoreFoundation 0x0000000181f463b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 25 GraphicsServices 0x000000019d8d638c GSEventRunModal + 164 (GSEvent.c:2200) 26 UIKitCore 0x00000001848e66a8 -[UIApplication _run] + 1100 (UIApplication.m:3493) 27 UIKitCore 0x00000001846657f4 UIApplicationMain + 2092 (UIApplication.m:5046) 28 Runner 0x00000001042e2140 main + 68 (AppDelegate.swift:11) 29 dyld 0x0000000104c01a24 start + 520 (dyldMain.cpp:876)

Thread 1: 0 libsystem_pthread.dylib 0x00000001f22d1e8c start_wqthread + 0 (:-1)

Thread 2 name: Thread 2: 0 libsystem_kernel.dylib 0x00000001b8e8c504 mach_msg_trap + 8 (:-1) 1 libsystem_kernel.dylib 0x00000001b8e8cb9c mach_msg + 76 (mach_msg.c:119) 2 CoreFoundation 0x0000000181f2e688 CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646) 3 CoreFoundation 0x0000000181f3297c CFRunLoopRun + 1212 (CFRunLoop.c:3000) 4 CoreFoundation 0x0000000181f463b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 5 Foundation 0x0000000183761354 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373) 6 Foundation 0x00000001837a2c28 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420) 7 UIKitCore 0x000000018485f8a4 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167) 8 Foundation 0x00000001837b136c NSThreadstart__ + 808 (NSThread.m:972) 9 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 10 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 3: 0 libsystem_pthread.dylib 0x00000001f22d1e8c start_wqthread + 0 (:-1)

Thread 4 name: Thread 4: 0 libsystem_kernel.dylib 0x00000001b8e8c504 mach_msg_trap + 8 (:-1) 1 libsystem_kernel.dylib 0x00000001b8e8cb9c mach_msg + 76 (mach_msg.c:119) 2 CoreFoundation 0x0000000181f2e688 CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646) 3 CoreFoundation 0x0000000181f3297c CFRunLoopRun + 1212 (CFRunLoop.c:3000) 4 CoreFoundation 0x0000000181f463b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 5 AudioSession 0x000000018b2da308 CADeprecated::GenericRunLoopThread::Entry(void) + 164 (GenericRunLoopThread.h:95) 6 AudioSession 0x000000018b2e3d64 CADeprecated::CAPThread::Entry(CADeprecated::CAPThread) + 92 (CAPThread.cpp:324) 7 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 8 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 5 name: Thread 5: 0 libsystem_kernel.dylib 0x00000001b8e8cf90 psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f22d9254 _pthread_cond_wait + 1228 (pthread_cond.c:636) 2 libc++.1.dylib 0x000000019a6ceddc std::1::condition_variable::wait(std::__1::unique_lock&) + 28 (__threading_support:437) 3 Flutter 0x000000010a0f7840 0x109e04000 + 3094592 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 6 name: Thread 6: 0 libsystem_kernel.dylib 0x00000001b8e8cf90 psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f22d9254 _pthread_cond_wait + 1228 (pthread_cond.c:636) 2 libc++.1.dylib 0x000000019a6ceddc std::1::condition_variable::wait(std::__1::unique_lock&) + 28 (__threading_support:437) 3 Flutter 0x000000010a0f7840 0x109e04000 + 3094592 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 7 name: Thread 7: 0 libsystem_kernel.dylib 0x00000001b8e8cf90 psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f22d9254 _pthread_cond_wait + 1228 (pthread_cond.c:636) 2 libc++.1.dylib 0x000000019a6ceddc std::1::condition_variable::wait(std::__1::unique_lock&) + 28 (__threading_support:437) 3 Flutter 0x000000010a0f7840 0x109e04000 + 3094592 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 8 name: Thread 8: 0 libsystem_kernel.dylib 0x00000001b8e8cf90 psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f22d9254 _pthread_cond_wait + 1228 (pthread_cond.c:636) 2 libc++.1.dylib 0x000000019a6ceddc std::1::condition_variable::wait(std::__1::unique_lock&) + 28 (__threading_support:437) 3 Flutter 0x000000010a0f7840 0x109e04000 + 3094592 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 9 name: Thread 9: 0 libsystem_kernel.dylib 0x00000001b8e8cf90 psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f22d9254 _pthread_cond_wait + 1228 (pthread_cond.c:636) 2 libc++.1.dylib 0x000000019a6ceddc std::1::condition_variable::wait(std::__1::unique_lock&) + 28 (__threading_support:437) 3 Flutter 0x000000010a0f7840 0x109e04000 + 3094592 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 10 name: Thread 10: 0 libsystem_kernel.dylib 0x00000001b8e8cf90 psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f22d9254 _pthread_cond_wait + 1228 (pthread_cond.c:636) 2 libc++.1.dylib 0x000000019a6ceddc std::1::condition_variable::wait(std::__1::unique_lock&) + 28 (__threading_support:437) 3 Flutter 0x000000010a0f7840 0x109e04000 + 3094592 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 11 name: Thread 11: 0 libsystem_kernel.dylib 0x00000001b8e8de7c kevent + 8 (:-1) 1 Flutter 0x000000010a2e832c 0x109e04000 + 5129004 2 Flutter 0x000000010a317414 0x109e04000 + 5321748 3 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 4 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 12 name: Thread 12: 0 libsystem_kernel.dylib 0x00000001b8e8c504 mach_msg_trap + 8 (:-1) 1 libsystem_kernel.dylib 0x00000001b8e8cb9c mach_msg + 76 (mach_msg.c:119) 2 CoreFoundation 0x0000000181f2e688 CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646) 3 CoreFoundation 0x0000000181f3297c CFRunLoopRun + 1212 (CFRunLoop.c:3000) 4 CoreFoundation 0x0000000181f463b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 5 CFNetwork 0x00000001829ba6a0 +[CFN_CoreSchedulingSetRunnable _run:] + 464 (CoreSchedulingSet.mm:1372) 6 Foundation 0x00000001837b136c NSThreadstart + 808 (NSThread.m:972) 7 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 8 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 13 name: Thread 13: 0 libsystem_kernel.dylib 0x00000001b8e8cf90 __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f22d9280 _pthread_cond_wait + 1272 (pthread_cond.c:640) 2 Flutter 0x000000010a42e8fc 0x109e04000 + 6465788 3 Flutter 0x000000010a46f9a0 0x109e04000 + 6732192 4 Flutter 0x000000010a42e224 0x109e04000 + 6464036 5 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 6 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 14: 0 libsystem_kernel.dylib 0x00000001b8e8cf90 psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f22d9254 _pthread_cond_wait + 1228 (pthread_cond.c:636) 2 libc++.1.dylib 0x000000019a6cee78 std::1::condition_variable::do_timed_wait(std::1::unique_lock&, std::1::chrono::time_point<std::__1::chrono::system_clock, std::1::chrono::duration<long long, std::1::r... + 100 (threading_support:443) 3 AgoraRtcWrapper 0x00000001075d528c spdlog::details::periodic_worker::periodic_worker(std::1::function<void ()> const&, std::1::chrono::duration<long long, std::1::ratio<1l, 1l> >)::'lambda'()::operator()() const + 148 4 AgoraRtcWrapper 0x00000001075d5180 void* std::1::thread_proxy<std::1::tuple<std::1::unique_ptr<std::1::thread_struct, std::__1::default_delete<std::1::__thread_struct> >, spdlog::details::periodic_worker::periodic_work... + 44 5 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 6 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 15 name: Thread 15: 0 libsystem_kernel.dylib 0x00000001b8e8de7c kevent + 8 (:-1) 1 AgoraRtcKit 0x0000000106c2b9d4 0x1064a0000 + 7911892 2 AgoraRtcKit 0x0000000106c20b10 0x1064a0000 + 7867152 3 AgoraRtcKit 0x0000000106bfe750 0x1064a0000 + 7726928 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 16 name: Thread 16: 0 libsystem_kernel.dylib 0x00000001b8e8de7c kevent + 8 (:-1) 1 AgoraRtcKit 0x0000000106c2b9d4 0x1064a0000 + 7911892 2 AgoraRtcKit 0x0000000106c20b10 0x1064a0000 + 7867152 3 AgoraRtcKit 0x0000000106bfe750 0x1064a0000 + 7726928 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 17 name: Thread 17: 0 libsystem_kernel.dylib 0x00000001b8e8de7c kevent + 8 (:-1) 1 AgoraRtcKit 0x0000000106c2b9d4 0x1064a0000 + 7911892 2 AgoraRtcKit 0x0000000106c20b10 0x1064a0000 + 7867152 3 AgoraRtcKit 0x0000000106bfe750 0x1064a0000 + 7726928 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 18 name: Thread 18: 0 libsystem_kernel.dylib 0x00000001b8e8de7c kevent + 8 (:-1) 1 AgoraRtcKit 0x0000000106c2b9d4 0x1064a0000 + 7911892 2 AgoraRtcKit 0x0000000106c20b10 0x1064a0000 + 7867152 3 AgoraRtcKit 0x0000000106bfe750 0x1064a0000 + 7726928 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 19 name: Thread 19: 0 libsystem_kernel.dylib 0x00000001b8e8de7c kevent + 8 (:-1) 1 AgoraRtcKit 0x0000000106c2b9d4 0x1064a0000 + 7911892 2 AgoraRtcKit 0x0000000106c20b10 0x1064a0000 + 7867152 3 AgoraRtcKit 0x0000000106bfe750 0x1064a0000 + 7726928 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 20 name: Thread 20: 0 libsystem_kernel.dylib 0x00000001b8e8de7c kevent + 8 (:-1) 1 AgoraRtcKit 0x0000000106c2b9d4 0x1064a0000 + 7911892 2 AgoraRtcKit 0x0000000106c20b10 0x1064a0000 + 7867152 3 AgoraRtcKit 0x0000000106bfe750 0x1064a0000 + 7726928 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 21 name: Thread 21: 0 libsystem_kernel.dylib 0x00000001b8e8de7c kevent + 8 (:-1) 1 AgoraRtcKit 0x0000000106c2b9d4 0x1064a0000 + 7911892 2 AgoraRtcKit 0x0000000106c20b10 0x1064a0000 + 7867152 3 AgoraRtcKit 0x0000000106bfe750 0x1064a0000 + 7726928 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 22 name: Thread 22: 0 libsystem_kernel.dylib 0x00000001b8e8cf90 psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f22d9254 _pthread_cond_wait + 1228 (pthread_cond.c:636) 2 libc++.1.dylib 0x000000019a6cee78 std::1::condition_variable::do_timed_wait(std::1::unique_lock&, std::1::chrono::time_point<std::__1::chrono::system_clock, std::1::chrono::duration<long long, std::1::r... + 100 (threading_support:443) 3 AgoraRtcKit 0x000000010679a198 0x1064a0000 + 3121560 4 AgoraRtcKit 0x000000010679a0c4 0x1064a0000 + 3121348 5 AgoraRtcKit 0x000000010679a060 0x1064a0000 + 3121248 6 AgoraRtcKit 0x0000000106799f78 0x1064a0000 + 3121016 7 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 8 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 23 name: Thread 23: 0 libsystem_kernel.dylib 0x00000001b8e8cf90 psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f22d9254 _pthread_cond_wait + 1228 (pthread_cond.c:636) 2 libc++.1.dylib 0x000000019a6cee78 std::1::condition_variable::do_timed_wait(std::1::unique_lock&, std::1::chrono::time_point<std::__1::chrono::system_clock, std::1::chrono::duration<long long, std::1::r... + 100 (threading_support:443) 3 AgoraRtcKit 0x000000010679a198 0x1064a0000 + 3121560 4 AgoraRtcKit 0x000000010679a0c4 0x1064a0000 + 3121348 5 AgoraRtcKit 0x000000010679a060 0x1064a0000 + 3121248 6 AgoraRtcKit 0x000000010679a4b4 0x1064a0000 + 3122356 7 AgoraRtcKit 0x00000001067999d8 0x1064a0000 + 3119576 8 AgoraRtcKit 0x00000001067998e4 0x1064a0000 + 3119332 9 AgoraRtcKit 0x0000000106799898 0x1064a0000 + 3119256 10 AgoraRtcKit 0x000000010679a290 0x1064a0000 + 3121808 11 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 12 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 24 name: Thread 24: 0 libsystem_kernel.dylib 0x00000001b8e8de7c kevent + 8 (:-1) 1 AgoraRtcKit 0x0000000106c2b9d4 0x1064a0000 + 7911892 2 AgoraRtcKit 0x0000000106c20b10 0x1064a0000 + 7867152 3 AgoraRtcKit 0x0000000106bfe750 0x1064a0000 + 7726928 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 25 name: Thread 25: 0 libsystem_kernel.dylib 0x00000001b8e8de7c kevent + 8 (:-1) 1 AgoraRtcKit 0x0000000106c2b9d4 0x1064a0000 + 7911892 2 AgoraRtcKit 0x0000000106c20b10 0x1064a0000 + 7867152 3 AgoraRtcKit 0x0000000106bfe750 0x1064a0000 + 7726928 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 26: 0 libsystem_pthread.dylib 0x00000001f22d1e8c start_wqthread + 0 (:-1)

Thread 27 name: Thread 27: 0 libsystem_kernel.dylib 0x00000001b8e8c504 mach_msg_trap + 8 (:-1) 1 libsystem_kernel.dylib 0x00000001b8e8cb9c mach_msg + 76 (mach_msg.c:119) 2 CoreFoundation 0x0000000181f2e688 CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646) 3 CoreFoundation 0x0000000181f3297c CFRunLoopRun + 1212 (CFRunLoop.c:3000) 4 CoreFoundation 0x0000000181f463b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 5 Foundation 0x0000000183761354 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373) 6 Runner 0x0000000104684b74 -[GMSx_GTMSimpleWorkerThread main] + 184 7 Foundation 0x00000001837b136c NSThreadstart__ + 808 (NSThread.m:972) 8 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 9 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 28: 0 libsystem_pthread.dylib 0x00000001f22d1e8c start_wqthread + 0 (:-1)

Thread 29: 0 libsystem_pthread.dylib 0x00000001f22d1e8c start_wqthread + 0 (:-1)

Thread 30: 0 libsystem_pthread.dylib 0x00000001f22d1e8c start_wqthread + 0 (:-1)

Thread 31: 0 libsystem_pthread.dylib 0x00000001f22d1e8c start_wqthread + 0 (:-1)

Thread 32: 0 libsystem_pthread.dylib 0x00000001f22d1e8c start_wqthread + 0 (:-1)

Thread 33: 0 libsystem_pthread.dylib 0x00000001f22d1e8c start_wqthread + 0 (:-1)

Thread 34 name: Thread 34: 0 libsystem_kernel.dylib 0x00000001b8e8c540 semaphore_wait_trap + 8 (:-1) 1 caulk 0x00000001ecf5e314 caulk::mach::semaphore::wait_or_error() + 28 (mach_semaphore.cpp:131) 2 caulk 0x00000001ecf5f0f0 caulk::concurrent::details::worker_thread::run() + 56 (semaphore.cpp:85) 3 caulk 0x00000001ecf5fb98 void caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::)(), std::__1::tuple<caulk::concurrent::details::worker_thread> > >(void) + 96 (type_traits:3642) 4 libsystem_pthread.dylib 0x00000001f22d29a4 _pthread_start + 148 (pthread.c:891) 5 libsystem_pthread.dylib 0x00000001f22d1ea0 thread_start + 8 (:-1)

Thread 0 crashed with ARM Thread State (64-bit): x0: 0x00000002822ee6e0 x1: 0x00000002824713c0 x2: 0x00000002824713c0 x3: 0x00000002824713c0 x4: 0x0000000282c33d50 x5: 0x0000000000000001 x6: 0x0000000000000000 x7: 0x0000000000000000 x8: 0x0000e6b3584de6e0 x9: 0x0100000000000000 x10: 0x01000001db67a9f1 x11: 0x02000001db67a9f1 x12: 0x0000000000000000 x13: 0x000000028223e750 x14: 0x00000000c1000006 x15: 0x00000001db67ad60 x16: 0x000000019a622480 x17: 0x9f18aa818378b714 x18: 0x00000001155b8530 x19: 0x00000002824713c0 x20: 0x0000000282c33db0 x21: 0x00000001d8939000 x22: 0x0000000282c33d50 x23: 0x00000002824713c0 x24: 0x0000000280688a80 x25: 0x0000000282c33de0 x26: 0x0000000000000001 x27: 0x000000c5000000b9 x28: 0x0000000000001c00 fp: 0x000000016bb21990 lr: 0x0000000109d1ab60 sp: 0x000000016bb21980 pc: 0x0000000109d1ab74 cpsr: 0x60000000 esr: 0x56000080 Address size fault

Binary Images: 0x1042dc000 - 0x1048ebfff Runner arm64 /private/var/containers/Bundle/Application/72D5D5B7-9F4F-4859-9E5B-2E9831564FDB/Runner.app/Runner 0x104be8000 - 0x104c3ffff dyld arm64e /usr/lib/dyld 0x1064a0000 - 0x10719bfff AgoraRtcKit arm64 <6e73b742127931e985a279719c355490> /private/var/containers/Bundle/Application/72D5D5B7-9F4F-4859-9E5B-2E9831564FDB/Runner.app/Frameworks/AgoraRtcKit.framework/AgoraRtcKit 0x107408000 - 0x10766bfff AgoraRtcWrapper arm64 /private/var/containers/Bundle/Application/72D5D5B7-9F4F-4859-9E5B-2E9831564FDB/Runner.app/Frameworks/AgoraRtcWrapper.framework/AgoraRtcWrapper 0x109d14000 - 0x109d1bfff iris_event_handler arm64 /private/var/containers/Bundle/Application/72D5D5B7-9F4F-4859-9E5B-2E9831564FDB/Runner.app/Frameworks/iris_event_handler.framework/iris_event_handler 0x109e04000 - 0x10a5effff Flutter arm64 <3adbf2891ee63561a26df1652313df7e> /private/var/containers/Bundle/Application/72D5D5B7-9F4F-4859-9E5B-2E9831564FDB/Runner.app/Frameworks/Flutter.framework/Flutter 0x181c2e000 - 0x181c74fff libdispatch.dylib arm64e /usr/lib/system/libdispatch.dylib 0x181f27000 - 0x18237afff CoreFoundation arm64e /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 0x182740000 - 0x182c04fff CFNetwork arm64e <1f9e80ee1df136acbdfe22afb9a1b82e> /System/Library/Frameworks/CFNetwork.framework/CFNetwork 0x183749000 - 0x183a4efff Foundation arm64e /System/Library/Frameworks/Foundation.framework/Foundation 0x1843cd000 - 0x185c51fff UIKitCore arm64e <8388eb03002b3b35a78a6a022894292e> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore 0x18b2d4000 - 0x18b2fdfff AudioSession arm64e <99ff741f34943edf82b7c03c916ebad3> /System/Library/PrivateFrameworks/AudioSession.framework/AudioSession 0x193a8e000 - 0x193b39fff FrontBoardServices arm64e <6fdec0c3e5003e06948ee34bda520801> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices 0x19a6c5000 - 0x19a728fff libc++.1.dylib arm64e <255864c483d93bac8c7aad1b2d8a60cc> /usr/lib/libc++.1.dylib 0x19d8d5000 - 0x19d8ddfff GraphicsServices arm64e <44e4515eb18737f18fe028e7b087daf5> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices 0x1b8e8b000 - 0x1b8ebefff libsystem_kernel.dylib arm64e /usr/lib/system/libsystem_kernel.dylib 0x1ecf5b000 - 0x1ecf82fff caulk arm64e /System/Library/PrivateFrameworks/caulk.framework/caulk 0x1f22d1000 - 0x1f22dcfff libsystem_pthread.dylib arm64e <1a4a45fd1bb639df84140590ce103717> /usr/lib/system/libsystem_pthread.dylib

EOF

littleGnAl commented 1 year ago

Thanks for reporting, I will investigate it these few days.

ChrisMICDUP commented 1 year ago

Having same issue. Flutter 3.3.8 - IOS 16.2 (20C65) iPhone 14 Pro Max. Let me know if you require trace or code.

One thing though, you'll only notice the crash if you are sending Analytics back to Apple TestFlight otherwise the failure is invisible to the user.

littleGnAl commented 1 year ago

@ChrisMICDUP This crash is caused by directly killing the APP, so it's unconscious to users, but will be caught by the crash report tool.

ChrisMICDUP commented 1 year ago

I agree that is isn't a major issue, however it does seem that the agora_rtc_engine.release method is not closing down everything it should. Not a priority for us as it has no effect on our app. Here's a better log of what is going on.

An Agora channel is connected to as a Broadcaster, then left with the engine.release method called. The App is then closed from the iOS task manager. NOTE: flutter: didChangeAppLifecycleState state=detached is fired when the app is closed from Task Manager

flutter: 2023-01-19 11:00:12.977059: RTCEngineProviderState close [debug] [iris_rtc_engine_impl.cc:114] api name RtcEngine_leaveChannel params {"options":null} [info] [rtc_engine_event_handler.cc:1316] channel s41663534832317 uid 3203217473 [debug] [iris_rtc_engine_impl.cc:132] ret 0 result {"result":0} flutter: RE: destroy engine [debug] [iris_rtc_engine_impl.cc:114] api name RtcEngine_unregisterEventHandler params {"event":10767868176} [debug] [iris_rtc_engine_impl.cc:132] ret 0 result {"result":0} [debug] [iris_rtc_engine_impl.cc:114] api name RtcEngine_release params {"sync":false} [debug] [iris_rtc_engine_impl.cc:233] IrisRtcEngineImpl __release [debug] [iris_rtc_device_manager_impl.cc:36] IrisRtcDeviceManagerImpl Release [debug] [iris_rtc_device_manager_wrapper.cc:791] IDeviceManagerWrapper Release [debug] [iris_rtc_media_player_impl.cc:43] IrisMediaPlayerImpl Release [debug] [iris_rtc_media_player_wrapper.cc:39] IMediaPlayerWrapper release [debug] [iris_rtc_spatial_audio_engine_impl.cc:214] IrisLocalSpatialAudioEngineImpl Release [debug] [iris_rtc_spatial_audio_engine_wrapper.cc:388] ILocalSpatialAudioEngineWrapper release [debug] [iris_rtc_media_recoder_impl.cc:26] IrisMediaRecoderImpl Release [debug] [iris_rtc_media_recoder_wrapper.cc:37] IMediaRecoderWrapper Release [debug] [iris_rtc_music_center_impl.cc:31] IrisMusicCenterImpl Release [debug] [iris_rtc_music_center_wrapper.cc:28] IrisMusicContentCenterWrapper release [debug] [iris_rtc_engine_wrapper.cc:8191] IRtcEngineWrapper release [debug] [iris_rtc_engine_impl.cc:132] ret 0 result {"result":0} [debug] [iris_rtc_engine_impl.cc:49] IrisRtcEngineImpl Destroy [debug] [iris_rtc_music_center_impl.cc:21] IrisMusiImpl Destroy [debug] [iris_rtc_media_recoder_impl.cc:15] IrisMediaRecoderImpl Destroy [debug] [iris_rtc_spatial_audio_engine_impl.cc:203] IrisLocalSpatialAudioEngineImpl Destroy [debug] [iris_rtc_media_player_impl.cc:28] IrisMediaPlayerImpl Destroy [debug] [iris_rtc_device_manager_impl.cc:25] IrisRtcDeviceManagerImpl Destroy flutter: didChangeAppLifecycleState state=inactive 9.6.0 - [FirebaseAnalytics][I-ACS800014] Cannot get flag for unregistered flag. SDK name, flag name: app_measurement, session_stitching_token_feature_enabled 9.6.0 - [FirebaseAnalytics][I-ACS800014] Cannot get flag for unregistered flag. SDK name, flag name: app_measurement, session_stitching_token_feature_enabled No windows have a root view controller, cannot save application state flutter: didChangeAppLifecycleState state=detached

littleGnAl commented 1 year ago

@ChrisMICDUP Thanks for your clear logs, I still need some time to solve this issue.

alsherby-foundation commented 1 year ago

Yeah, it causes because the old version has ".destroy()" but the new version has ".release()" It seems not to destroy after the app close, please fix this.

Note: this bug is caused only in the release version and can not see in the debug mode, ios only.

alsherby-foundation commented 1 year ago

For me, error after kill the app.

@UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } }

2023-01-21 12:14:17.169598+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.170024+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.236249+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.236562+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.295949+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.296115+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.364068+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.364368+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.429224+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.429558+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.496295+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.496738+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.564085+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.565368+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.628394+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.628754+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.696481+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.696889+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.763923+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.764351+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.828172+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.828444+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.895920+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.896087+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.956629+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:17.956753+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.027944+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.028192+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.095627+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.096005+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.162395+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.162725+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.228565+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.228732+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. [2023-01-21 12:14:18.249] [5185] [debug] [iris_rtc_engine_impl.cc:112] api name RtcEngine_joinChannelWithUserAccount params {"channelId":"1c234190-8e94-11ed-801e-65027a9d3b82UcqqfMw0r9fUg3Imr72OwbG9X7C2","options":null,"token":"0060***gstj","userAccount":"1c234190-8e94-11ed-801e-65027a9d3b82"} [2023-01-21 12:14:18.264] [5185] [debug] [iris_rtc_engine_impl.cc:132] ret 0 result {"result":0} 2023-01-21 12:14:18.265023+0700 Runner[5185:2041493] flutter: Join channel success 2023-01-21 12:14:18.289511+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.289699+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.356097+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.356355+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.496171+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.496275+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.496464+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.496676+0700 Runner[5185:2042013] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.612287+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.612656+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.731723+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.732043+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.732413+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.732926+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. [2023-01-21 12:14:18.743] [5185] [info] [rtc_engine_event_handler.cc:53] channel 1c234190-8e94-11ed-801e-65027a9d3b82UcqqfMw0r9fUg3Imr72OwbG9X7C2 uid 1000000002 2023-01-21 12:14:18.747302+0700 Runner[5185:2041493] flutter: local user 1000000002 joined 2023-01-21 12:14:18.757274+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.757462+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. [2023-01-21 12:14:18.785] [5185] [debug] [iris_rtc_engine_impl.cc:114] api name RtcEngine_setupLocalVideo params {"canvas":{"uid":0,"view":4486975120}} [2023-01-21 12:14:18.786] [5185] [debug] [iris_rtc_engine_impl.cc:132] ret 0 result {"result":0} 2023-01-21 12:14:18.825336+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.825576+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.891515+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.891639+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.958483+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:18.958617+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.024147+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.024377+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.094187+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.094299+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.161757+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.161914+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.229721+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.230155+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.296294+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.296746+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.362218+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.362569+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.429239+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.429789+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.495492+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.495790+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.563400+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.563914+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.627698+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.628009+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.695602+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.695921+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.762248+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.762506+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.829426+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.829837+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.895963+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.896446+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.960963+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:19.961262+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.029189+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.029600+0700 Runner[5185:2041488] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.093265+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.093484+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.161376+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.161839+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.227036+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.227167+0700 Runner[5185:2041490] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.292076+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.292170+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. [2023-01-21 12:14:20.351] [5185] [debug] [iris_rtc_engine_impl.cc:114] api name RtcEngine_setupLocalVideo params {"canvas":{"uid":0,"view":0}} [2023-01-21 12:14:20.352] [5185] [debug] [iris_rtc_engine_impl.cc:132] ret 0 result {"result":0} 2023-01-21 12:14:20.356022+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. 2023-01-21 12:14:20.356115+0700 Runner[5185:2042012] Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping behavior in the near future. [2023-01-21 12:14:20.358] [5185] [debug] [iris_rtc_engine_impl.cc:114] api name RtcEngine_leaveChannel params {"options":null} [2023-01-21 12:14:20.362] [5185] [debug] [iris_rtc_engine_impl.cc:132] ret 0 result {"result":0} [2023-01-21 12:14:20.362] [5185] [info] [rtc_engine_event_handler.cc:1316] channel 1c234190-8e94-11ed-801e-65027a9d3b82UcqqfMw0r9fUg3Imr72OwbG9X7C2 uid 1000000002 [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_engine_impl.cc:114] api name RtcEngine_unregisterEventHandler params {"event":10787919584} [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_engine_impl.cc:132] ret 0 result {"result":0} [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_engine_impl.cc:114] api name RtcEngine_release params {"sync":false} [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_engine_impl.cc:233] IrisRtcEngineImpl release [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_device_manager_impl.cc:36] IrisRtcDeviceManagerImpl Release [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_device_manager_wrapper.cc:791] IDeviceManagerWrapper Release [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_media_player_impl.cc:43] IrisMediaPlayerImpl Release [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_media_player_wrapper.cc:39] IMediaPlayerWrapper release [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_spatial_audio_engine_impl.cc:214] IrisLocalSpatialAudioEngineImpl Release [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_spatial_audio_engine_wrapper.cc:388] ILocalSpatialAudioEngineWrapper release [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_media_recoder_impl.cc:26] IrisMediaRecoderImpl Release [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_media_recoder_wrapper.cc:37] IMediaRecoderWrapper Release [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_music_center_impl.cc:31] IrisMusicCenterImpl Release [2023-01-21 12:14:20.363] [5185] [debug] [iris_rtc_music_center_wrapper.cc:28] IrisMusicContentCenterWrapper release [2023-01-21 12:14:20.364] [5185] [debug] [iris_rtc_engine_wrapper.cc:8191] IRtcEngineWrapper release [2023-01-21 12:14:20.442] [5185] [debug] [iris_rtc_engine_impl.cc:132] ret 0 result {"result":0} [2023-01-21 12:14:20.450] [5185] [debug] [iris_rtc_engine_impl.cc:49] IrisRtcEngineImpl Destroy [2023-01-21 12:14:20.450] [5185] [debug] [iris_rtc_music_center_impl.cc:21] IrisMusiImpl Destroy [2023-01-21 12:14:20.450] [5185] [debug] [iris_rtc_media_recoder_impl.cc:15] IrisMediaRecoderImpl Destroy [2023-01-21 12:14:20.450] [5185] [debug] [iris_rtc_spatial_audio_engine_impl.cc:203] IrisLocalSpatialAudioEngineImpl Destroy [2023-01-21 12:14:20.450] [5185] [debug] [iris_rtc_media_player_impl.cc:28] IrisMediaPlayerImpl Destroy [2023-01-21 12:14:20.450] [5185] [debug] [iris_rtc_device_manager_impl.cc:25] IrisRtcDeviceManagerImpl Destroy 2023-01-21 12:14:27.179130+0700 Runner[5185:2041092] No windows have a root view controller, cannot save application state 2023-01-21 12:14:27.180612+0700 Runner[5185:2041092] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") libc++abi: terminating with uncaught exception of type std::1::bad_function_call: std::exception terminating with uncaught exception of type std::__1::bad_function_call: std::exception (lldb)

pedroenrre commented 1 year ago

We are facing the same issue. Any updates on this?

littleGnAl commented 1 year ago

This fix has landed the main branch.

pedroenrre commented 1 year ago

We have tried to build the app pointing to yours main repository. However, the issue still remains.

github-actions[bot] commented 1 year ago

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

littleGnAl commented 1 year ago

@pedroenrre I think you can raise a new issue for your case.

liziyang0625 commented 1 year ago

same issue

littleGnAl commented 1 year ago

@liziyang0625 Please raise a new issue for your case and share your crash log.

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.