circularly broadcast application-list-changed event

Description

After added below contents into homescreen-service config.xml file, when using `afm-util remove xxx@version` to uninstall application, afm-main circularly broadcast application-list-changed event.

<license>APL 2.0</license> <param name="urn:AGL:permission:vshl-capabilities:navigation:public" value="required" /> </feature> <feature name="urn:AGL:widget:required-api"> <param name="vshl-capabilities" value="ws" /> </feature>

reference code:
homescreen-service
agl-service-voice-high-capabilities

log:

Jul 10 07:38:02 m3ulcb afbd-vshl-capabilities@0.1[3965]: WARNING: [API vshl-capabilities] CtlDispatchEvent: fail to find uid=afm-main/application-list-changed in action event section [/home/tted/Alexa/agl-service-voice-high-capabilities/app-controller/ctl-lib/ctl-event.c:49,CtrlDispatchApiEvent] Jul 10 07:38:02 m3ulcb afbd-vshl-capabilities@0.1[3965]: WARNING: [API vshl-capabilities] CtlDispatchEvent: fail to find uid=afm-main/application-list-changed in action event section [/home/tted/Alexa/agl-service-voice-high-capabilities/app-controller/ctl-lib/ctl-event.c:49,CtrlDispatchApiEvent] Jul 10 07:38:02 m3ulcb afbd-vshl-capabilities@0.1[3965]: WARNING: [API vshl-capabilities] CtlDispatchEvent: fail to find uid=afm-main/application-list-changed in action event section [/home/tted/Alexa/agl-service-voice-high-capabilities/app-controller/ctl-lib/ctl-event.c:49,CtrlDispatchApiEvent] Jul 10 07:38:02 m3ulcb afbd-vshl-capabilities@0.1[3965]: WARNING: [API vshl-capabilities] CtlDispatchEvent: fail to find uid=afm-main/application-list-changed in action event section [/home/tted/Alexa/agl-service-voice-high-capabilities/app-controller/ctl-lib/ctl-event.c:49,CtrlDispatchApiEvent] Jul 10 07:38:02 m3ulcb afbd-vshl-capabilities@0.1[3965]: WARNING: [API vshl-capabilities] CtlDispatchEvent: fail to find uid=afm-main/application-list-changed in action event section [/home/tted/Alexa/agl-service-voice-high-capabilities/app-controller/ctl-lib/ctl-event.c:49,CtrlDispatchApiEvent] Jul 10 07:38:02 m3ulcb afbd-vshl-capabilities@0.1[3965]: WARNING: [API vshl-capabilities] CtlDispatchEvent: fail to find uid=afm-main/application-list-changed in action event section [/home/tted/Alexa/agl-service-voice-high-capabilities/app-controller/ctl-lib/ctl-event.c:49,CtrlDispatchApiEvent] Jul 10 07:38:02 m3ulcb afbd-vshl-capabilities@0.1[3965]: WARNING: [API vshl-capabilities] CtlDispatchEvent: fail to find uid=afm-main/application-list-changed in action event section [/home/tted/Alexa/agl-service-voice-high-capabilities/app-controller/ctl-lib/ctl-event.c:49,CtrlDispatchApiEvent] Jul 10 07:38:02 m3ulcb afbd-vshl-capabilities@0.1[3965]: WARNING: [API vshl-capabilities] CtlDispatchEvent: fail to find uid=afm-main/application-list-changed in action event section [/home/tted/Alexa/agl-service-voice-high-capabilities/app-controller/ctl-lib/ctl-event.c:49,CtrlDispatchApiEvent] Jul 10 07:38:02 m3ulcb afbd-vshl-capabilities@0.1[3965]: WARNING: [API vshl-capabilities] CtlDispatchEvent: fail to find uid=afm-main/application-list-changed in action event section [/home/tted/Alexa/agl-service-voice-high-capabilities/app-controller/ctl-lib/ctl-event.c:49,CtrlDispatchApiEvent] Jul 10 07:38:02 m3ulcb afbd-vshl-capabilities@0.1[3965]: WARNING: [API vshl-capabilities] CtlDispatchEvent: fail to find uid=afm-main/application-list-changed in action event section [/home/tted/Alexa/agl-service-voice-high-capabilities/app-controller/ctl-lib/ctl-event.c:49,CtrlDispatchApiEvent]

Environment

None

Activity

Walt Miner 
July 30, 2019 at 9:38 PM

Close for HH 8.0.0 release

jose bollo 
July 17, 2019 at 7:16 AM

The issue is not relative to linked-list. It comes from the implementation of broadcast events that just propagate it.

As I wrote, the circular dependency of APIs is good to have even if it probably reveal an issue in decomposition of APIs. In the case of vshl/asr, we know that the current implementation can be improved by adding some API for removing this circular dependency.

I made a change that fix the issue. I'll clean it and submit it soon.

zhiqiang wang 
July 17, 2019 at 6:17 AM

In my case, delete vshl-capabilities depending on homescreen can solve this issue, but I was interesting in why "homescreen depends on vshl-capabilities that depends on homescreen" could influence af-main, it seems that a linked list has a loop.

jose bollo 
July 16, 2019 at 10:50 AM

homescreen depends on vshl-capabilities that depends on homescreen etc.

Should we forbid such loop? I'm not sure and would like to provide a solution for this kind of problem.

Fixed

Details

Assignee

Reporter

Labels

Contract ID

Affects versions

Priority

Created July 10, 2019 at 7:21 AM
Updated September 19, 2019 at 12:06 PM
Resolved July 25, 2019 at 7:33 AM

Flag notifications