Applications must be tapped several times for their surface to show
Description
Environment
Activity

jose bollo February 5, 2019 at 7:30 AM
Thanks for that report.
IMHO the change of the binder has to be backported to FF.

knimitz February 5, 2019 at 2:11 AM
After change SRC_URI in af-binder recipe to 77bf8a30c07a4ab5690337ed362dae4414e590fb, this issue seems resolved.

knimitz January 24, 2019 at 11:14 AM
I looked the history of afb-daemon, and I found it changes the dispatch process of event loop.
I guess it relates this issue. If window manager has to change not to use sd_event_add_defer, please tell us.

knimitz January 24, 2019 at 11:08 AM
Hi, I received the same report.
I looked the code and found the sd_event with sd_event_add_defer isn't dispatched in the policy manager.
The event loop of bindings including window manager depends on the binder (afb-daemon).
do you have any idea ?

Jacobo Aragunde Pérez January 17, 2019 at 9:53 AM
More info, from the journal:
When I first click on an application that's already running, I see the message:
Jan 17 09:51:44 m3ulcb afbd-mixer@6.99[5904]: Surface mixer got showWindow
On the second click, I see all the following, and that's when the surface shows up:
Jan 17 09:52:13 m3ulcb afbd-mixer@6.99[5904]: Surface mixer got showWindow
Jan 17 09:52:13 m3ulcb afbd-mixer@6.99[5904]: Surface got syncDraw!
Jan 17 09:52:13 m3ulcb afbd-windowmanager-service@0.1[3926]: [1498843.663] [wm ERROR] [window_manager.cpp, api_activate_surface(), Line:289] >>> Request is rejected, due to the policy rejection of the request.
Jan 17 09:52:13 m3ulcb afbd-windowmanager-service@0.1[3926]: [1498843.730] [wm ERROR] [main.cpp, operator()(), Line:259] >>> Failed to set request
With a fresh guppy/master build, when I tap on an application on the homescreen (e.g. mixer), it doesn't show immediately. `afm-util ps` confirms that the application is running but the surface doesn't show up. Tapping again usually shows the application but sometimes I have to do it several times.
To go back to the homescreen, I have to tap the "launcher" icon on the top twice, too. And opening a new app, or going back to an open one, forces me to tap several times again.
Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-agl-linux"
MACHINE = "m3ulcb"
DISTRO = "poky-agl"
DISTRO_VERSION = "6.99.3+snapshot-20190116"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
SOC_FAMILY = "rcar-gen3:r8a7796"
meta-rcar-gen3 = "HEAD:5a8179db2274386c318591d1b693cd104286f7dd"
meta-rcar-gen3-adas = "HEAD:235b2160ca1e11afeda9f9ed017f715199720756"
meta-qt5 = "HEAD:d8b531530fa42b59aa0a5b123d87a30d749cbcc4"
meta-agl-profile-graphical-qt5
meta-agl-profile-graphical
meta-netboot = "HEAD:235b2160ca1e11afeda9f9ed017f715199720756"
meta-html5-framework
meta-hmi-framework
meta-audio-4a-framework = "HEAD:4a6461a2a52c842efe1b9df668809385ab657b2d"
meta-agl-demo = "HEAD:220104e57bdebd2d8e1b71c19c6f961fc9187a57"
meta-oe
meta-multimedia
meta-networking
meta-python
meta-filesystems = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
meta-agl-profile-core
meta-agl-distro
meta-agl-bsp = "HEAD:235b2160ca1e11afeda9f9ed017f715199720756"
meta-security = "HEAD:8f6969a775fa6afbf553e72ba83e71197780b2d8"
meta-perl = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
meta-security
meta-app-framework = "HEAD:235b2160ca1e11afeda9f9ed017f715199720756"
meta
meta-poky = "HEAD:68a612b7d31d270348ef5439d7f779c309bdb6ec"