Skip to content
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

setProgress调用造成ANR #2614

Open
coolstar1204 opened this issue Dec 9, 2024 · 0 comments
Open

setProgress调用造成ANR #2614

coolstar1204 opened this issue Dec 9, 2024 · 0 comments
Assignees

Comments

@coolstar1204
Copy link

【版本信息】

4.2.100

【平台信息】

Android 原生

【预期的表现】

加载一个PAG文件后,特定逻辑下,只设置progress,展示首帧图片。不进行play播放

【实际的情况】

`anr time : 1733726988112011 ms
suspend all histogram: Sum: 2.337ms 99% C.I. 1us-313.200us Avg: 41us Max: 328us
DALVIK THREADS (178):
"main" prio=5 tid=1 Native
| group="main" sCount=1 ucsCount=0 flags=1 obj=0x736d0408 self=0xb4000072e7842c00
| sysTid=7110 nice=0 cgrp=foreground sched=0/0 handle=0x739abe14f8
| state=S schedstat=( 60454649696 9492469439 75826 ) utm=4163 stm=1882 core=2 HZ=100
| stack=0x7fef0d0000-0x7fef0d2000 stackSize=8188KB
| held mutexes=
native: #00 pc 000902fc /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28) (BuildId: 84a42637b3a421b801818f5793418fca)
native: #1 pc 000950d0 /apex/com.android.runtime/lib64/bionic/libc.so (__futex_wait_ex+144) (BuildId: 84a42637b3a421b801818f5793418fca)
native: #2 pc 00103268 /apex/com.android.runtime/lib64/bionic/libc.so (NonPI::MutexLockWithTimeout+328) (BuildId: 84a42637b3a421b801818f5793418fca)
native: #3 pc 00218654 /data/app/~~MAipB9hyLmq7z7dDtNMgNg==/cn.kuwo.player-wU95TOjkhgHh3Filr4fhJA==/lib/arm64/libpag.so (???) (BuildId: cd4ab68341f372634220a1af5a0fff348a052e72)
native: #4 pc 0009ca1c /data/app/~~MAipB9hyLmq7z7dDtNMgNg==/cn.kuwo.player-wU95TOjkhgHh3Filr4fhJA==/lib/arm64/libpag.so (pag::PAGPlayer::setProgress+76) (BuildId: cd4ab68341f372634220a1af5a0fff348a052e72)
native: #5 pc 000ffc6c /data/app/~~MAipB9hyLmq7z7dDtNMgNg==/cn.kuwo.player-wU95TOjkhgHh3Filr4fhJA==/lib/arm64/libpag.so (Java_org_libpag_PAGPlayer_setProgress+80) (BuildId: cd4ab68341f372634220a1af5a0fff348a052e72)
at org.libpag.PAGPlayer.setProgress(Native method)
at org.libpag.PAGView.setProgress(unavailable:5)

  • locked <0x057681aa> (a java.lang.Object)
    at cn.kuwo.ui.nowplay.widget.KwPAGView.setProgress(unavailable:0)
    at cn.kuwo.ui.online.adapter.ab.a$b.onAnimationEnd(unavailable:12)
    at org.libpag.PAGView.h(unavailable:28)
    at org.libpag.PAGView.f(unavailable:0)
    at org.libpag.PAGView$b.onAnimationEnd(unavailable:46)
    at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:711)
    at android.animation.Animator$AnimatorCaller$$ExternalSyntheticLambda1.call(unavailable:4)
    at android.animation.Animator.callOnList(Animator.java:669)
    at android.animation.Animator.notifyListeners(Animator.java:608)
    at android.animation.Animator.notifyEndListeners(Animator.java:633)
    at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1306)`

【Demo及附件】

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants