layer visibility is sometimes wrong

Description

This discussion started on the mailing list (https://lists.linuxfoundation.org/pipermail/automotive-discussions/2018-February/005682.html) and Kazumasa Mitsunari requested that I create an issue.

 

I've been trying to run the 5.0.1 demo on an i.MX6 with etnaviv. After
updating libdrm, gstreamer, mesa, meson and wayland to the versions in
OE rocko or master, wayland-ivi-extension to 2.1 and finally agl-
service-windowmanager-2017 to master it mostly works.

One problem I see is that the layer visibilities don't seem to work
consistently:
1. On some boots, the UI is invisible and only "LayerManagerControl set
surface 1 visibility" makes it show up.
2. Even on "good" boots, if I then start an app (which works fine), I
can't switch back to the home screen. Running "LayerManagerControl set
layer 1001 visibility 0" makes it visible again.

As requested by Emre Ucan, I collected some status output:

This is for the problem on startup:
https://gist.github.com/jluebbe/1e7d98ce258f486b209b9c2c7d91a307#file-startup-good-scene-txt
https://gist.github.com/jluebbe/1e7d98ce258f486b209b9c2c7d91a307#file-startup-bad-scene-txt

The difference is:
— startup-bad.scene.txt       2018-02-14 09:29:09.095766870 +0100
+++ startup-good.scene.txt      2018-02-14 09:29:09.131766636 +0100
@@ -24,13 +24,13 @@
 
         surface 1 (0x1)
         ---------------------------------------
-        - created by pid:       444
+        - created by pid:       442
         - original size:      x=1080, y=1920
         - destination region: x=0, y=0, w=1080, h=1920
         - source region:      x=0, y=0, w=1080, h=1920
         - opacity:            1
-        - visibility:         0
-        - frame counter:      2
+        - visibility:         1
+        - frame counter:      13
         - on layer:           1000(0x3e8)
 
     layer 1001 (0x3e9)

In the good case, I then clicked on the Music icon, which worked correctly:
https://gist.github.com/jluebbe/1e7d98ce258f486b209b9c2c7d91a307#file-music-good-scene-txt

Then I clicked on the Home icon, but the music player stayed visible:
https://gist.github.com/jluebbe/1e7d98ce258f486b209b9c2c7d91a307#file-back-to-homescreen-bad-scene-txt

Environment

5.0.1 modified for etnaviv on i.MX6

Attachments

2
  • 14 Feb 2018, 11:04 AM
  • 14 Feb 2018, 11:04 AM

is blocked by

Activity

Walt Miner 
April 2, 2018 at 10:29 PM

Close for EE 5.0.2 release

Walt Miner 
March 7, 2018 at 2:49 PM

I am a little confused. Which commit on eel branch matches up to https://gerrit.automotivelinux.org/gerrit/#/c/13535/  When I look through the git logs I do not see anything called "af_binder: upgrade". 

Jan Lübbe 
February 19, 2018 at 12:54 PM

I've tested your change and it fixes both issues for me.

Thanks!

jose bollo 
February 16, 2018 at 8:29 AM

I pushed the fix on EEL. See https://git.automotivelinux.org/src/app-framework-binder/log/?h=eel It should be avalaible now if you rebuild EEL.

For master, I made the changes on the top of my current work. I'll make more check before to push it in SOON!

knimitz 
February 16, 2018 at 1:07 AM

Thank you Jose-san. I'm sure your assumption is correct, because if the websocket connection is disconnected, hangup callback function will be called and the log will be outputted, but there is no message about hangup. So the session is closed.

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Contract ID

Time tracking

1d logged

Affects versions

Priority

Created February 14, 2018 at 10:53 AM
Updated April 2, 2018 at 10:29 PM
Resolved February 19, 2018 at 4:42 PM

Flag notifications