Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-3304

Window manager fails to start in the HTML5 image

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • Koi 11.0.1, master
    • App Framework
    • Renesas H3, Renesas M3

      In subsequent boots after the first one, see SPEC-3303, Window Manager fails to start for the HTML5 image.

       - Error in the journaclt:

       

      Mar 31 07:09:16 h3ulcb afbd-windowmanager-service[3343]: Failed to connect display in libilmCommon
      Mar 31 07:09:16 h3ulcb afbd-windowmanager-service[3343]: [1055817.161] [wm ERROR] [wm_layer_control.cpp, init(), Line:89] >>> Wait to start weston ...
      Mar 31 07:09:17 h3ulcb afbd-windowmanager-service[3343]: Failed to connect display in libilmCommon
      Mar 31 07:09:17 h3ulcb afbd-windowmanager-service[3343]: [1056817.531] [wm ERROR] [wm_layer_control.cpp, init(), Line:86] >>> Could not connect to compositor
      Mar 31 07:09:17 h3ulcb afbd-windowmanager-service[3343]: [1056817.578] [wm ERROR] [wm_layer_control.cpp, init(), Line:130] >>> Failed to initialize. Terminate WM
      Mar 31 07:09:17 h3ulcb afbd-windowmanager-service[3343]: [1056817.595] [wm ERROR] [main.cpp, _binding_init(), Line:67] >>> Could not connect to compositor
      Mar 31 07:09:17 h3ulcb afbd-windowmanager-service[3343]: ERROR: ALERT! signal 11 received: Segmentation fault [/usr/src/debug/af-binder/master+gitAUTOINC+7901c6dada-r0/git/src/sig-monitor.c:362,on_signal_error]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: ERROR: BACKTRACE due to signal Segmentation fault/11:
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [1/14] /var/local/lib/afm/applications/windowmanager-service/lib/windowmanager-service.so(+0xc17c) [0xffffb5b6317c]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [2/14] afbd-windowmanager-service(+0x1cec8) [0xaaaae25cdec8]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [3/14] afbd-windowmanager-service(+0x3870c) [0xaaaae25e970c]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [4/14] afbd-windowmanager-service(afb_export_start+0x80) [0xaaaae25cff30]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [5/14] afbd-windowmanager-service(+0x181ac) [0xaaaae25c91ac]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [6/14] afbd-windowmanager-service(afb_apiset_start_all_services+0x6c) [0xaaaae25c9fdc]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [7/14] afbd-windowmanager-service(+0x14cfc) [0xaaaae25c5cfc]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [8/14] afbd-windowmanager-service(+0x3870c) [0xaaaae25e970c]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [9/14] afbd-windowmanager-service(+0x36244) [0xaaaae25e7244]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [10/14] afbd-windowmanager-service(+0x36490) [0xaaaae25e7490]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [11/14] afbd-windowmanager-service(jobs_start+0x18c) [0xaaaae25e80ac]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [12/14] afbd-windowmanager-service(main+0x1d8) [0xaaaae25c4888]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [13/14] /lib/libc.so.6(__libc_start_main+0xe4) [0xffffb612b3ac]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [14/14] afbd-windowmanager-service(+0x13b40) [0xaaaae25c4b40]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: [/usr/src/debug/af-binder/master+gitAUTOINC+7901c6dada-r0/git/src/sig-monitor.c:103,dumpstack]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: ERROR: Initialisation of service API windowmanager failed (-1): Bad address [/usr/src/debug/af-binder/master+gitAUTOINC+7901c6dada-r0/git/src/afb-export.c:1793,afb_export_start]
      Mar 31 07:09:18 h3ulcb afbd-windowmanager-service[3343]: ERROR: The api windowmanager failed to start [/usr/src/debug/af-binder/master+gitAUTOINC+7901c6dada-r0/git/src/afb-apiset.c:820,start_api]
      Mar 31 07:09:18 h3ulcb systemd[1]: afm-service-windowmanager-service--0.1--main@1001.service: Main process exited, code=exited, status=1/FAILURE
      Mar 31 07:09:18 h3ulcb systemd[1]: afm-service-windowmanager-service--0.1--main@1001.service: Failed with result 'exit-code'.
      Mar 31 07:09:18 h3ulcb systemd[1]: Failed to start Window Manager.
      Mar 31 07:09:18 h3ulcb systemd[1]: Started "WebAppMgr is responsible for running web apps and manage their lifecycle".
      Mar 31 07:09:18 h3ulcb WebAppMgr[3417]: ## (DEBUG)[int main(int, const char**)] ### Starting /usr/bin/WebAppMgr
      Mar 31 07:09:18 h3ulcb WebAppMgr[3417]: ## (DEBUG)[virtual int WebRuntimeAGL::run(int, const char**)] WebRuntimeAGL::run
      Mar 31 07:09:18 h3ulcb WebAppMgr[3417]: ## (DEBUG)[virtual int WebRuntimeAGL::run(int, const char**)] WebRuntimeAGL - creating SharedBrowserProcessRuntime
      Mar 31 07:09:18 h3ulcb WebAppMgr[3417]: ## (DEBUG)[bool WamSocket::createSocket(bool)] service binding
      Mar 31 07:09:18 h3ulcb WebAppMgr[3417]: ## (DEBUG)[void WebAppManagerServiceAGL::triggerStartupApp()] Triggering app start:
      Mar 31 07:09:18 h3ulcb WebAppMgr[3417]: ## (DEBUG)[int WamSocket::waitForMsg()] bool readJsonFromFile(const string&, Json::Value&): Failed to open file /etc/wam/com.webos.wam.json
      Mar 31 07:09:18 h3ulcb WebAppMgr[3417]: Waiting for data...
      Mar 31 07:09:19 h3ulcb WebAppMgr[3417]: ## (DEBUG)[int main(int, const char**)] ### Starting /usr/bin/WebAppMgr
      Mar 31 07:09:19 h3ulcb WebAppMgr[3417]: ## (DEBUG)[virtual int WebRuntimeAGL::run(int, const char**)] WebRuntimeAGL::run
      Mar 31 07:09:19 h3ulcb WebAppMgr[3417]: ## (DEBUG)[virtual int WebRuntimeAGL::run(int, const char**)] WebRuntimeAGL - creating RenderProcessRuntime
      Mar 31 07:09:19 h3ulcb WebAppMgr[3417]: [0331/070919.119460:ERROR:wayland_connection.cc(63)] Failed to connect to Wayland display
      Mar 31 07:09:19 h3ulcb WebAppMgr[3417]: [0331/070919.121044:FATAL:ozone_platform_wayland.cc(152)] Failed to initialize Wayland platform

       

      • As a consequence of this, only a black screen containing:

       

      Automotive Grade Linux 9.90.0+snapshot h3ulcb tty1
      h3ulcb login:

      prompt and WAM crashes.

       

       - Attached the journalclt output. I was not able to extract the coredump information.

       - SW version:

      h3ulcb:~# cat /etc/os-release
      ID="poky-agl"
      NAME="Automotive Grade Linux"
      VERSION="9.90.0+snapshot-20200330 (jellyfish)"
      VERSION_ID="9.90.0-snapshot-20200330"
      PRETTY_NAME="Automotive Grade Linux 9.90.0+snapshot-20200330 (jellyfish)

       -  Commands used to build the image:

      repo init -b master -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
      source meta-agl/scripts/aglsetup.sh -f -m h3ulcb -b build agl-devel agl-localdev agl-profile-graphical-html5 agl-demo
      bitbake agl-demo-platform-html5

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ltilve Lorenzo Tilve
            antia Antia Puentes
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: