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

anim引起的native crash #1017

Closed
tongzifang opened this issue Aug 19, 2022 · 2 comments
Closed

anim引起的native crash #1017

tongzifang opened this issue Aug 19, 2022 · 2 comments

Comments

@tongzifang
Copy link

XPopup版本
2.8.14

手机系统和型号
安卓tv Android 9,level 28

描述你的问题
pop的anim可能引起RenderThread的native crash,能否提供一个无动画的方法
下面是crash log:
1
#00 pc 0001ce72 /system/lib/libc.so (abort+61) [armeabi-v7a::0ab03097f7b50ae290834de3a56ac8a4]
2
#1 pc 00006dd5 /system/lib/liblog.so (__android_log_assert+156) [armeabi-v7a::f278633e7fc824abffbcfa008b1e9686]
3
#2 pc 00370c43 /system/lib/libhwui.so [armeabi-v7a::71173b478283866480b45f09377399c0]
4
#3 pc 000abd0f /system/lib/libhwui.so [armeabi-v7a::71173b478283866480b45f09377399c0]
5
#4 pc 0009bad5 /system/lib/libhwui.so [armeabi-v7a::71173b478283866480b45f09377399c0]
6
#5 pc 0009bfb9 /system/lib/libhwui.so [armeabi-v7a::71173b478283866480b45f09377399c0]
7
#6 pc 0009aec5 /system/lib/libhwui.so [armeabi-v7a::71173b478283866480b45f09377399c0]
8
#7 pc 00378b7b /system/lib/libhwui.so [armeabi-v7a::71173b478283866480b45f09377399c0]
9
#8 pc 0033e64f /system/lib/libhwui.so [armeabi-v7a::71173b478283866480b45f09377399c0]
10
#9 pc 000a3503 /system/lib/libhwui.so [armeabi-v7a::71173b478283866480b45f09377399c0]
11
#10 pc 0000c147 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+166) [armeabi-v7a::f9589727d4d1f6f48c90d8239b66c4f9]
12
#11 pc 00063c15 /system/lib/libc.so (_ZL15__pthread_startPv+22) [armeabi-v7a::0ab03097f7b50ae290834de3a56ac8a4]
13
#12 pc 0001e065 /system/lib/libc.so (__start_thread+22) [armeabi-v7a::0ab03097f7b50ae290834de3a56ac8a4]

java:

1
android.view.ThreadedRenderer.nBuildLayer(Native Method)
2
android.view.ThreadedRenderer.buildLayer(ThreadedRenderer.java:857)
3
android.view.View.buildLayer(View.java:18893)
4
android.view.ViewPropertyAnimator$2.run(ViewPropertyAnimator.java:780)
5
android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationStart(ViewPropertyAnimator.java:1078)
6
android.animation.Animator$AnimatorListener.onAnimationStart(Animator.java:536)
7
android.animation.ValueAnimator.notifyStartListeners(ValueAnimator.java:1013)
8
android.animation.ValueAnimator.startAnimation(ValueAnimator.java:1262)
9
android.animation.ValueAnimator.start(ValueAnimator.java:1064)
10
android.animation.ValueAnimator.start(ValueAnimator.java:1088)
11
android.view.ViewPropertyAnimator.startAnimation(ViewPropertyAnimator.java:904)
12
android.view.ViewPropertyAnimator.start(ViewPropertyAnimator.java:416)
13
com.lxj.xpopup.animator.TranslateAnimator.animateShow(TranslateAnimator.java:65)
14
com.lxj.xpopup.core.BasePopupView.doShowAnimation(BasePopupView.java:514)
15
com.lxj.xpopup.impl.FullScreenPopupView.doShowAnimation(FullScreenPopupView.java:66)
16
com.lxj.xpopup.core.BasePopupView$2.run(BasePopupView.java:246)
17
android.os.Handler.handleCallback(Handler.java:873)
18
android.os.Handler.dispatchMessage(Handler.java:99)
19
android.os.Looper.loop(Looper.java:193)
20
android.app.ActivityThread.main(ActivityThread.java:6670)
21
java.lang.reflect.Method.invoke(Native Method)
22
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
23
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

@tongzifang
Copy link
Author

我看了使用NoAnimation里面还是有一个alpha动画

@junixapp
Copy link
Owner

直接自定义一个Animation吧,实现方法保留空就行

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