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

PAGView.flush crash #2299

Closed
iGao101 opened this issue May 15, 2024 · 3 comments
Closed

PAGView.flush crash #2299

iGao101 opened this issue May 15, 2024 · 3 comments
Assignees

Comments

@iGao101
Copy link

iGao101 commented May 15, 2024

Which Version of libpag are you using?

libpag 4.2.100

What Platform are you on?

目前只在Android 14上出现

Expected Behavior

期待修复该问题

Actual Behavior

谷歌后台崩溃信息录入,暂无法复现,但是该崩溃触发次数较多,排名靠前,期望能给下可能得原因来排查一下。

Code Example

@iGao101
Copy link
Author

iGao101 commented May 15, 2024

Fatal Exception: java.lang.NullPointerException: Attempt to get length of null array
at java.util.ArrayList.toArray(ArrayList.java:405)
at android.animation.Animator.callOnList(Animator.java:665)
at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1645)
at android.animation.ValueAnimator.setCurrentFraction(ValueAnimator.java:771)
at android.animation.ValueAnimator.setCurrentPlayTime(ValueAnimator.java:734)
at org.libpag.PAGView.flush(PAGView.java:10)
at org.libpag.PAGView.o(PAGView.java:4)
at org.libpag.PAGView.b(PAGView.java:1)
at org.libpag.PAGView$g.handleMessage(PAGView.java:49)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.os.HandlerThread.run(HandlerThread.java:67)

@kevingpqi123
Copy link
Collaborator

这个是 Android 14 ValueAnimator 内部实现变更引起的, 内部缺少了部分容错,可以升级至 4.3.56,这个版本移除了对于 ValueAnimator setCurrentPlayTime方法的调用

@iGao101
Copy link
Author

iGao101 commented May 15, 2024

这个是 Android 14 ValueAnimator 内部实现变更引起的, 内部缺少了部分容错,可以升级至 4.3.56,这个版本移除了对于 ValueAnimator setCurrentPlayTime方法的调用

好的,感谢

@domchen domchen closed this as completed May 15, 2024
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

3 participants