iotbzh / afm-widget-examples

AGL Application Framework - Example widgets: download from
http://iotbzh.github.io/afm-widget-examples/
Apache License 2.0
2 stars 0 forks source link

Not able to run widgets in AGL 5.0.1 #2

Open dhk999 opened 6 years ago

dhk999 commented 6 years ago

I tried running these widgets on both a Pi3 and R-Car H3. I'm seeing the following (this is for rabbit.wgt):

Feb  1 02:29:51 raspberrypi3 daemon.info systemd[563]: Created slice afm\x2dappli\x2dwebapps\x2drabbit.slice.
Feb  1 02:29:51 raspberrypi3 daemon.info systemd[563]: Starting Fun grid game where the rabbit finds and eats the carrots dodging the foxes....
Feb  1 02:29:51 raspberrypi3 daemon.info systemd[563]: Started Fun grid game where the rabbit finds and eats the carrots dodging the foxes..
Feb  1 02:29:51 raspberrypi3 daemon.notice afbd-webapps-rabbit@0.0[822]:  NOTICE: API monitor started [/usr/src/debug/af-binder/eel+gitAUTOINC+499b0d7773-r0/git/src/afb-apiset.c:353,start_api]
Feb  1 02:29:51 raspberrypi3 daemon.err afbd-webapps-rabbit@0.0[822]:  ERROR: can't connect to directory htdocs: No such file or directory [/usr/src/debug/af-binder/eel+gitAUTOINC+499b0d7773-r0/git/src/afb-hsrv.c:372,afb_hsrv_add_alias]
Feb  1 02:29:51 raspberrypi3 daemon.err afbd-webapps-rabbit@0.0[822]:  ERROR: initialisation of httpd failed [/usr/src/debug/af-binder/eel+gitAUTOINC+499b0d7773-r0/git/src/main.c:266,start_http_server]
Feb  1 02:29:51 raspberrypi3 daemon.notice systemd[563]: afm-appli-webapps-rabbit@0.0.service: Main process exited, code=exited, status=1/FAILURE
Feb  1 02:29:51 raspberrypi3 daemon.notice systemd[563]: afm-appli-webapps-rabbit@0.0.service: Unit entered failed state.
Feb  1 02:29:51 raspberrypi3 daemon.warn systemd[563]: afm-appli-webapps-rabbit@0.0.service: Failed with result 'exit-code'.

Do these require a specific AGL build?

jobol commented 6 years ago

hi @dhk999 !

That is good to see your interest in running these old examples. It should work with little changes. Can we work together to make it back up and running?

jobol commented 6 years ago

hi @dhk999 ,

I just pushed fixes. Can you check it? On my side it starts without the error you reported but at the end crashes due to GL errors.

dhk999 commented 6 years ago

Sure, I'd love to help out. I ran rabbit.wgt and don't see that error but I just end up with a blank UI. Here's the output from /var/log/messages:

Mar  7 18:18:46 h3ulcb daemon.info systemd[1]: Starting Fun grid game where the rabbit finds and eats the carrots dodging the foxes....
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]:  INFO: Forcing Root HTTP=. [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-config.c:487,parse_arguments]
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: ---BEGIN-OF-CONFIG---
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --         console: ./AFB-console.out
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --         rootdir: /var/local/lib/afm/applications/webapps-rabbit/0.0
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --        roothttp: .
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --        rootbase: /opa
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --         rootapi: /api
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --         workdir: /home/0/app-data/webapps-rabbit
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --       uploaddir: .
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --           token: HELLO
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --            name: afbd-webapps-rabbit@0.0
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --         aliases: /monitoring:/usr/lib/afb/monitoring
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --    dbus_clients:
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --    dbus_servers:
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --      ws_clients:
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --      ws_servers:
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --     so_bindings:
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --         ldpaths: /usr/lib/afb
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --    weak_ldpaths:
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --           calls:
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --            exec: /usr/bin/web-runtime http://localhost:@p/index.html?token=@t
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --       httpdPort: 1053
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --    cacheTimeout: 100000
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --      apiTimeout: 20
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --     cntxTimeout: 32000000
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --    nbSessionMax: 10
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --            mode: local
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --        tracereq: no
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --       traceditf: no
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --        tracesvc: no
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --        traceevt: no
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --        traceses: no
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --      no_ldpaths: no
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --         noHttpd: no
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --      background: no
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --      monitoring: yes
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: --    random_token: no
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: ---END-OF-CONFIG---
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]:  INFO: entering foreground mode [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/main.c:674,main]
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]:  INFO: running with pid 3732 [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/main.c:676,main]
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]:  INFO: API monitor added [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-apiset.c:251,afb_apiset_add]
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]:  INFO: binding monitor added to set main [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-api-so-v2.c:200,afb_api_so_v2_add_binding]
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]:  INFO: API $ added [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-apiset.c:251,afb_apiset_add]
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]:  INFO: Scanning dir=[/usr/lib/afb] for bindings [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-api-so.c:136,adddirs]
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]:  INFO: Scanning dir=[/usr/lib/afb/monitoring] for bindings [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-api-so.c:136,adddirs]
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]:  INFO: API monitor starting... [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-apiset.c:338,start_api]
Mar  7 18:18:46 h3ulcb daemon.notice afbd-webapps-rabbit@0.0[3732]:  NOTICE: API monitor started [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-apiset.c:353,start_api]
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]:  INFO: Alias for url=/monitoring to path=/usr/lib/afb/monitoring [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/main.c:215,init_alias]
Mar  7 18:18:46 h3ulcb daemon.notice afbd-webapps-rabbit@0.0[3732]:  NOTICE: Waiting port=1053 rootdir=/var/local/lib/afm/applications/webapps-rabbit/0.0 [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/main.c:271,start_http_server]
Mar  7 18:18:46 h3ulcb daemon.notice afbd-webapps-rabbit@0.0[3732]:  NOTICE: Browser URL= http://localhost:1053 [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/main.c:272,start_http_server]
Mar  7 18:18:46 h3ulcb daemon.info systemd[1]: Started Fun grid game where the rabbit finds and eats the carrots dodging the foxes..
Mar  7 18:18:46 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: Using Wayland-EGL
Mar  7 18:18:48 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: [3733:3758:0307/181848.222739:ERROR:surface_factory_qt.cpp(82)] eglGetProcAddress not found.
Mar  7 18:18:48 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: WARNING: Cannot find style "AGL" - fallback: "/usr/lib/qt5/qml/QtQuick/Controls/Styles/Base"
Mar  7 18:18:48 h3ulcb daemon.info afbd-webapps-rabbit@0.0[3732]: Using the 'ivi-shell' shell integration
[   37.149634] audit: type=1326 audit(1520446728.459:6): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=User::App::webapps-rabbit pid=3760 comm="QtWebEngineProc" exe="/usr/lib/qt5/libexec/QtWebEngineProcess" sig=0 arch=c00000b7 syscall=99 compat=0 ip=0xffff8d325f0c code=0x50000
Mar  7 18:18:48 h3ulcb user.notice kernel: [   37.149634] audit: type=1326 audit(1520446728.459:6): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=User::App::webapps-rabbit pid=3760 comm="QtWebEngineProc" exe="/usr/lib/qt5/libexec/QtWebEngineProcess" sig=0 arch=c00000b

smarthome:

Mar  7 18:18:51 h3ulcb daemon.err systemd[1]: afm-appli-smarthome--0.1--main@0.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Mar  7 18:18:51 h3ulcb daemon.err systemd[1]: afm-appli-smarthome--0.1--main@0.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Mar  7 18:18:51 h3ulcb daemon.err afm-system-daemon[3596]:  ERROR: can't start system unit afm-appli-smarthome--0.1--main@.service for uid 0 [/usr/src/debug/af-main/master+gitAUTOINC+1bec325ee8-r0/git/src/afm-urun.c:258]
Mar  7 18:18:51 h3ulcb daemon.info afbd-homescreen-2017@0.1[3679]: qml: app cannot be launched!

annex:

Mar  7 18:18:38 h3ulcb daemon.info systemd[1]: Starting Reversi/Othello...
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]:  INFO: Forcing Root HTTP=. [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-config.c:487,parse_arguments]
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: ---BEGIN-OF-CONFIG---
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --         console: ./AFB-console.out
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --         rootdir: /var/local/lib/afm/applications/webapps-annex/0.0
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --        roothttp: .
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --        rootbase: /opa
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --         rootapi: /api
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --         workdir: /home/0/app-data/webapps-annex
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --       uploaddir: .
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --           token: HELLO
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --            name: afbd-webapps-annex@0.0
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --         aliases: /monitoring:/usr/lib/afb/monitoring
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --    dbus_clients:
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --    dbus_servers:
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --      ws_clients:
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --      ws_servers:
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --     so_bindings:
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --         ldpaths: /usr/lib/afb
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --    weak_ldpaths:
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --           calls:
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --            exec: /usr/bin/web-runtime http://localhost:@p/index.html?token=@t
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --       httpdPort: 1054
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --    cacheTimeout: 100000
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --      apiTimeout: 20
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --     cntxTimeout: 32000000
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --    nbSessionMax: 10
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --            mode: local
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --        tracereq: no
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --       traceditf: no
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --        tracesvc: no
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --        traceevt: no
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --        traceses: no
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --      no_ldpaths: no
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --         noHttpd: no
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --      background: no
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --      monitoring: yes
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: --    random_token: no
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: ---END-OF-CONFIG---
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]:  INFO: entering foreground mode [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/main.c:674,main]
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]:  INFO: running with pid 3748 [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/main.c:676,main]
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]:  INFO: API monitor added [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-apiset.c:251,afb_apiset_add]
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]:  INFO: binding monitor added to set main [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-api-so-v2.c:200,afb_api_so_v2_add_binding]
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]:  INFO: API $ added [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-apiset.c:251,afb_apiset_add]
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]:  INFO: Scanning dir=[/usr/lib/afb] for bindings [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-api-so.c:136,adddirs]
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]:  INFO: Scanning dir=[/usr/lib/afb/monitoring] for bindings [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-api-so.c:136,adddirs]
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]:  INFO: API monitor starting... [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-apiset.c:338,start_api]
Mar  7 18:18:38 h3ulcb daemon.notice afbd-webapps-annex@0.0[3748]:  NOTICE: API monitor started [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/afb-apiset.c:353,start_api]
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]:  INFO: Alias for url=/monitoring to path=/usr/lib/afb/monitoring [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/main.c:215,init_alias]
Mar  7 18:18:38 h3ulcb daemon.notice afbd-webapps-annex@0.0[3748]:  NOTICE: Waiting port=1054 rootdir=/var/local/lib/afm/applications/webapps-annex/0.0 [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/main.c:271,start_http_server]
Mar  7 18:18:38 h3ulcb daemon.notice afbd-webapps-annex@0.0[3748]:  NOTICE: Browser URL= http://localhost:1054 [/usr/src/debug/af-binder/master+gitAUTOINC+bd10bc4405-r0/git/src/main.c:272,start_http_server]
Mar  7 18:18:38 h3ulcb daemon.info systemd[1]: Started Reversi/Othello.
Mar  7 18:18:38 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: Using Wayland-EGL
[   28.253352] audit: type=1400 audit(1520446719.691:6): lsm=SMACK fn=smack_inode_getattr action=denied subject="User::App::webapps-annex" object="User::App::webapps-rabbit" requested=r pid=3756 comm="QtWebEngineProc" path="/home/0/.pki" dev="mmcblk1p1" ino=256684
Mar  7 18:18:39 [   28.276512] audit: type=1300 audit(1520446719.691:6): arch=c00000b7 syscall=79 success=no exit=-13 a0=ffffffffffffff9c a1=aaaaf2a19fa0 a2=fffff5703600 a3=0 items=0 ppid=3749 pid=3756 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="QtWebEngineProc" exe="/usr/lib/qt5/libexec/QtWebEngineProcess" subj=User::App::webapps-annex key=(null)
h3ulcb daemon.in[   28.312222] audit: type=1327 audit(1520446719.691:6): proctitle=2F7573722F6C69622F7174352F6C6962657865632F5174576562456E67696E6550726F63657373202D2D747970653D7A79676F7465202D2D6C616E673D656E2D5553
fo afbd-webapps-[   28.331057] audit: type=1400 audit(1520446719.691:7): lsm=SMACK fn=smack_inode_getattr action=denied subject="User::App::webapps-annex" object="User::App::webapps-rabbit" requested=r pid=3756 comm="QtWebEngineProc" path="/home/0/.pki" dev="mmcblk1p1" ino=256684
annex@0.0[3748]:[   28.355557] audit: type=1300 audit(1520446719.691:7): arch=c00000b7 syscall=79 success=no exit=-13 a0=ffffffffffffff9c a1=aaaaf2a19fa0 a2=fffff5703600 a3=0 items=0 ppid=3749 pid=3756 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="QtWebEngineProc" exe="/usr/lib/qt5/libexec/QtWebEngineProcess" subj=User::App::webapps-annex key=(null)
 [0307/181839.69[   28.391266] audit: type=1327 audit(1520446719.691:7): proctitle=2F7573722F6C69622F7174352F6C6962657865632F5174576562456E67696E6550726F63657373202D2D747970653D7A79676F7465202D2D6C616E673D656E2D5553
6559:ERROR:nss_util.cc(94)] Failed to create /home/0/.pki/nssdb directory.
Mar  7 18:18:39 h3ulcb user.notice kernel: [   28.253352] audit: type=1400 audit(1520446719.691:6): lsm=SMACK fn=smack_inode_getattr action=denied subject="User::App::webapps-annex" object="User::App::webapps-rabbit" requested=r pid=3756 comm="QtWebEngineProc" path="/ho
Mar  7 18:18:39 h3ulcb user.notice kernel: [   28.276512] audit: type=1300 audit(1520446719.691:6): arch=c00000b7 syscall=79 success=no exit=-13 a0=ffffffffffffff9c a1=aaaaf2a19fa0 a2=fffff5703600 a3=0 items=0 ppid=3749 pid=3756 auid=4294967295 uid=0 gid=0 euid=0 suid=0
Mar  7 18:18:39 h3ulcb user.notice kernel: [   28.312222] audit: type=1327 audit(1520446719.691:6): proctitle=2F7573722F6C69622F7174352F6C6962657865632F5174576562456E67696E6550726F63657373202D2D747970653D7A79676F7465202D2D6C616E673D656E2D5553
Mar  7 18:18:39 h3ulcb user.notice kernel: [   28.331057] audit: type=1400 audit(1520446719.691:7): lsm=SMACK fn=smack_inode_getattr action=denied subject="User::App::webapps-annex" object="User::App::webapps-rabbit" requested=r pid=3756 comm="QtWebEngineProc" path="/ho
Mar  7 18:18:39 h3ulcb user.notice kernel: [   28.355557] audit: type=1300 audit(1520446719.691:7): arch=c00000b7 syscall=79 success=no exit=-13 a0=ffffffffffffff9c a1=aaaaf2a19fa0 a2=fffff5703600 a3=0 items=0 ppid=3749 pid=3756 auid=4294967295 uid=0 gid=0 euid=0 suid=0
Mar  7 18:18:39 h3ulcb user.notice kernel: [   28.391266] audit: type=1327 audit(1520446719.691:7): proctitle=2F7573722F6C69622F7174352F6C6962657865632F5174576562456E67696E6550726F63657373202D2D747970653D7A79676F7465202D2D6C616E673D656E2D5553
Mar  7 18:18:40 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: [3749:3774:0307/181840.100330:ERROR:surface_factory_qt.cpp(82)] eglGetProcAddress not found.
Mar  7 18:18:40 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: WARNING: Cannot find style "AGL" - fallback: "/usr/lib/qt5/qml/QtQuick/Controls/Styles/Base"
Mar  7 18:18:40 h3ulcb daemon.info afbd-webapps-annex@0.0[3748]: Using the 'ivi-shell' shell integration
[   28.888919] audit: type=1326 audit(1520446720.327:8): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=User::App::webapps-annex pid=3776 comm="QtWebEngineProc" exe="/usr/lib/qt5/libexec/QtWebEngineProcess" sig=0 arch=c00000b7 syscall=99 compat=0 ip=0xffff82727f0c code=0x50000
Mar  7 18:18:40 h3ulcb user.notice kernel: [   28.888919] audit: type=1326 audit(1520446720.327:8): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=User::App::webapps-annex pid=3776 comm="QtWebEngineProc" exe="/usr/lib/qt5/libexec/QtWebEngineProcess" sig=0 arch=c00000b7

memory-match didn't install

kooltux commented 6 years ago

Hi, Thanks for your feedback. We investigated a bit further and found that there is an issue with HTML5 apps on AGL EE (5.0.1): this is related to how the webview that shows the HTML5 app interacts with the new windowmanager and homescreen. We're working to provide a workaround ASAP.

jobol commented 6 years ago

I also get errors to install memory-match but I haven't investigated. About smarthome, I haven't tried to install it. The original source are actually no more available but I think that this is a problem that I can fix. So actually annex and rabbit are good candidate for testing. Today during the developer's meeting we spoke about the issues that you raise in running the apps. We also reach the same status as you. A blank screen. This is a problem mostly related to QtWebEngine and to the integration of the webruntime with the windowmanager. Some investigations are in progress.

jobol commented 6 years ago

oh no! we removed support of QML apps because the QML apps are compiled to binaries for demos. So for smarthome it will be a little more complicated.

dhk999 commented 6 years ago

I'm happy to hear that a workaround is underway, it'll be great to have these up and running. Let me know if there is anything I can do to help.

On Tue, Mar 13, 2018 at 9:47 AM, jobol notifications@github.com wrote:

oh no! we removed support of QML apps because the QML apps are compiled to binaries for demos. So for smarthome it will be a little more complicated.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/iotbzh/afm-widget-examples/issues/2#issuecomment-372735560, or mute the thread https://github.com/notifications/unsubscribe-auth/ATbnCpiyztQU8msYG5y3KXEosIM2y6fxks5td_gxgaJpZM4Sknsv .

jobol commented 6 years ago

I actually fixed the problem of memory-match

But still don't get the app displayed on master

dhk999 commented 6 years ago

I wonder if this is related to security. I modified the HVAC app but it wouldn't run until I added the name of my new app to var/local/lib/afm/applications/windowmanager-service-2017/0.1/etc/layers.json