LiteAVSDK / Player_iOS

Super player for iOS...
https://trtc.io/
1.11k stars 226 forks source link

在网络不好的时候会崩溃!!! #260

Closed helloWotu closed 2 years ago

helloWotu commented 3 years ago

在子线程中调用了UI方法,然后崩溃了。

demo崩溃
Tencent-Alice commented 3 years ago

您好,关于您的问题,您的奔溃问题这边需要您通过断点的方式定位以下奔溃代码的位置,方便进一步定位问题 技术问题 欢迎交流 q2562367495 注明来意

helloWotu commented 3 years ago

您好,关于您的问题,您的奔溃问题这边需要您通过断点的方式定位以下奔溃代码的位置,方便进一步定位问题 技术问题 欢迎交流 q2562367495 注明来意

我加了你了,log日志和崩溃堆栈都发你们了,你就问了一下我是不是企业用户,然后就不理我了。。。。。

haiwei-Lee commented 3 years ago

设备:iPhone12 iOS14.4

SDK版本: TXLiteAVSDK_Player (8.9.10361),SuperPlayer 8.8

操作步骤:

1.(最好在弱网情况下)在视频未加载完成之前,暂停
2.退入后台
3.开启飞行模式,断开网络
4.热启动,点击播放 
5.产生崩溃(100%)

崩溃日志如下:

2021-08-04 11:36:56.357261+0800 [1169:590485] -[SuperPlayerView pause]
2021-08-04 11:36:56.357509+0800 [1169:590485] TXLiteAVSDK:IJK: pause
2021-08-04 11:36:56.357546+0800 [1169:590485] [I][TXCIJKPlayer.m, pause, 491]:IJK: pause

================================================================= Main Thread Checker: UI API called on a background thread: -[UIApplication setIdleTimerDisabled:] PID: 1169, TID: 591226, Thread name: ijk_threadpool, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 Backtrace: 4 0x00000001089ac898 -[TXIJKMediaModule updateIdleTimer] + 148 5 0x00000001089a6090 -[TXIJKFFMoviePlayerController setScreenOn:] + 64 6 0x00000001089a693c -[TXIJKFFMoviePlayerController shutdown] + 80 7 0x0000000108974944 -[TXCIJKPlayer stop] + 320 8 0x0000000108976e54 -[TXCIJKPlayer invoke:attributes:] + 348 9 0x00000001089a5b10 ijkff_inject_callback + 3668 10 0x0000000108a3a138 qc_av_application_on_dns_did_resolve + 124 11 0x0000000108983124 ijkio_cache_io_open + 44 12 0x0000000108983484 ijkio_cache_task + 564 13 0x000000010897ad98 ijk_threadpool_thread + 120 14 libsystem_pthread.dylib 0x00000001f1edbcb0 _pthread_start + 320 15 libsystem_pthread.dylib 0x00000001f1ee4778 thread_start + 8 2021-08-04 11:36:56.378227+0800 [1169:591226] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication setIdleTimerDisabled:] PID: 1169, TID: 591226, Thread name: ijk_threadpool, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 Backtrace: 4 0x00000001089ac898 -[TXIJKMediaModule updateIdleTimer] + 148 5 0x00000001089a6090 -[TXIJKFFMoviePlayerController setScreenOn:] + 64 6 0x00000001089a693c -[TXIJKFFMoviePlayerController shutdown] + 80 7 0x0000000108974944 -[TXCIJKPlayer stop] + 320 8 0x0000000108976e54 -[TXCIJKPlayer invoke:attributes:] + 348 9 0x00000001089a5b10 ijkff_inject_callback + 3668 10 0x0000000108a3a138 qc_av_application_on_dns_did_resolve + 124 11 0x0000000108983124 ijkio_cache_io_open + 44 12 0x0000000108983484 ijkio_cache_task + 564 13 0x000000010897ad98 ijk_threadpool_thread + 120 14 libsystem_pthread.dylib 0x00000001f1edbcb0 _pthread_start + 320 15 libsystem_pthread.dylib 0x00000001f1ee4778 thread_start + 8 2021-08-04 11:37:07.607874+0800 [1169:590747] XPC connection interrupted 2021-08-04 11:37:07.611422+0800 [1169:591226] *** Assertion failure in -[FBSSerialQueue assertBarrierOnQueue], FBSSerialQueue.m:127 (lldb)

haiwei-Lee commented 3 years ago

在子线程中调用了UI方法,然后崩溃了。

demo崩溃

出现同样的崩溃信息,请问大佬可有解决方案?

Why51982 commented 3 years ago

同样遇到类似的问题,有大佬有解决方案么?

helloWotu commented 3 years ago

同样遇到类似的问题,有大佬有解决方案么?

她让你加QQ,你加一下试试,你有办法解决没。

helloWotu commented 3 years ago

设备:iPhone12 iOS14.4

SDK版本: TXLiteAVSDK_Player (8.9.10361),SuperPlayer 8.8

操作步骤:

1.(最好在弱网情况下)在视频未加载完成之前,暂停
2.退入后台
3.开启飞行模式,断开网络
4.热启动,点击播放 
5.产生崩溃(100%)

崩溃日志如下:

2021-08-04 11:36:56.357261+0800 [1169:590485] -[SuperPlayerView pause]
2021-08-04 11:36:56.357509+0800 [1169:590485] TXLiteAVSDK:IJK: pause
2021-08-04 11:36:56.357546+0800 [1169:590485] [I][TXCIJKPlayer.m, pause, 491]:IJK: pause

================================================================= Main Thread Checker: UI API called on a background thread: -[UIApplication setIdleTimerDisabled:] PID: 1169, TID: 591226, Thread name: ijk_threadpool, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 Backtrace: 4 0x00000001089ac898 -[TXIJKMediaModule updateIdleTimer] + 148 5 0x00000001089a6090 -[TXIJKFFMoviePlayerController setScreenOn:] + 64 6 0x00000001089a693c -[TXIJKFFMoviePlayerController shutdown] + 80 7 0x0000000108974944 -[TXCIJKPlayer stop] + 320 8 0x0000000108976e54 -[TXCIJKPlayer invoke:attributes:] + 348 9 0x00000001089a5b10 ijkff_inject_callback + 3668 10 0x0000000108a3a138 qc_av_application_on_dns_did_resolve + 124 11 0x0000000108983124 ijkio_cache_io_open + 44 12 0x0000000108983484 ijkio_cache_task + 564 13 0x000000010897ad98 ijk_threadpool_thread + 120 14 libsystem_pthread.dylib 0x00000001f1edbcb0 _pthread_start + 320 15 libsystem_pthread.dylib 0x00000001f1ee4778 thread_start + 8 2021-08-04 11:36:56.378227+0800 [1169:591226] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication setIdleTimerDisabled:] PID: 1169, TID: 591226, Thread name: ijk_threadpool, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 Backtrace: 4 0x00000001089ac898 -[TXIJKMediaModule updateIdleTimer] + 148 5 0x00000001089a6090 -[TXIJKFFMoviePlayerController setScreenOn:] + 64 6 0x00000001089a693c -[TXIJKFFMoviePlayerController shutdown] + 80 7 0x0000000108974944 -[TXCIJKPlayer stop] + 320 8 0x0000000108976e54 -[TXCIJKPlayer invoke:attributes:] + 348 9 0x00000001089a5b10 ijkff_inject_callback + 3668 10 0x0000000108a3a138 qc_av_application_on_dns_did_resolve + 124 11 0x0000000108983124 ijkio_cache_io_open + 44 12 0x0000000108983484 ijkio_cache_task + 564 13 0x000000010897ad98 ijk_threadpool_thread + 120 14 libsystem_pthread.dylib 0x00000001f1edbcb0 _pthread_start + 320 15 libsystem_pthread.dylib 0x00000001f1ee4778 thread_start + 8 2021-08-04 11:37:07.607874+0800 [1169:590747] XPC connection interrupted 2021-08-04 11:37:07.611422+0800 [1169:591226] *** Assertion failure in -[FBSSerialQueue assertBarrierOnQueue], FBSSerialQueue.m:127 (lldb)

大佬解决了没哦。

haiwei-Lee commented 3 years ago

设备:iPhone12 iOS14.4

SDK版本: TXLiteAVSDK_Player (8.9.10361),SuperPlayer 8.8

操作步骤:

1.(最好在弱网情况下)在视频未加载完成之前,暂停
2.退入后台
3.开启飞行模式,断开网络
4.热启动,点击播放 
5.产生崩溃(100%)

崩溃日志如下:

2021-08-04 11:36:56.357261+0800 [1169:590485] -[SuperPlayerView pause]
2021-08-04 11:36:56.357509+0800 [1169:590485] TXLiteAVSDK:IJK: pause
2021-08-04 11:36:56.357546+0800 [1169:590485] [I][TXCIJKPlayer.m, pause, 491]:IJK: pause

================================================================= Main Thread Checker: UI API called on a background thread: -[UIApplication setIdleTimerDisabled:] PID: 1169, TID: 591226, Thread name: ijk_threadpool, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 Backtrace: 4 0x00000001089ac898 -[TXIJKMediaModule updateIdleTimer] + 148 5 0x00000001089a6090 -[TXIJKFFMoviePlayerController setScreenOn:] + 64 6 0x00000001089a693c -[TXIJKFFMoviePlayerController shutdown] + 80 7 0x0000000108974944 -[TXCIJKPlayer stop] + 320 8 0x0000000108976e54 -[TXCIJKPlayer invoke:attributes:] + 348 9 0x00000001089a5b10 ijkff_inject_callback + 3668 10 0x0000000108a3a138 qc_av_application_on_dns_did_resolve + 124 11 0x0000000108983124 ijkio_cache_io_open + 44 12 0x0000000108983484 ijkio_cache_task + 564 13 0x000000010897ad98 ijk_threadpool_thread + 120 14 libsystem_pthread.dylib 0x00000001f1edbcb0 _pthread_start + 320 15 libsystem_pthread.dylib 0x00000001f1ee4778 thread_start + 8 2021-08-04 11:36:56.378227+0800 [1169:591226] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication setIdleTimerDisabled:] PID: 1169, TID: 591226, Thread name: ijk_threadpool, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 Backtrace: 4 0x00000001089ac898 -[TXIJKMediaModule updateIdleTimer] + 148 5 0x00000001089a6090 -[TXIJKFFMoviePlayerController setScreenOn:] + 64 6 0x00000001089a693c -[TXIJKFFMoviePlayerController shutdown] + 80 7 0x0000000108974944 -[TXCIJKPlayer stop] + 320 8 0x0000000108976e54 -[TXCIJKPlayer invoke:attributes:] + 348 9 0x00000001089a5b10 ijkff_inject_callback + 3668 10 0x0000000108a3a138 qc_av_application_on_dns_did_resolve + 124 11 0x0000000108983124 ijkio_cache_io_open + 44 12 0x0000000108983484 ijkio_cache_task + 564 13 0x000000010897ad98 ijk_threadpool_thread + 120 14 libsystem_pthread.dylib 0x00000001f1edbcb0 _pthread_start + 320 15 libsystem_pthread.dylib 0x00000001f1ee4778 thread_start + 8 2021-08-04 11:37:07.607874+0800 [1169:590747] XPC connection interrupted 2021-08-04 11:37:07.611422+0800 [1169:591226] *** Assertion failure in -[FBSSerialQueue assertBarrierOnQueue], FBSSerialQueue.m:127 (lldb)

大佬解决了没哦。

已反馈至腾讯相关技术,回复是:已经定位问题,新版本修复。

Why51982 commented 3 years ago

设备:iPhone12 iOS14.4

SDK版本: TXLiteAVSDK_Player (8.9.10361),SuperPlayer 8.8

操作步骤:

1.(最好在弱网情况下)在视频未加载完成之前,暂停
2.退入后台
3.开启飞行模式,断开网络
4.热启动,点击播放 
5.产生崩溃(100%)

崩溃日志如下:

2021-08-04 11:36:56.357261+0800 [1169:590485] -[SuperPlayerView pause]
2021-08-04 11:36:56.357509+0800 [1169:590485] TXLiteAVSDK:IJK: pause
2021-08-04 11:36:56.357546+0800 [1169:590485] [I][TXCIJKPlayer.m, pause, 491]:IJK: pause

================================================================= Main Thread Checker: UI API called on a background thread: -[UIApplication setIdleTimerDisabled:] PID: 1169, TID: 591226, Thread name: ijk_threadpool, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 Backtrace: 4 0x00000001089ac898 -[TXIJKMediaModule updateIdleTimer] + 148 5 0x00000001089a6090 -[TXIJKFFMoviePlayerController setScreenOn:] + 64 6 0x00000001089a693c -[TXIJKFFMoviePlayerController shutdown] + 80 7 0x0000000108974944 -[TXCIJKPlayer stop] + 320 8 0x0000000108976e54 -[TXCIJKPlayer invoke:attributes:] + 348 9 0x00000001089a5b10 ijkff_inject_callback + 3668 10 0x0000000108a3a138 qc_av_application_on_dns_did_resolve + 124 11 0x0000000108983124 ijkio_cache_io_open + 44 12 0x0000000108983484 ijkio_cache_task + 564 13 0x000000010897ad98 ijk_threadpool_thread + 120 14 libsystem_pthread.dylib 0x00000001f1edbcb0 _pthread_start + 320 15 libsystem_pthread.dylib 0x00000001f1ee4778 thread_start + 8 2021-08-04 11:36:56.378227+0800 [1169:591226] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication setIdleTimerDisabled:] PID: 1169, TID: 591226, Thread name: ijk_threadpool, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 Backtrace: 4 0x00000001089ac898 -[TXIJKMediaModule updateIdleTimer] + 148 5 0x00000001089a6090 -[TXIJKFFMoviePlayerController setScreenOn:] + 64 6 0x00000001089a693c -[TXIJKFFMoviePlayerController shutdown] + 80 7 0x0000000108974944 -[TXCIJKPlayer stop] + 320 8 0x0000000108976e54 -[TXCIJKPlayer invoke:attributes:] + 348 9 0x00000001089a5b10 ijkff_inject_callback + 3668 10 0x0000000108a3a138 qc_av_application_on_dns_did_resolve + 124 11 0x0000000108983124 ijkio_cache_io_open + 44 12 0x0000000108983484 ijkio_cache_task + 564 13 0x000000010897ad98 ijk_threadpool_thread + 120 14 libsystem_pthread.dylib 0x00000001f1edbcb0 _pthread_start + 320 15 libsystem_pthread.dylib 0x00000001f1ee4778 thread_start + 8 2021-08-04 11:37:07.607874+0800 [1169:590747] XPC connection interrupted 2021-08-04 11:37:07.611422+0800 [1169:591226] *** Assertion failure in -[FBSSerialQueue assertBarrierOnQueue], FBSSerialQueue.m:127 (lldb)

大佬解决了没哦。

已反馈至腾讯相关技术,回复是:已经定位问题,新版本修复。

大佬,最新的9.0修复了没?

haiwei-Lee commented 2 years ago

设备:iPhone12 iOS14.4

SDK版本: TXLiteAVSDK_Player (8.9.10361),SuperPlayer 8.8

操作步骤:

1.(最好在弱网情况下)在视频未加载完成之前,暂停
2.退入后台
3.开启飞行模式,断开网络
4.热启动,点击播放 
5.产生崩溃(100%)

崩溃日志如下:

2021-08-04 11:36:56.357261+0800 [1169:590485] -[SuperPlayerView pause]
2021-08-04 11:36:56.357509+0800 [1169:590485] TXLiteAVSDK:IJK: pause
2021-08-04 11:36:56.357546+0800 [1169:590485] [I][TXCIJKPlayer.m, pause, 491]:IJK: pause

================================================================= Main Thread Checker: UI API called on a background thread: -[UIApplication setIdleTimerDisabled:] PID: 1169, TID: 591226, Thread name: ijk_threadpool, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 Backtrace: 4 0x00000001089ac898 -[TXIJKMediaModule updateIdleTimer] + 148 5 0x00000001089a6090 -[TXIJKFFMoviePlayerController setScreenOn:] + 64 6 0x00000001089a693c -[TXIJKFFMoviePlayerController shutdown] + 80 7 0x0000000108974944 -[TXCIJKPlayer stop] + 320 8 0x0000000108976e54 -[TXCIJKPlayer invoke:attributes:] + 348 9 0x00000001089a5b10 ijkff_inject_callback + 3668 10 0x0000000108a3a138 qc_av_application_on_dns_did_resolve + 124 11 0x0000000108983124 ijkio_cache_io_open + 44 12 0x0000000108983484 ijkio_cache_task + 564 13 0x000000010897ad98 ijk_threadpool_thread + 120 14 libsystem_pthread.dylib 0x00000001f1edbcb0 _pthread_start + 320 15 libsystem_pthread.dylib 0x00000001f1ee4778 thread_start + 8 2021-08-04 11:36:56.378227+0800 [1169:591226] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication setIdleTimerDisabled:] PID: 1169, TID: 591226, Thread name: ijk_threadpool, Queue name: com.apple.root.default-qos.overcommit, QoS: 0 Backtrace: 4 0x00000001089ac898 -[TXIJKMediaModule updateIdleTimer] + 148 5 0x00000001089a6090 -[TXIJKFFMoviePlayerController setScreenOn:] + 64 6 0x00000001089a693c -[TXIJKFFMoviePlayerController shutdown] + 80 7 0x0000000108974944 -[TXCIJKPlayer stop] + 320 8 0x0000000108976e54 -[TXCIJKPlayer invoke:attributes:] + 348 9 0x00000001089a5b10 ijkff_inject_callback + 3668 10 0x0000000108a3a138 qc_av_application_on_dns_did_resolve + 124 11 0x0000000108983124 ijkio_cache_io_open + 44 12 0x0000000108983484 ijkio_cache_task + 564 13 0x000000010897ad98 ijk_threadpool_thread + 120 14 libsystem_pthread.dylib 0x00000001f1edbcb0 _pthread_start + 320 15 libsystem_pthread.dylib 0x00000001f1ee4778 thread_start + 8 2021-08-04 11:37:07.607874+0800 [1169:590747] XPC connection interrupted 2021-08-04 11:37:07.611422+0800 [1169:591226] *** Assertion failure in -[FBSSerialQueue assertBarrierOnQueue], FBSSerialQueue.m:127 (lldb)

大佬解决了没哦。

已反馈至腾讯相关技术,回复是:已经定位问题,新版本修复。

大佬,最新的9.0修复了没?

最新版本貌似已经修复,可以关注一下

tgitpushping commented 2 years ago

使用10.*版本,这种问题都不复存在了