Unity8 never loads and just stays on a black screen [unity8.log: ERROR: QMirServer - Mir failed to start]

Bug #1537389 reported by feren
138
This bug affects 32 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Invalid
Undecided
Unassigned
Mir
Expired
Critical
Unassigned
mir (Ubuntu)
Expired
Critical
Unassigned
unity8 (Ubuntu)
Expired
Critical
Unassigned
unity8-desktop-session (Ubuntu)
Expired
Critical
Unassigned

Bug Description

The cursor is also not shown, neither is the Unity 8 Lock Screen or Indicators. Ubuntu 16.04 Daily

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: unity8-desktop-session-mir 1.0.12+15.10.20150609-0ubuntu1
ProcVersionSignature: Ubuntu 4.3.0-7.18-generic 4.3.3
Uname: Linux 4.3.0-7-generic x86_64
ApportVersion: 2.19.3-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Jan 23 18:44:45 2016
InstallationDate: Installed on 2016-01-22 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160122.2)
PackageArchitecture: all
SourcePackage: unity8-desktop-session
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
feren (ferenos) wrote :
Revision history for this message
Mateusz Stachowski (stachowski-mateusz) wrote :

When this happens switch to TTY1 (Ctrl+Alt+F1) and restart lightdm.

sudo systemctl restart lightdm

Unity 8 should start after this.

There is another bug reported about this issue. Either mark that other one (Bug #1539811) as duplicate or this one.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity8-desktop-session (Ubuntu):
status: New → Confirmed
Changed in unity8-desktop-session (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

looks to be the same in released xenial

Revision history for this message
Wieke Kanters (kantersw) wrote :

I think this bug affects me as well.

It seems that the system doesn't switch to tty8 properly. If desktop fails to load I can sometimes get it to appear by first switching to tty1 then tty8. A bit more reliable way seems to switch to tty1 and delete ~/.cache before logging into unity8.

Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

Same problem. Neither restarting lightdm nor deleting ~/.cache makes any difference.

Revision history for this message
賴家亨 (laichiaheng) wrote :

How do I switch back to Unity7, it sucks!

Revision history for this message
Gabriel Augendre (gaugendre) wrote :

I tried on my desktop (nvidia graphics card) and within a Fusion VM on my MacBook. I have a black screen in both cases, though it says something on my desktop before.

The message is related to "fifo engine fault". I didn't manage to capture the whole thing as it disappeared pretty fast.

In both cases I can't get to TTY1, though it may be related to some badly configured keymap in the VM.

Revision history for this message
Gabriel Augendre (gaugendre) wrote :

I forgot to add I tried with the free driver (I think it's Nouveau) on my desktop with the nvidia graphics.

Revision history for this message
Dustyn Gibson (miigotu) wrote :

I get a black screen too, if I SSH in and dmesg I get this in the log:

[ 8.025978] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ 8.025995] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing E4DE (len 2650, WS 0, PS 8) @ 0xEAE6
[ 8.121017] [drm:radeon_dp_link_train [radeon]] *ERROR* clock recovery reached max voltage
[ 8.121038] [drm:radeon_dp_link_train [radeon]] *ERROR* clock recovery failed

Revision history for this message
Dustyn Gibson (miigotu) wrote :

Over ssh I added nomodeset and it boots into the desktop, although the plymouth is not showing properly and it looks like the res is wrong.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

All: We have a few different black screen bugs around Unity8/Mir. Please be sure to log a bug of your own detailing your system configuration...

General bugs like this which have no involvement from the original reporter tend to never get definitively resolved.

tags: added: black-screen
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

nvidia nouveau users: try bug 1575516
nvidia proprietary driver users: may see bug 1553549
intel pineview users: see bug 1549455
virtual machine users: see bug 1118903

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

ferenos:
Please attach more details about your system like running 'lspci'.
Also, please try this command which will upload more information about your system to this bug:
    apport-collect 1537389

Changed in mir:
status: New → Incomplete
Changed in mir (Ubuntu):
status: New → Incomplete
Changed in unity8 (Ubuntu):
status: New → Incomplete
Changed in unity8-desktop-session (Ubuntu):
status: Confirmed → Incomplete
Changed in mir:
importance: Undecided → Critical
Changed in mir (Ubuntu):
importance: Undecided → Critical
Changed in unity8 (Ubuntu):
importance: Undecided → Critical
Revision history for this message
dinamic (dinamic6661) wrote :

and the last updates broke it for me too (black screen on tty8, Num Lock doesn't work on tty8)

unity8.log
android_dlopen called but not implemented!
unity8: linker.c:27: android_dlopen: Assertion `0' failed.
()
qtmir.screens: ScreensModel::ScreensModel
[2016-05-06 10:42:04.970417] mirplatform: Found graphics driver: mir:mesa-x11 (version 0.22.0)
[2016-05-06 10:42:04.972690] mirplatform: Found graphics driver: mir:mesa-kms (version 0.22.0)
qtmir.mir: MirServer created
qtmir.mir: Command line arguments passed to Qt: ("unity8")
[2016-05-06 10:42:04.989166] mirserver: Starting
ERROR: QMirServer - Mir failed to start

unity8-dash.log
Loading module: 'libubuntu_application_api_desktop_mirclient.so.3.0.0'
Loading module: 'libubuntu_application_api_desktop_mirclient.so.3.0.0'
UbuntuClientIntegration: connection to Mir server failed. Check that a Mir server is
running, and the correct socket is being used and is accessible. The shell may have
rejected the incoming connection, so check its log file
UbuntuClientIntegration: connection to Mir server failed. Check that a Mir server is
running, and the correct socket is being used and is accessible. The shell may have
rejected the incoming connection, so check its log file

Revision history for this message
dinamic (dinamic6661) wrote :

i do have the overlay ppa so in my case is probably this bug https://bugs.launchpad.net/mir/+bug/1578461

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

dinamic:

Indeed comment #15 confirms you are hitting bug 1578461:

android_dlopen called but not implemented!
unity8: linker.c:27: android_dlopen: Assertion `0' failed.
()

Revision history for this message
Kevin DuBois (kdub) wrote :

right, which is a hybris bug, so 'incomplete' (or making this bug a dup of 1578461) seems appropriate

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Incorrect. dinamic is not the reporter of this bug so what dinamic experiences is not relevant here. This bug is owned by ~ferenos.

Revision history for this message
TenLeftFingers (tenleftfingers) wrote :

I have the same configuration as the OP it seems so if they have abandoned the report I am happy to take over. The error in the log was: Failed to initialize EGL

I have a mobile AMD GPU with open source drivers: Gallium 0.4 on AMD RV620
Full unity 8 log here: http://paste.ubuntu.com/16581290/

The comment suggesting $ sudo sysctl restart lightdm
fails with
sysctl: cannot stat /proc/sys/restart: No such file or directory
sysctl: cannot stat /proc/sys/lightdm: No such file or directory

Switching TTYs and back again doesn't help. I still have a completely black screen.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for that.

Please just log a new bug with your system details so we can treat it separately:
https://bugs.launchpad.net/ubuntu/+source/unity8-desktop-session/+filebug

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Found a duplicate bug and also my xenial laptop experiencing the same failure regularly...

unity8.log:
()
qtmir.screens: ScreenController::ScreenController
[2016-06-07 09:13:14.320014] mirplatform: Found graphics driver: mir:mesa-x11 (version 0.21.0)
[2016-06-07 09:13:14.320952] mirplatform: Found graphics driver: mir:mesa-kms (version 0.21.0)
qtmir.mir: MirServer created
qtmir.mir: Command line arguments passed to Qt: ("unity8")
[2016-06-07 09:13:14.327471] mirserver: Starting
[2016-06-07 09:13:14.337275] mirserver: Using nested cursor
ERROR: QMirServer - Mir failed to start

I have unity-system-compositor and unity8-dash running fine. Only unity8 is missing.

summary: - The Desktop Never Loads and just stays on a black screen
+ Unity8 never loads and just stays on a black screen [unity8.log: ERROR:
+ QMirServer - Mir failed to start]
Changed in mir:
status: Incomplete → Confirmed
Changed in mir (Ubuntu):
status: Incomplete → Confirmed
Changed in unity8 (Ubuntu):
status: Incomplete → Confirmed
Changed in unity8-desktop-session (Ubuntu):
status: Incomplete → Confirmed
Changed in mir:
milestone: none → 0.24.0
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Come to think of it, duplicate bug 1543133 might be a better report of this problem.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Interesting. Here's the unity8.log from one machine when it's working and (randomly) not working. This might help us narrow down the point of failure:

WORKING:
qtmir.mir: MirServer created
qtmir.mir: Command line arguments passed to Qt: ("unity8")
[2016-06-07 09:39:06.463750] mirserver: Starting
[2016-06-07 09:39:06.472754] mirserver: Using nested cursor
[2016-06-07 09:39:06.508085] mirserver: Initial display configuration:
[2016-06-07 09:39:06.518572] mirserver: 0.31: LVDS 12.7" 280x160mm
[2016-06-07 09:39:06.518613] mirserver: Current mode 1366x768 60.01Hz
[2016-06-07 09:39:06.518661] mirserver: Preferred mode 1366x768 60.01Hz
[2016-06-07 09:39:06.518803] mirserver: Logical position +0+0

NOT WORKING:
qtmir.mir: MirServer created
qtmir.mir: Command line arguments passed to Qt: ("unity8")
[2016-06-07 09:13:14.327471] mirserver: Starting
[2016-06-07 09:13:14.337275] mirserver: Using nested cursor
ERROR: QMirServer - Mir failed to start

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Comment #5 agrees with bug 1589550, and they might explain how Mir might be hung on startup. QtMir only waits 10 seconds before giving up and committing suicide so if we're blocked by being on the wrong VT that could explain everything...

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Can you try lightdm 1.19.1 / 1.18.2 and see if that solves this?

Kevin DuBois (kdub)
Changed in mir:
milestone: 0.24.0 → 0.25.0
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This might have been resolved as bug 1576260 in Mir 0.23.0

Does anyone still see 'ERROR: QMirServer - Mir failed to start' in Ubuntu 16.10 yakkety?

Changed in mir:
status: Confirmed → Incomplete
Changed in mir (Ubuntu):
status: Confirmed → Incomplete
Changed in unity8 (Ubuntu):
status: Confirmed → Incomplete
Changed in unity8-desktop-session (Ubuntu):
status: Confirmed → Incomplete
tags: added: unity8-desktop
Changed in canonical-devices-system-image:
status: New → Incomplete
Changed in canonical-devices-system-image:
status: Incomplete → Fix Committed
milestone: none → 13
status: Fix Committed → Incomplete
milestone: 13 → backlog
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

De-prioritized per comment #27.

Changed in mir:
milestone: 0.25.0 → none
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unity8-desktop-session (Ubuntu) because there has been no activity for 60 days.]

Changed in unity8-desktop-session (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unity8 (Ubuntu) because there has been no activity for 60 days.]

Changed in unity8 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mir (Ubuntu) because there has been no activity for 60 days.]

Changed in mir (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mir because there has been no activity for 60 days.]

Changed in mir:
status: Incomplete → Expired
Changed in canonical-devices-system-image:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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