• Lv0
    粉丝0

积分2 / 贡献0

提问1答案被采纳0文章0

作者动态

    移植OpenHarmony_small系统时加载应用报错:no active ability when restart app: start launcher

    balckjojo 显示全部楼层 发表于 2024-6-5 11:04:54

    移植系统:OpenHarmony_small

    移植芯片:armv7

    移植环境:无display部分

    移植问题:hap应用加载报错

    报错信息如下:

     01-01 00:05:24.491 149 129 I 00000/PowerMgr: [screen_saver_handler.cpp] StartScreenSaver# Time to start screen saver
    01-01 00:05:24.491 149 129 I 00000/PowerMgr: [screen_saver_handler.cpp] GetAmsInterface# Succeed to get ams interface
    01-01 00:05:24.491 149 129 I 00000/PowerMgr: [screen_saver_handler.cpp] StartScreenSaver# Start screen saver: 1
    01-01 00:05:24.491 138 129 D 01300/abilityms: AbilityMgrHandler::StartAbility(179): start
    01-01 00:05:24.491 138 129 D 01300/abilityms: AbilityStartTask::Execute(41): start
    01-01 00:05:24.491 138 129 E 01300/abilityms: AbilityStackManager::GetTopPageAbility(80): topMissionStack is nullptr
    01-01 00:05:24.491 138 129 D 01300/abilityms: AbilityStackManager::GeneratePageAbility(36): launcher jumps to default or default jumps to launcher
    01-01 00:05:24.491 138 129 D 01300/abilityms: AbilityMissionRecord::AbilityMissionRecord(34): Constructor
    01-01 00:05:24.491 138 129 D 01300/abilityms: PageAbilityRecord::PageAbilityRecord(47): Constructor
    01-01 00:05:24.491 138 129 D 01300/abilityms: AbilityStartTask::Execute(73): topAbility is nullptr or not active
    01-01 00:05:24.491 138 129 I 01518/IPCRPC: Internal ipc request called
    01-01 00:05:24.491 138 129 D 01800/Samgr: Judge Auth<appspawn, (null)> ret:0
    01-01 00:05:24.491 138 129 I 01518/IPCRPC: ipc skeleton wait for proxy init
    01-01 00:05:24.491 138 129 I 01518/IPCRPC: current handle already exist
    01-01 00:05:24.491 138 129 I 01800/Samgr: Create remote sa proxy<appspawn, (null)>!
    01-01 00:05:24.492 157 131 I 00000/(null): [appspawn_service.c:130][appspawn] invoke.
    01-01 00:05:24.492 157 131 I 00000/(null): [appspawn_service.c:142][appspawn] invoke, msg<com.huawei.screensaver,1391569403905,101,101 0>
    01-01 00:05:24.492 157 131 I 00000/(null): [appspawn_server.c:217]AppSpawnProcessMsg id 100 0x0
    01-01 00:05:24.493 157 131 I 00000/(null): [appspawn_service.c:164][appspawn] invoke, reply pid 165, timeused 1645 ns.
    01-01 00:05:24.493 165 165 D 00000/(null): [appspawn_server.c:86]DoStartApp id 100 longProcNameLen 0
    01-01 00:05:24.493 165 165 E 00000/(null): [appspawn_process.c:92]SetKeepCapabilities
    01-01 00:05:24.493 165 165 E 00000/(null): [appspawn_process.c:105]SetUidGid 101 101
    01-01 00:05:24.494 138 129 D 01300/abilityms: AppManager::StartAppProcess(43): start app name:com.huawei.screensaver, token: 1391569403905
    01-01 00:05:24.494 165 165 E 00000/(null): [appspawn_process.c:134]SetCapabilities appProperty->message.capsCnt 0
    01-01 00:05:24.494 165 165 E 00000/(null): [appspawn_process.c:160]SetCapabilities appProperty->message.capsCnt 0
    01-01 00:05:24.494 165 165 I 00000/(null): [appspawn_server.c:187]App timeused 165 339 ns.
    01-01 00:05:24.494 165 165 I 00000/(null): [appspawn_process.c:166]AbilityMain
    01-01 00:05:24.494 165 165 I 00000/(null): [appspawn_process.c:170][appspawn] invoke, msg<com.huawei.screensaver,1391569403905,101,101>
    01-01 00:05:24.494 165 165 I 01518/IPCRPC: ResetIpc called
    01-01 00:05:24.494 165 165 I 00000/(null): AbilityThread::ThreadMain enter
    01-01 00:05:24.494 165 165 I 00000/(null): [appspawn_service.c:47][appspawn] get service name appspawn.
    01-01 00:05:24.494 165 165 I 01800/Samgr: Clear Client Registry!
    01-01 00:05:24.495 165 165 I 01800/Samgr: Initialize Client Registry!
    01-01 00:05:24.495 147 129 D 01800/Samgr: Judge Auth<abilityms, AmsFeature> ret:0
    01-01 00:05:24.495 165 165 I 01518/IPCRPC: ipc skeleton wait for proxy init
    01-01 00:05:24.495 165 165 E 01518/IPCRPC: first add death callback for handle = 1.
    01-01 00:05:24.495 165 165 I 01800/Samgr: Create remote sa proxy<abilityms, AmsFeature>!
    01-01 00:05:24.495 147 129 I 01300/abilityms: AbilityMgrFeature::Invoke(90): ams invoke called
    01-01 00:05:24.495 147 129 I 01518/IPCRPC: ipc skeleton wait for proxy init
    01-01 00:05:24.495 138 129 D 01300/abilityms: AbilityMgrHandler::AttachBundle(202): start
    01-01 00:05:24.495 138 129 D 01300/abilityms: AbilityWorker::AttachBundle(62): app token(1391569403905)
    01-01 00:05:24.495 138 129 D 01300/abilityms: AbilityAttachTask::Execute(33): start
    01-01 00:05:24.495 165 165 I 00000/(null): AbilityThread::ThreadMain start loop
    01-01 00:05:24.495 138 129 E 01518/IPCRPC: first add death callback for handle = 4.
    01-01 00:05:24.496 138 129 D 01300/abilityms: AbilityThreadClient::Initialize(68): token(1391569403905) bundleName(com.huawei.screensaver) success
    01-01 00:05:24.496 138 129 E 00000/(null): Perm file not exists.
    01-01 00:05:24.496 138 129 D 01300/abilityms: AbilityThreadClient::AppInitTransaction(113): start
    01-01 00:05:24.496 165 165 I 00000/(null): Start app init
    01-01 00:05:24.496 138 129 D 01300/abilityms: AbilityThreadClient::AbilityTransaction(90): start
    01-01 00:05:24.498 165 165 I 00000/(null): RegisterAbility ScreensaverAbility
    01-01 00:05:24.498 165 165 I 00000/(null): RegisterAbilitySlice ScreensaverAbilitySlice
    01-01 00:05:24.498 165 165 I 00000/(null): Set env ret: 0, App init end
    01-01 00:05:24.498 165 165 I 00000/(null): perform transact ability state to [3]
    01-01 00:05:24.498 165 165 I 00000/(null): Create ability success [ScreensaverAbility]
    01-01 00:05:24.498 165 165 I 00000/(null): Hal and UI init
    01-01 00:05:24.498 165 165 I 00000/(null): [appspawn_service.c:47][appspawn] get service name appspawn.
    01-01 00:05:24.498 147 129 D 01800/Samgr: Judge Auth<WMS, (null)> ret:0
    01-01 00:05:24.499 165 165 I 01518/IPCRPC: ipc skeleton wait for proxy init
    01-01 00:05:24.499 165 165 E 01518/IPCRPC: first add death callback for handle = 2.
    01-01 00:05:24.499 165 165 I 01800/Samgr: Create remote sa proxy<WMS, (null)>!
    01-01 00:05:24.499 135 132 I 01518/IPCRPC: ipc skeleton wait for proxy init
    01-01 00:05:24.499 135 132 E 01518/IPCRPC: first add death callback for handle = 2.
    01-01 00:05:24.501 165 165 I 00000/(null): Create UITaskPost thread
    01-01 00:05:24.501 165 165 I 00000/(null): Ability Init
    01-01 00:05:24.501 168 165 I 00000/(null): start UITaskPost loop
    01-01 00:05:24.501 165 165 I 00000/(null): Ability OnStart
    01-01 00:05:24.501 165 165 I 00000/(null): AbilitySlice Init
    01-01 00:05:24.534 165 165 I 00000/(null): AbilitySlice OnStart
    01-01 00:05:24.534 165 165 E 00000/(null): Should SetUIContent before slice active
    01-01 00:05:24.540 157 131 E 00000/(null): [main.c:42]SignalHandler sigPID 165.
    01-01 00:05:24.541 147 129 I 01518/IPCRPC: dead binder now call SendObituary.
    01-01 00:05:24.541 135 132 I 01518/IPCRPC: dead binder now call SendObituary.
    01-01 00:05:24.541 135 132 E 01518/IPCRPC: SA dead delete it, handle = 2.
    01-01 00:05:24.541 147 129 E 01518/IPCRPC: SA dead delete it, handle = 4.
    01-01 00:05:24.541 147 129 E 01300/abilityms: AbilityMgrFeature::AppDeathNotify(585): com.huawei.screensaver AppDeathNotify called
    01-01 00:05:24.541 138 129 D 01300/abilityms: AbilityMgrHandler::RestartApp(242): start com.huawei.screensaver
    01-01 00:05:24.541 138 129 D 01300/abilityms: AppRestartTask::Execute(30): start
    01-01 00:05:24.541 138 129 D 01300/abilityms: AbilityRecord::~PageAbilityRecord(68): Destructor
    01-01 00:05:24.541 138 129 D 01300/abilityms: AbilityMissionRecord::~AbilityMissionRecord(42): Destructor
    01-01 00:05:24.541 138 129 D 01300/abilityms: AppManager::RemoveAppRecord(81): remove process name:com.huawei.screensaver
    01-01 00:05:24.541 138 129 E 01300/abilityms: no active ability when restart app: start launcher
    01-01 00:05:24.541 138 129 D 01300/abilityms: AbilityMgrHandler::StartLauncher(167): start
    01-01 00:05:24.541 138 129 D 01300/abilityms: AbilityMgrHandler::StartAbility(179): start
    01-01 00:05:24.541 138 129 E 01300/abilityms: bms query not found: query bundle info failure
    01-01 00:05:24.541 138 129 E 01300/abilityms: no active ability when restart app: start launcher

    报错信息较多看不出是哪条报错导致无法启动 screen saver的hap。在没有图形显示的状态下是否支持UI图形的初始化,如果不支持的话可以选择关闭UI功能么。

    您尚未登录,无法参与评论,登录后可以:
    参与开源共建问题交流
    认同或收藏高质量问答
    获取积分成为开源共建先驱

    Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

    返回顶部