-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release时anr及其频繁 #3019
Comments
不是很理解问题出在哪里 |
|
是不是释放的时候,handler卡住ui线程了 |
ijkplayer#3456 |
当连接入一个无法上网的wifi后这个情况会必现,然而无法将release放到子线程中执行,然后想通过判断网络状态去切换内核到exo减缓UI卡顿问题,效果不太理想,请问有解决的办法不?谢谢 |
ijkplayer弱网释放的问题我是通过ip拉流解决的,也就是先手动或使用第三方在子线程中解析dns,替换url中host并设置header: |
大概率是销毁surface在先 |
EXO2 在2.8+版本有个ANR |
|
1 |
Up Code主, 我也出现了ANR. 我review了ANR issue挺多的,大于是release造成的,从2019就有anr问题 能否设计一个合理的线程管理接口, 由调用的人控制,而非主线程. #00 pc 0x89ccc libc.so (syscall + 28) |
12608-25 20:33:58.349 17017 17017 D IJKMEDIA: ijkmp_set_android_surface(surface=0x0) 调用GSYVideoManager.releaseAllVideos();日志跟踪 @CarGuo 可以看出来出现ANR的原因么 |
@itsgm 没看出来,看起来就是退出播放页的时候,触发了一次 setSurface null,然后 release,ijk 内部也会调用一次 surface null ,之后 message_loop exit |
释放的时候出现Anr, 使用的是exo
Huawei Y6II, Huawei P8 青春版, Motorola moto g(6) play,
Motorola Moto X Play,Motorola Moto G(4) Plus,Motorola Moto G4 Play,
Sony Xperia X Compact
implementation 'com.shuyu:gsyVideoPlayer-java:7.1.4'
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.1.4'
The text was updated successfully, but these errors were encountered: