TRTC_Flutter icon indicating copy to clipboard operation
TRTC_Flutter copied to clipboard

【ios】-【2.2.4】闪退

Open fangwy opened this issue 3 years ago • 6 comments

【当前现象】:闪退 【SDKAppID】:1400647623 【房间号】: 72800502 【useID】:1949 【问题时间段】:2022-06-14 16:07:26~16:07:26 【机型】:iPhone 8 Plus (A1864/A1898)(15.4) 【之前版本有无此问题】:不清楚 【是否必现】:偶现 【复现方法】:进房马上退出 【日志或者描述、截图】:

`tencent_trtc_cloud/TencentTRTCCloud.swift:317: Fatal error: Unexpectedly found nil while unwrapping an Optional value

  • thread # 1, queue = 'com.apple.main-thread', stop reason = Fatal error: Unexpectedly found nil while unwrapping an Optional value frame #0: 0x0000000184fcbebc libswiftCore.dylib_swift_runtime_on_report libswiftCore.dylib_swift_runtime_on_report: -> 0x184fcbebc <+0>: ret libswiftCore.dylib_swift_reportToDebugger: 0x184fcbec0 <+0>: b 0x184fcbebc ; _swift_runtime_on_report libswiftCore.dylib_swift_shouldReportFatalErrorsToDebugger: 0x184fcbec4 <+0>: adrp x8, 463957 0x184fcbec8 <+4>: ldrb w0, [x8, #0x60c] Target 0: (Runner) stopped. Lost connection to device.`

fangwy avatar Jun 14 '22 08:06 fangwy

跑哪个demo出现的?

c1avie avatar Jun 16 '22 02:06 c1avie

跑哪个demo出现的?

非demo实际项目做通话时出现的,就是通话时双方挂断跟接通同时接通方进房后退出出现的

fangwy avatar Jun 16 '22 05:06 fangwy

先不要调用destroySharedInstance试试看

c1avie avatar Jun 16 '22 12:06 c1avie

收到,暂时不调用destroySharedInstance是不闪退了,等待更新

fangwy avatar Jun 17 '22 08:06 fangwy

好的,这里可能是调用时机不对导致的,sdk我抽空优化下

c1avie avatar Jun 20 '22 06:06 c1avie

我TRTC 2.3.4也是8P闪退,安卓没问题,老哥快解决一下吧

891806797 avatar Aug 16 '22 04:08 891806797

调用时机这里,sdk已经优化,可以使用最新版本

c1avie avatar Sep 20 '22 11:09 c1avie