Re: [agl-dev-community] afm-util start webapps-annex@0.0 => null

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bogdan,


Thanks very much for the tip.

As the agl-driver user, I am indeed able to get a non-null return code for the "afm-util start" command.

Unfortunately, unless I am missing something, it doesn't appear to actually start anything.

Here's what I did ...


raspberrypi4:~$ afm-util install /home/1001/annex.wgt 

{

  "added":"webapps-annex@0.0"

}


raspberrypi4:~$ afm-util install /home/1001/memory-match.wgt 

{

  "added":"webapps-memory-match@1.1"

}


raspberrypi4:~$ afm-util info webapps-annex@0.0

{

  "description":"Reversi/Othello",

  "name":"Annex",

  "shortname":"",

  "id":"webapps-annex@0.0",

  "version":"0.0.10",

  "author":"Todd Brandt <todd.e.brandt@xxxxxxxxx>",

  "author-email":"",

  "width":"",

  "height":"",

  "icon":"/var/local/lib/afm/applications/webapps-annex/0.0/icon_128.png",

  "http-port":30006

}


raspberrypi4:~$ afm-util info webapps-memory-match@1.1

{

  "description":"Memory match",

  "name":"MemoryMatch",

  "shortname":"",

  "id":"webapps-memory-match@1.1",

  "version":"1.1.7",

  "author":"Todd Brandt <todd.e.brandt@xxxxxxxxx>",

  "author-email":"",

  "width":"",

  "height":"",

  "icon":"/var/local/lib/afm/applications/webapps-memory-match/1.1/icon_128.png",

  "http-port":30024

}

raspberrypi4:~$


raspberrypi4:~$ afm-util start webapps-annex@0.0

1899

raspberrypi4:~$



However, the app does not show up on my monitor, nor is it listed as a running app ...


raspberrypi4:~$ ps -efZ |grep webapps-annex | grep -v grep

raspberrypi4:~$


raspberrypi4:~$ afm-util ps

[

  {

    "runid":544,

    "pids":[

      544

    ],

    "state":"running",

    "id":"homescreen@0.1"

  },

  {

    "runid":542,

    "pids":[

      542

    ],

    "state":"running",

    "id":"launcher@0.1"

  }

]

raspberrypi4:~$ 


I see MEMORYMATCH on my screen, but when I click it, nothing happens.


I'm wondering if this is related to my screen being full with 12 icons?


The only thing that I did to my generated image was I changed the orientation to be upright instead of sideways on my monitor.


i.e. I commented out line 18 here:


raspberrypi4:/etc/xdg/weston# cat weston.ini | nl -ba

     1 [core]

     2 shell=ivi-shell.so

     3 backend=drm-backend.so

     4 require-input=false

     5 modules=systemd-notify.so,ivi-controller.so

     6

     7 # Support the Raspberry Pi Foundation 7" tablet which uses the DSI connector

     8 # rather than HDMI.

     9 [output]

    10 name=DSI-1

    11 transform=270

    12

    13 # A display is connected to HDMI-A-1 and needs to be rotated 270 degrees

    14 # to have a proper orientation of the homescreen.  For example the various sizes

    15 # of the GeChic display or the Dell display.

    16 [output]

    17 name=HDMI-A-1

    18 #transform=270

    19 mode=1280x720

    20

    21 [desktop-app-default]

    22 default-surface-id=2000000

    23 default-surface-id-max=2001000

    24

    25 [ivi-shell]

    26 ivi-input-module=ivi-input-controller.so

    27 ivi-id-agent-module=ivi-id-agent.so

    28

    29 [shell]

    30 locking=true

    31 panel-position=none

raspberrypi4:/etc/xdg/weston# 


Can someone please tell me which log files contain the error messages which would help me to debug this?


Thanks,

Alex



On Sat, Sep 26, 2020 at 2:11 AM ilies bogdan via lists.automotivelinux.org <ilies_06=yahoo.com@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Alex,

I think it is because you are trying to run it as root. 
Try "su - agl-driver" and then use afm-util as that user. It worked for me.

Regards,
Bogdan Ilies


On Sat, 26 Sep 2020 at 0:58, Alex Ryan



I'm having difficulty getting the AGL "hello world" apps to run and would like some advice on how to debug.


I'm following the instructions for "AGL Application Framework: A Quick Tutorial"

https://docs.automotivelinux.org/docs/en/icefish/apis_services/reference/af-main/4-quick-tutorial.html


I followed the instructions precisely to build the AGL 9.0.3 Icefish for raspberry pi 4.

https://docs.automotivelinux.org/docs/en/icefish/getting_started/reference/getting-started/machines/raspberrypi.html


The "afm-util install" commands appear to work ...


raspberrypi4:~# afm-util install /home/0/annex.wgt

{

  "added":"webapps-annex@0.0"

}

raspberrypi4:~# afm-util install /home/0/memory-match.wgt

{

  "added":"webapps-memory-match@1.1"

}


raspberrypi4:~# afm-util list

[

  {

...

  {

    "description":"Memory match",

    "name":"MemoryMatch",

    "shortname":"",

    "id":"webapps-memory-match@1.1",

    "version":"1.1.7",

    "author":"Todd Brandt <todd.e.brandt@xxxxxxxxx>",

    "author-email":"",

    "width":"",

    "height":"",

    "icon":"/var/local/lib/afm/applications/webapps-memory-match/1.1/icon_128.png",

    "http-port":30048

  },

...

  {

    "description":"Reversi/Othello",

    "name":"Annex",

    "shortname":"",

    "id":"webapps-annex@0.0",

    "version":"0.0.10",

    "author":"Todd Brandt <todd.e.brandt@xxxxxxxxx>",

    "author-email":"",

    "width":"",

    "height":"",

    "icon":"/var/local/lib/afm/applications/webapps-annex/0.0/icon_128.png",

    "http-port":30047

  },

...


but "afm-util start" does not ...


raspberrypi4:~# afm-util start webapps-annex@0.0

null

raspberrypi4:~# 


raspberrypi4:~# afm-util start webapps-memory-match@1.1

ERROR:  cannot-start

raspberrypi4:~# 


I've confirmed that the systemd daemons are running, but I'm not sure how to go about debugging this?


raspberrypi4:/etc/systemd/system# systemctl status afm-system-daemon.service 

● afm-system-daemon.service - Application Framework Master, system side

   Loaded: loaded (/lib/systemd/system/afm-system-daemon.service; disabled; vendor preset: enabled)

   Active: active (running) since Fri 2020-09-18 02:43:47 UTC; 1 weeks 0 days ago

 Main PID: 328 (afm-system-daem)

    Tasks: 1 (limit: 4197)

   Memory: 3.7M

   CGroup: /system.slice/afm-system-daemon.service

           └─328 afm-system-daemon                                                                                                                     


Sep 18 02:43:47 raspberrypi4 systemd[1]: Started Application Framework Master, system side.

raspberrypi4:/etc/systemd/system# 



raspberrypi4:/etc/systemd/system# systemctl status afm-user-session@1001.service

● afm-user-session@1001.service - Initiate afm-user-session 1001

   Loaded: loaded (/lib/systemd/system/multi-user.target.wants/../afm-user-session@.service; static; vendor preset: enabled)

   Active: active (running) since Fri 2020-09-18 02:43:48 UTC; 1 weeks 0 days ago

 Main PID: 419 (systemctl)

    Tasks: 0 (limit: 4197)

   Memory: 1.1M

   CGroup: /system.slice/system-afm\x2duser\x2dsession.slice/afm-user-session@1001.service

           ‣ 419 /bin/systemctl --wait start afm-user-session@1001.target


Sep 18 02:43:48 raspberrypi4 systemd[1]: Started Initiate afm-user-session 1001.

Sep 18 02:43:49 raspberrypi4 systemd[419]: pam_unix(afm-user-session:account): account agl-driver has password changed in future

Sep 18 02:43:49 raspberrypi4 systemd[419]: pam_unix(afm-user-session:session): session opened for user agl-driver by (uid=0)

raspberrypi4:/etc/systemd/system#



--



--
Alex Ryan
https://www.linkedin.com/in/alexryan
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8695) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]

_._,_._,_

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux