lightdm not started when running the ubuntu-touch x86 emulator

Bug #1318681 reported by Ricardo Salveti
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-touch-session (Ubuntu)
Fix Released
Undecided
Unassigned
upstart (Ubuntu)
New
Undecided
Unassigned

Bug Description

How to reproduce:
sudo ubuntu-emulator create --channel=ubuntu-touch/utopic-proposed --use-raw-disk --arch=i386 --revision=22 test_x86
ubuntu-emulator run test_x86 --memory=720

From time to time upstart doesn't start lightdm, leaving the emulator window with just a black screen.

Here is the lightdm.override file:
root@ubuntu-phablet:~# cat /etc/init/lightdm.override
limit nice 40 40
oom score -10

# lightdm job normally waits for plymouth-ready, but since we disable plymouth,
# we remove that condition from lightdm's start stanza
start on ((filesystem
           and runlevel [!06]
           and started dbus
           and android)
          or runlevel PREVLEVEL=S)

And the full boot log with --debug: http://paste.ubuntu.com/7452481/

You can see from the logs that all required events were sent to upstart, but for some reason the job wasn't started. Other jobs depending on the same set of events (just not all together) all started just fine .

Can't reproduce this bug after removing the 'runlevel [!06]' line.

Revision history for this message
James Hunt (jamesodhunt) wrote :

Just setting up an environment as you outline now...

If you 'sudo initctl emit runlevel RUNLEVEL=2 PREVLEVEL=1', does it block?
Would be interesting to know what else has changed recently that starts on any of the events lightdm cares about.
Also, you could try:

$ wget http://people.canonical.com/~jhunt/upstart/scripts/get_state.sh
$ sudo bash ./get_state.sh | json_pp > /tmp/upstart.json

And attaching that log file which specifies upstarts internal state.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-touch-session - 0.108+14.10.20140512-0ubuntu1

---------------
ubuntu-touch-session (0.108+14.10.20140512-0ubuntu1) utopic; urgency=low

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Ricardo Salveti de Araujo ]
  * lightdm.override: removing runlevel check, faster boot and
    workaround for the x86 emulator (LP: #1318681) (LP: #1318681)
 -- Ubuntu daily release <email address hidden> Mon, 12 May 2014 14:29:39 +0000

Changed in ubuntu-touch-session (Ubuntu):
status: New → Fix Released
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

'initctl emit runlevel RUNLEVEL=2 PREVLEVEL=1' runs fine here.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

> Can't reproduce this bug after removing the 'runlevel [!06]' line.

The other thing I notice here is that unlike most events, there is no 'Finished runlevel event' in the log. Not clear why lightdm would have blocked, but it looks pretty clear that something has gone amiss with this event...

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Well, lightdm tries to start at times but an uncaught boost exception is thrown upon dm_connection_start. So it looks like mir is not comming up correctly?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.