HarmonyOS 鸿蒙Next ArkUI Inspector在beta1上无法使用,一连上app就退出
HarmonyOS 鸿蒙Next ArkUI Inspector在beta1上无法使用,一连上app就退出
DevEco studio版本:
DevEco Studio NEXT Developer Beta1
Build #DS-233.14475.28.36.503402
Build Version: 5.0.3.402, built on June 16, 2024
Runtime version: 17.0.10+1-b1087.17 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.2.1
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 10
Metal Rendering is ON
Registry:
idea.plugins.compatible.build=IC-233.14475.28
Non-Bundled Plugins:
com.tabnine.TabNine (1.111.0)
com.intellij.ideolog (222.3.2.0)
com.intellij.marketplace (233.14475.74)
zielu.gittoolbox (500.2.9+233)
izhangzhihao.rainbow.brackets (2023.3.7)
使用arkui inspector连接上app进程后,app进程直接退出了,模拟器和真机都遇到了这个问题,系统版本都是beta1
堆栈异常:
1
Signal 11(SIGSEGV), code 1(SEGV_MAPERR)
2
Crash message: probably caused by NULL pointer dereference
3
#00 pc 0000000000000000 Not mapped
4
#01 pc 00000000010a6858 /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::ConnectServerManager::SendInspector(std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&)+232)(70b274036121c3be99b836f3b5622ec4)
5
#02 pc 000000000007197c /system/lib64/ndk/libffrt.so(ffrt::CPUEUTask::Execute()+148)(05ca8833fa383ecaf72cb35485d779e0)
6
#03 pc 000000000004c670 /system/lib64/ndk/libffrt.so(CoStartEntry(void*)+152)(05ca8833fa383ecaf72cb35485d779e0)
7
========SubmitterStacktrace========
8
#00 pc 0000000000077b54 /system/lib64/ndk/libffrt.so(ffrt::FFRTCollectAsyncStack()+172)(05ca8833fa383ecaf72cb35485d779e0)
9
#01 pc 0000000000046e04 /system/lib64/ndk/libffrt.so(ffrt::SDependenceManager::onSubmit(bool, void*&, ffrt_function_header_t*, ffrt_deps_t const*, ffrt_deps_t const*, ffrt::task_attr_private const*)+480)(05ca8833fa383ecaf72cb35485d779e0)
10
#02 pc 000000000003a670 /system/lib64/ndk/libffrt.so(ffrt_submit_base+132)(05ca8833fa383ecaf72cb35485d779e0)
11
#03 pc 00000000000035cc /system/lib64/libframe_trace_intf.z.so(FRAME_TRACE::TraceAndExecute(std::__h::function<void ()>&&, FRAME_TRACE::TraceType) (.cfi)+216)(0f51468c040642d7cb5ada8ed999979c)
12
#04 pc 00000000007fa4dc /system/lib64/platformsdk/libace_compatible.z.so(OHOS::Ace::BackgroundTaskExecutor::PostTask(std::__h::function<void ()>&&, OHOS::Ace::BgTaskPriority)+192)(70b274036121c3be99b836f3b5622ec4)
13
#05 pc 00000000022795e4 /system/lib64/platformsdk/libace_compatible.z.so(std::__h::__function::__func<OHOS::Ace::LayoutInspector::CreateLayoutInfo(int)::$_6, std::__h::allocator<OHOS::Ace::LayoutInspector::CreateLayoutInfo(int)::$_6>, void ()>::operator()() (.9e1505e4b898940ac22f51d963a8ba73)+380)(70b274036121c3be99b836f3b5622ec4)
14
#06 pc 0000000000fed548 /system/lib64/platformsdk/libace_compatible.z.so(70b274036121c3be99b836f3b5622ec4)
15
#07 pc 0000000000015328 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::EventHandler::DistributeEvent(std::__h::unique_ptr<OHOS::AppExecFwk::InnerEvent, void (*)(OHOS::AppExecFwk::InnerEvent*)> const&)+1160)(6343d6e2f0c1d0e7b18ab44b76f24219)
16
#08 pc 0000000000023f7c /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*)>&)+344)(6343d6e2f0c1d0e7b18ab44b76f24219)
17
#09 pc 0000000000023854 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::(anonymous namespace)::EventRunnerImpl::Run()+876)(6343d6e2f0c1d0e7b18ab44b76f24219)
18
#10 pc 0000000000024d24 /system/lib64/chipset-pub-sdk/libeventhandler.z.so(OHOS::AppExecFwk::(anonymous namespace)::EventRunnerImpl::ThreadMain(std::__h::weak_ptr<OHOS::AppExecFwk::(anonymous namespace)::EventRunnerImpl> const&) (.cfi)+212)(6343d6e2f0c1d0e7b18ab44b76f24219)
19
#11 pc 000000000002525c /system/lib64/chipset-pub-sdk/libeventhandler.z.so(6343d6e2f0c1d0e7b18ab44b76f24219)
20
#12 pc 00000000001b8e58 /system/lib/ld-musl-aarch64.so.1(start+240)(5eee310927fa497814a95d97820a89bb)
针对HarmonyOS 鸿蒙Next ArkUI Inspector在beta1上无法使用,且一连上app就退出的问题,这可能是由于beta1版本尚不稳定或存在与特定应用不兼容的bug所致。以下是一些可能的解决步骤:
-
确保环境兼容性:检查DevEco Studio和HarmonyOS系统是否都更新到beta1的最新版本,且两者需完全兼容。
-
开启开发者模式与USB调试:在手机设置中开启开发者模式,并确保USB调试已启用。
-
检查USB连接:使用符合USB2.0标准的连接线,并尝试更换不同的USB数据口进行连接。
-
清理缓存与重启:尝试清理DevEco Studio的缓存,并重启IDE和手机,看是否能解决问题。
-
查看错误日志:分析IDE和手机的错误日志,看是否有具体的错误提示或异常信息,这有助于定位问题。
-
等待官方修复:由于beta1版本可能存在未知问题,建议持续关注华为开发者官网的更新动态,等待官方发布修复补丁。
如果问题依旧没法解决,请联系官网客服获取更专业的帮助。官网地址是:https://www.itying.com/category-93-b0.html ,他们将能提供更具体的指导和解决方案。