<div dir="ltr"><font face="monospace, monospace">Hello,</font><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Environment: Ubuntu-14.04.5/16.04.1 (64-bit)</font></div><div><font face="monospace, monospace">Yocto build: qemuarm</font></div><div><font face="monospace, monospace">Target image: core-image-sato</font></div><div><font face="monospace, monospace">Error nature: The lightdm restarts on its own and logs out by killing processes running and brings up a login UI. </font></div><div><br></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">We have been observing yocto-2.2 build failures on Ubuntu 14.04.5 and Ubuntu-16.04.1 hosts due to restart of "lightdm" (Light Desktop Manager) that is triggered by crash of "unity-settings-daemon", we couldn't figure out any workaround so far to overcome the issue. The build goes fine in the beginning but eventually the unity desktop logs out and kills all the processes running in the user session (including bitbake) and lands us into "Login screen" and when we login its a new session where as the bitbake running in previous session is killed and we need to continue the build. This is happening consistently when the user logs into desktop via lightdm and triggers a build. </font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Another interesting thing to notice is the build goes fine if we connect to host via. SSH session and invoke a bitbake build. We are suspecting on unity-settings-daemon that is crashing consistently and is evident from the ".xsession-errors" log file as shown below:</font></div><div><font face="monospace, monospace"><br></font></div><div><pre class="gmail-code-java" style="margin-top:0px;margin-bottom:0px;padding:0px;max-height:30em;overflow:auto;white-space:pre-wrap;word-wrap:normal;color:rgb(51,51,51);font-size:12px;background-color:rgb(245,245,245)">builder@ubuntu:~$ cat .xsession-errors.old
Script <span class="gmail-code-keyword" style="color:rgb(0,0,145)">for</span> ibus started at run_im.
Script <span class="gmail-code-keyword" style="color:rgb(0,0,145)">for</span> auto started at run_im.
Script <span class="gmail-code-keyword" style="color:rgb(0,0,145)">for</span> <span class="gmail-code-keyword" style="color:rgb(0,0,145)">default</span> started at run_im.
init: Disconnected from notified D-Bus bus
init:<span class="gmail-code-quote" style="color:rgb(0,145,0)">"unity-settings-daemon main process (2076) terminated with status 1"</span>
init: indicator-bluetooth main process (2212) killed by TERM signal
init: indicator-power main process (2214) killed by TERM signal
init: indicator-datetime main process (2215) killed by TERM signal
init: indicator-printers main process (2222) killed by TERM signal
init: indicator-session main process (2245) killed by TERM signal
init: indicator-application main process (2270) killed by TERM signal</pre></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Corresponding unity-settings-daemon bug reported in Launchpad:</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><a href="https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1546641">https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1546641</a><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Would anyone kindly confirm the logout behaviour during bitbake process on Ubuntu-14.04.5 & Ubuntu-16.04.1 ? Since Yocto 2.2 mentions both Ubuntu-14.04 & 16.04 as supported distributions this blocker issue must be resolved at earliest. </font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Appreciate your Inputs !</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Thanks in Advance.</font></div><div><font face="monospace, monospace">-Srikant</font></div><div><font face="monospace, monospace"><br></font></div><div><pre class="gmail-code-java" style="margin-top:0px;margin-bottom:0px;padding:0px;max-height:30em;overflow:auto;white-space:pre-wrap;word-wrap:normal;color:rgb(51,51,51);font-size:12px;background-color:rgb(245,245,245)"><br></pre></div></div>