HarmonyOS 鸿蒙Next:打开应用时,生命周期超时
HarmonyOS 鸿蒙Next:打开应用时,生命周期超时
有遇到类似情况的吗? 该如何解决,设置了splashpage也不行。
Device info:OpenHarmony 3.2
Build info:OpenHarmony 3.2.9.1
Module name:com.example.smarthomeofharmonyos
Version:1.0.0
Pid:1979
Uid:20040003
Reason:LIFECYCLE_TIMEOUT
appfreeze: com.example.smarthomeofharmonyos LIFECYCLE_TIMEOUT at 20230321163056
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
DOMAIN:AAFWK
STRINGID:LIFECYCLE_TIMEOUT
TIMESTAMP:2023/03/21-16:30:56:992
PID:1979
UID:20040003
PACKAGE_NAME:com.example.smarthomeofharmonyos
PROCESS_NAME:com.example.smarthomeofharmonyos
MSG:ability:EntryAbility foreground timeout
************
start time: 2023/03/21-16:30:56:997
DOMAIN = AAFWK
EVENTNAME = LIFECYCLE_TIMEOUT
TIMESTAMP = 2023/03/21-16:30:56:992
PID = 1979
UID = 20040003
TID = 183
PACKAGE_NAME = com.example.smarthomeofharmonyos
PROCESS_NAME = com.example.smarthomeofharmonyos
eventLog_action = s,pb:0,cmd:c,cmd:m
eventLog_interval = 0
MSG = ability:EntryAbility foreground timeout
OpenStacktraceCatcher – pid==1979 packageName is com.example.smarthomeofharmonyos
:
Result: 0 ( no error )
Timestamp:2023-03-21 16:30:57.000
Pid:1979
Uid:20040003
Process name:com.example.smarthomeofharmonyos
Tid:1979, Name:com.example.sma
#00 pc 00000000000d8ab8 /vendor/aosp/system/lib64/libc.so(__epoll_pwait+8)
#01 pc 000000000000d280 /system/lib64/platformsdk/libeventhandler.z.so(OHOS::AppExecFwk::EpollIoWaiter::WaitFor(std::__h::unique_lock<std::__h::mutex>&, long)+240)
#02 pc 00000000000119c8 /system/lib64/platformsdk/libeventhandler.z.so(OHOS::AppExecFwk::EventQueue::WaitUntilLocked(std::__h::chrono::time_point<std::__h::chrono::steady_clock, std::__h::chrono::duration<long long, std::__h::ratio<1l, 1000000000l> > > const&, std::__h::unique_lock<std::__h::mutex>&)+92)
#03 pc 0000000000011904 /system/lib64/platformsdk/libeventhandler.z.so(OHOS::AppExecFwk::EventQueue::GetEvent()+116)
#04 pc 000000000001776c /system/lib64/platformsdk/libeventhandler.z.so
#05 pc 00000000000161fc /system/lib64/platformsdk/libeventhandler.z.so(OHOS::AppExecFwk::EventRunner::Run()+92)
#06 pc 0000000000074cd0 /system/lib64/libappkit_native.z.so(OHOS::AppExecFwk::MainThread::Start()+380)
#07 pc 0000000000012638 /system/bin/appspawn
#08 pc 0000000000012708 /system/bin/appspawn
#09 pc 0000000000011e20 /system/bin/appspawn
#10 pc 000000000002ad98 /system/lib64/libbegetutil.z.so
#11 pc 000000000002aa00 /system/lib64/libbegetutil.z.so
#12 pc 00000000000287fc /system/lib64/libbegetutil.z.so(ProcessEvent+112)
#13 pc 0000000000028324 /system/lib64/libbegetutil.z.so
#14 pc 0000000000011118 /system/bin/appspawn
#15 pc 000000000000f304 /system/bin/appspawn
#16 pc 00000000000822d4 /vendor/aosp/system/lib64/libc.so(__libc_init+96)
Tid:1980, Name:IPC_0_1980
#00 pc 00000000000d7ad4 /vendor/aosp/system/lib64/libc.so(__ioctl+4)
#01 pc 0000000000093824 /vendor/aosp/system/lib64/libc.so(ioctl+152)
#02 pc 000000000003d3a4 /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderConnector::WriteBinder(unsigned long, void)+40)
#03 pc 000000000003f138 /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderInvoker::TransactWithDriver(bool)+200)
#04 pc 000000000003f2c4 /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderInvoker::StartWorkLoop()+84)
#05 pc 000000000004003c /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderInvoker::JoinThread(bool)+48)
#06 pc 0000000000039eac /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::IPCWorkThread::ThreadHandler(void)+452)
#07 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#08 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1981, Name:IPC_1_1981
#00 pc 00000000000d7ad4 /vendor/aosp/system/lib64/libc.so(__ioctl+4)
#01 pc 0000000000093824 /vendor/aosp/system/lib64/libc.so(ioctl+152)
#02 pc 000000000003d3a4 /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderConnector::WriteBinder(unsigned long, void)+40)
#03 pc 000000000003f138 /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderInvoker::TransactWithDriver(bool)+200)
#04 pc 000000000003f2c4 /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderInvoker::StartWorkLoop()+84)
#05 pc 000000000004003c /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderInvoker::JoinThread(bool)+48)
#06 pc 0000000000039e8c /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::IPCWorkThread::ThreadHandler(void)+420)
#07 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#08 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1982, Name:SignalHandler
#00 pc 0000000000085d5c /vendor/aosp/system/lib64/libc.so(syscall+28)
#01 pc 000000000008ad40 /vendor/aosp/system/lib64/libc.so(__futex_wait_ex(void volatile, bool, int, bool, timespec const)+144)
#02 pc 00000000000eb174 /vendor/aosp/system/lib64/libc.so(pthread_cond_timedwait+140)
#03 pc 0000000000085548 /system/lib64/libc++.so(std::__h::condition_variable::__do_timed_wait(std::__h::unique_lock<std::__h::mutex>&, std::__h::chrono::time_point<std::__h::chrono::system_clock, std::__h::chrono::duration<long long, std::__h::ratio<1l, 1000000000l> > >)+108)
#04 pc 000000000001a5c8 /system/lib64/platformsdk/libeventhandler.z.so
#05 pc 000000000001a404 /system/lib64/platformsdk/libeventhandler.z.so(OHOS::AppExecFwk::NoneIoWaiter::WaitFor(std::__h::unique_lock<std::__h::mutex>&, long)+116)
#06 pc 00000000000119c8 /system/lib64/platformsdk/libeventhandler.z.so(OHOS::AppExecFwk::EventQueue::WaitUntilLocked(std::__h::chrono::time_point<std::__h::chrono::steady_clock, std::__h::chrono::duration<long long, std::__h::ratio<1l, 1000000000l> > > const&, std::__h::unique_lock<std::__h::mutex>&)+92)
#07 pc 0000000000011904 /system/lib64/platformsdk/libeventhandler.z.so(OHOS::AppExecFwk::EventQueue::GetEvent()+116)
#08 pc 00000000000175c4 /system/lib64/platformsdk/libeventhandler.z.so
#09 pc 0000000000015d1c /system/lib64/platformsdk/libeventhandler.z.so
#10 pc 0000000000018998 /system/lib64/platformsdk/libeventhandler.z.so
#11 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#12 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1983, Name:DfxWatchdog
#00 pc 0000000000085d5c /vendor/aosp/system/lib64/libc.so(syscall+28)
#01 pc 000000000008ad40 /vendor/aosp/system/lib64/libc.so(__futex_wait_ex(void volatile, bool, int, bool, timespec const)+144)
#02 pc 00000000000eb174 /vendor/aosp/system/lib64/libc.so(pthread_cond_timedwait+140)
#03 pc 0000000000085548 /system/lib64/libc++.so(std::__h::condition_variable::__do_timed_wait(std::__h::unique_lock<std::__h::mutex>&, std::__h::chrono::time_point<std::__h::chrono::system_clock, std::__h::chrono::duration<long long, std::__h::ratio<1l, 1000000000l> > >)+108)
#04 pc 000000000000da04 /system/lib64/libhicollie.z.so(OHOS::HiviewDFX::WatchdogInner::Start()+440)
#05 pc 000000000000e764 /system/lib64/libhicollie.z.so
#06 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#07 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1984, Name:IPC_2_1984
#00 pc 00000000000d7ad4 /vendor/aosp/system/lib64/libc.so(__ioctl+4)
#01 pc 0000000000093824 /vendor/aosp/system/lib64/libc.so(ioctl+152)
#02 pc 000000000003d3a4 /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderConnector::WriteBinder(unsigned long, void)+40)
#03 pc 000000000003f138 /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderInvoker::TransactWithDriver(bool)+200)
#04 pc 000000000003f2c4 /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderInvoker::StartWorkLoop()+84)
#05 pc 000000000004003c /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::BinderInvoker::JoinThread(bool)+48)
#06 pc 0000000000039e8c /system/lib64/chipset-pub-sdk/libipc_core.z.so(OHOS::IPCWorkThread::ThreadHandler(void)+420)
#07 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#08 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1985, Name:GC_WorkerThread
#00 pc 0000000000085d5c /vendor/aosp/system/lib64/libc.so(syscall+28)
#01 pc 0000000000173a7c /system/lib64/libark_jsruntime.so(panda::os::unix::memory::futex::ConditionVariable::Wait(panda::os::unix::memory::futex::Mutex)+412)
#02 pc 000000000044d0ec /system/lib64/libark_jsruntime.so
#03 pc 000000000044d274 /system/lib64/libark_jsruntime.so
#04 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#05 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1986, Name:GC_WorkerThread
#00 pc 0000000000085d5c /vendor/aosp/system/lib64/libc.so(syscall+28)
#01 pc 0000000000173a7c /system/lib64/libark_jsruntime.so(panda::os::unix::memory::futex::ConditionVariable::Wait(panda::os::unix::memory::futex::Mutex)+412)
#02 pc 000000000044d0ec /system/lib64/libark_jsruntime.so
#03 pc 000000000044d274 /system/lib64/libark_jsruntime.so
#04 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#05 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1987, Name:GC_WorkerThread
#00 pc 0000000000085d5c /vendor/aosp/system/lib64/libc.so(syscall+28)
#01 pc 0000000000173a7c /system/lib64/libark_jsruntime.so(panda::os::unix::memory::futex::ConditionVariable::Wait(panda::os::unix::memory::futex::Mutex)+412)
#02 pc 000000000044d0ec /system/lib64/libark_jsruntime.so
#03 pc 000000000044d274 /system/lib64/libark_jsruntime.so
#04 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#05 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1988, Name:GC_WorkerThread
#00 pc 0000000000085d5c /vendor/aosp/system/lib64/libc.so(syscall+28)
#01 pc 0000000000173a7c /system/lib64/libark_jsruntime.so(panda::os::unix::memory::futex::ConditionVariable::Wait(panda::os::unix::memory::futex::Mutex)+412)
#02 pc 000000000044d0ec /system/lib64/libark_jsruntime.so
#03 pc 000000000044d274 /system/lib64/libark_jsruntime.so
#04 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#05 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1989, Name:EventRunner#1
#00 pc 00000000000d8ab8 /vendor/aosp/system/lib64/libc.so(__epoll_pwait+8)
#01 pc 000000000000d280 /system/lib64/platformsdk/libeventhandler.z.so(OHOS::AppExecFwk::EpollIoWaiter::WaitFor(std::__h::unique_lock<std::__h::mutex>&, long)+240)
#02 pc 00000000000119c8 /system/lib64/platformsdk/libeventhandler.z.so(OHOS::AppExecFwk::EventQueue::WaitUntilLocked(std::__h::chrono::time_point<std::__h::chrono::steady_clock, std::__h::chrono::duration<long long, std::__h::ratio<1l, 1000000000l> > > const&, std::__h::unique_lock<std::__h::mutex>&)+92)
#03 pc 0000000000011904 /system/lib64/platformsdk/libeventhandler.z.so(OHOS::AppExecFwk::EventQueue::GetEvent()+116)
#04 pc 000000000001776c /system/lib64/platformsdk/libeventhandler.z.so
#05 pc 0000000000015d1c /system/lib64/platformsdk/libeventhandler.z.so
#06 pc 0000000000018998 /system/lib64/platformsdk/libeventhandler.z.so
#07 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#08 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1990, Name:com.example.sma
#00 pc 00000000000d8654 /vendor/aosp/system/lib64/libc.so(recvfrom+4)
#01 pc 0000000000004044 /system/lib64/libhdc_register.z.so(OHOS::Ace::HdcJdwpSimulator::Connect()+656)
#02 pc 0000000000003238 /system/lib64/libhdc_register.z.so(OHOS::Ace::HdcConnectRun(void)+276)
#03 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#04 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1991, Name:com.example.sma
#00 pc 00000000000d85d4 /vendor/aosp/system/lib64/libc.so(__accept4+4)
#01 pc 00000000000046b0 /vendor/aosp/system/lib64/libnetd_client.so
#02 pc 0000000000089b94 /vendor/aosp/system/lib64/libc.so(accept4+44)
#03 pc 000000000002e8c4 /system/lib64/libconnectserver_debugger.z.so(boost::asio::detail::socket_ops::sync_accept(int, unsigned char, sockaddr, unsigned long, boost::system::error_code&)+208)
#04 pc 000000000002e678 /system/lib64/libconnectserver_debugger.z.so
#05 pc 00000000000268ac /system/lib64/libconnectserver_debugger.z.so
#06 pc 00000000000259e4 /system/lib64/libconnectserver_debugger.z.so(OHOS::Ace::ConnectServer::RunServer()+472)
#07 pc 0000000000021ccc /system/lib64/libconnectserver_debugger.z.so(OHOS::Ace::HandleDebugManager(void)+16)
#08 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#09 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(__start_thread+64)
Tid:1992, Name:com.example.sma
#00 pc 00000000000d85d4 /vendor/aosp/system/lib64/libc.so(__accept4+4)
#01 pc 00000000000046b0 /vendor/aosp/system/lib64/libnetd_client.so
#02 pc 0000000000089b94 /vendor/aosp/system/lib64/libc.so(accept4+44)
#03 pc 000000000000e2fc /system/lib64/libark_debugger.z.so(OHOS::ArkCompiler::Toolchain::WebSocket::ConnectUnixWebSocket()+112)
#04 pc 000000000000c3f8 /system/lib64/libark_debugger.z.so(OHOS::ArkCompiler::Toolchain::WsServer::RunServer()+416)
#05 pc 000000000000b750 /system/lib64/libark_debugger.z.so
#06 pc 00000000000ebe30 /vendor/aosp/system/lib64/libc.so(__pthread_start(void)+264)
#07 pc 000000000008b7b0 /vendor/aosp/system/lib64/libc.so(start_thread+64)
PeerBinderCatcher – pid==1979 layer == 0
:
/proc/transaction_proc : file isn’t exists
Task stopped when running catcher:PeerBinderCatcher – pid==1979 layer == 0
, Reason:Log catcher not successful
CommandCatcher – pid==1979 packageName is com.example.smarthomeofharmonyos
:
Catcher log total time is 1346ms
好的 谢谢 我试一下
有要学HarmonyOS AI的同学吗,联系我:https://www.itying.com/goods-1206.html
找HarmonyOS工作还需要会Flutter的哦,有需要Flutter教程的可以学学大地老师的教程,很不错,B站免费学的哦:https://www.bilibili.com/video/BV1S4411E7LY/?p=17
针对HarmonyOS 鸿蒙Next打开应用时生命周期超时的问题,这通常与应用的前台处理时间超过系统设定阈值有关。建议检查应用的启动逻辑和前台处理任务,确保应用能在合理时间内完成初始化并响应系统事件。同时,优化应用的性能,减少不必要的计算和资源消耗。如果问题依旧没法解决,请加我微信,我的微信是itying888,以便进一步分析和提供帮助。