HarmonyOS 鸿蒙Next RSAnimation 和AnimationUtils这几个类分别是做什么的?
HarmonyOS 鸿蒙Next RSAnimation 和AnimationUtils这几个类分别是做什么的?app会偶发性地报如下native层的错误,但是遍寻log都没有与app相关的地方。 希望相关的工作人员可以帮忙看看给点提示,是不是用了系统什么api导致的?动画?
#00 pc 0000000000085b24 /system/lib64/librender_service_client.z.so(OHOS::Rosen::RSAnimation::SetFinishCallback(std::__h::shared_ptr<OHOS::Rosen::AnimationFinishCallback> const&)+88)(f7fb1149ee3670a4f3ee220bed42d7eb)
#01 pc 0000000000096e60 /system/lib64/librender_service_client.z.so(OHOS::Rosen::RSImplicitAnimator::CloseImplicitAnimation()+1644)(f7fb1149ee3670a4f3ee220bed42d7eb)
#02 pc 000000000013c43c /system/lib64/librender_service_client.z.so(OHOS::Rosen::RSNode::CloseImplicitAnimation()+92)(f7fb1149ee3670a4f3ee220bed42d7eb)
#03 pc 0000000000aee870 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::AnimationUtils::CloseImplicitAnimation()+52)(8840d85de3ef74b812ca9a6e56b5dcdd)
#04 pc 0000000000b3afd0 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::NG::RosenRenderContext::TriggerPageTransition(OHOS::Ace::PageTransitionType, std::__h::function<void ()> const&)+2452)(8840d85de3ef74b812ca9a6e56b5dcdd)
#05 pc 00000000016d913c /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::NG::PagePattern::TriggerPageTransition(OHOS::Ace::PageTransitionType, std::__h::function<void ()> const&)+668)(8840d85de3ef74b812ca9a6e56b5dcdd)
#06 pc 00000000016dca28 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::NG::(anonymous namespace)::FirePageTransition(OHOS::Ace::RefPtr<OHOS::Ace::NG::FrameNode> const&, OHOS::Ace::PageTransitionType)+632)(8840d85de3ef74b812ca9a6e56b5dcdd)
#07 pc 00000000016dc754 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::NG::StageManager::StartTransition(OHOS::Ace::RefPtr<OHOS::Ace::NG::FrameNode> const&, OHOS::Ace::RefPtr<OHOS::Ace::NG::FrameNode> const&, OHOS::Ace::RouteType)+388)(8840d85de3ef74b812ca9a6e56b5dcdd)
#08 pc 00000000016dfb30 /system/lib64/platformsdk/libace_compatible.z.so(8840d85de3ef74b812ca9a6e56b5dcdd)
#09 pc 0000000000aa0c04 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::NG::UITaskScheduler::FlushAfterLayoutTask()+96)(8840d85de3ef74b812ca9a6e56b5dcdd)
#10 pc 0000000000aa0b80 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::NG::UITaskScheduler::FlushTask(bool)+216)(8840d85de3ef74b812ca9a6e56b5dcdd)
#11 pc 0000000000a81064 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::NG::PipelineContext::FlushUITasks(bool)+288)(8840d85de3ef74b812ca9a6e56b5dcdd)
#12 pc 0000000000a865a8 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::NG::PipelineContext::AnimateOnSafeAreaUpdate()+52)(8840d85de3ef74b812ca9a6e56b5dcdd)
#13 pc 0000000001d46e00 /system/lib64/platformsdk/libace_compatible.z.so(8840d85de3ef74b812ca9a6e56b5dcdd)
#14 pc 000000000095b190 /system/lib64/platformsdk/libace_compatible.z.so(8840d85de3ef74b812ca9a6e56b5dcdd)
#15 pc 000000000001bdb4 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::EventHandler::DistributeEvent(std::__h::unique_ptr<OHOS::AppExecFwk::InnerEvent, void (*)(OHOS::AppExecFwk::InnerEvent*)> const&)+1140)(8bb4fba1467dee44e41d0d0199f1e4d9)
#16 pc 000000000002d6a8 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::(anonymous namespace)::EventRunnerImpl::ExecuteEventHandler(std::__h::unique_ptr<OHOS::AppExecFwk::InnerEvent, void (*)(OHOS::AppExecFwk::InnerEvent*)>&)+348)(8bb4fba1467dee44e41d0d0199f1e4d9)
#17 pc 000000000002cf64 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::(anonymous namespace)::EventRunnerImpl::Run()+908)(8bb4fba1467dee44e41d0d0199f1e4d9)
#18 pc 0000000000030308 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::EventRunner::Run()+528)(8bb4fba1467dee44e41d0d0199f1e4d9)
#19 pc 00000000000aebb4 /system/lib64/platformsdk/libappkit_native.z.so(OHOS::AppExecFwk::MainThread::Start()+400)(86597fa70e3e423d170f27e0911bfbac)
#20 pc 0000000000004e34 /system/lib64/appspawn/appspawn/libappspawn_ace.z.so(RunChildProcessor(AppSpawnContent*, AppSpawnClient*)+568)(dd2ca1f08cb4bfd1411e66a36ca88644)
#21 pc 000000000000b9e4 /system/bin/appspawn(AppSpawnChild+576)(5d854d9cb7b4d6b81bb827491b8f24eb)
感谢解答,请问下SetFinishCallback是哪里的设置的?我代码里确实有用到NativeXComponent,但是没设置SetFinishCallback这个方法额.
在HarmonyOS(鸿蒙)系统中,RSAnimation
和 AnimationUtils
是两个与动画处理相关的类,它们在动画效果的创建和管理上扮演着不同的角色。
RSAnimation
类主要用于实现资源动画(Resource Animation)。它允许开发者通过定义动画资源文件(如XML文件)来创建复杂的动画效果,这些动画效果可以应用于界面元素上,如视图、控件等。RSAnimation
提供了一种声明式的方式来定义动画,使得动画的创建和管理更加直观和方便。
而 AnimationUtils
类则是一个工具类,它提供了一系列静态方法来辅助动画的创建和使用。这些方法通常用于从资源文件中加载动画资源,或者创建一些简单的动画实例。AnimationUtils
简化了动画资源的获取过程,使得开发者可以更加专注于动画效果的实现,而不是动画资源的加载和管理。
总的来说,RSAnimation
和 AnimationUtils
在HarmonyOS的动画系统中各有其独特的用途,它们共同为开发者提供了强大的动画处理能力。
如果问题依旧没法解决请联系官网客服,官网地址是:https://www.itying.com/category-93-b0.html