Mir

[regression] Mir demo servers don't start at all in release 0.13.1 (mir-platform-graphics-* never installed)

Bug #1460868 reported by Daniel van Vugt
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mir
Won't Fix
High
Chris Halse Rogers
0.13
Won't Fix
High
Unassigned
unity8-desktop-session
Fix Released
High
Christopher Townsend
unity8-desktop-session (Ubuntu)
Fix Released
High
Christopher Townsend

Bug Description

[regression] Mir demo servers have "lost" the --vt option in the 0.13 release in wily.

It's treated as an error and not mentioned in the help text any more:

# mir_demo_server_minimal --vt 1
Unknown command line options: --vt 1

On a related note, the servers also don't run at all:

root@haz:~# mir_demo_server_minimal
[1433209192.495125] Server: Starting
[1433209192.495541] Loader: Loading modules from: /usr/lib/x86_64-linux-gnu/mir/server-platform
[1433209192.495614] <ERROR> Loader: Failed to load libraries from path: /usr/lib/x86_64-linux-gnu/mir/server-platform (error was:No such file or directory)
ERROR: Dynamic exception type: St12system_error
std::exception::what: No such file or directory

root@haz:~# mir_proving_server
[1433209202.940518] Loader: Loading modules from: /usr/lib/x86_64-linux-gnu/mir/server-platform
[1433209202.940633] <ERROR> Loader: Failed to load libraries from path: /usr/lib/x86_64-linux-gnu/mir/server-platform (error was:No such file or directory)
ERROR: Dynamic exception type: St12system_error
std::exception::what: No such file or directory

Maybe the mir-demos package is missing some dependency?

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

Yep, the issue is just that we're missing package `mir-platform-graphics-mesa2'

Is that an intentional omission to our dependencies?

Changed in mir:
importance: Critical → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix:
sudo apt-get install mir-platform-graphics-mesa2

summary: - [regression] Mir demo servers have "lost" the --vt option and also fail
- to start at all
+ [regression] Mir demo servers don't start at all in release 0.13.1 (mir-
+ platform-graphics-* never installed)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

It is intentional. C.f. -c 2295 and -c 2316. From the former commit message:

  Drop libmirclient8 dependency on client-platform drivers.

  Similar to libX11, which doesn't depend on an X11 server.

  This dependency is satisfied by other parts of the stack; the desktop-next and touch
  seeds.

This implies that the seed ought to be pulling in the drivers.

I don't have a wily install to hand but it sounds like mir-graphics-drivers-desktop is still pulling mir-platform-graphics-mesa1. (Which is what it does on vivid.)

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

There is no mir-graphics-drivers-desktop, because Desktop Next is not installed either. Just a fresh distro plus mir-demos.

This might be intentional but if it trips up myself and kgunn in the same day maybe we need more smarts, somewhere.

Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

Assigning to RAOF as he has the background on this.

Changed in mir:
assignee: nobody → Chris Halse Rogers (raof)
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

From bregma on IRC mir channel :
"our Unity8 desktop session no longer comes up in Wily unless we explicitly install some Mesa packages: it looks like the Mir package dependency chains have changed recently that means software in the Ubuntu archives are currently broken"

Revision history for this message
Chris Halse Rogers (raof) wrote :

So. The ubuntu-desktop-next metapackage has a dependency on mir-graphics-drivers-desktop, which in turn has a dependency on mir-platform-graphics-mesa2.

So having the ubuntu-desktop-next metapackage installed should be sufficient to get you appropriate drivers.

We have a task for making the error message more useful to end-users on our backlog.

Adding a dependency on mir-graphics-drivers-desktop to unity8-desktop-session-mir is probably the best “solution”.

The next level of solution is fixing germinate so that we can pre-seed dependencies. Then we could add a mir-graphics-drivers-mesa | mir-graphics-drivers-android dependency on something and not pull in mesa on the phone. Even that's not really right; we're merely hoping that no one installing using apt will need the android drivers.

Changed in mir:
status: Triaged → Won't Fix
Revision history for this message
Christopher Townsend (townsend) wrote :

I'm adding the unity8-desktop-session package to this bug report since this is where RAOF says we need to add a dependency. This won't fix Daniel's use case in the bug description since he is just trying the mir_demo_server on a desktop.

At any rate, anyone using the unity8-desktop-session-mir package will have the correct packages installed once the "fix" goes in.

Changed in unity8-desktop-session:
status: New → In Progress
Changed in unity8-desktop-session (Ubuntu):
status: New → In Progress
Changed in unity8-desktop-session:
importance: Undecided → High
Changed in unity8-desktop-session (Ubuntu):
importance: Undecided → High
Changed in unity8-desktop-session:
assignee: nobody → Christopher Townsend (townsend)
Changed in unity8-desktop-session (Ubuntu):
assignee: nobody → Christopher Townsend (townsend)
Changed in unity8-desktop-session:
milestone: none → 1.1.0
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It's still a regression. "apt-get install mir-demos" does not work, when it used to work.

Although I understand the "Won't Fix" stance too. That's fine, but maybe we can think of some more creative or useful solution still. Like changing the error message you get when no drivers are present from the cryptic text it is to something simple and informative that allows the user to fix the problem themselves (see also bug 1381398).

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

This bug was fixed in the package unity8-desktop-session - 1.0.12+15.10.20150609-0ubuntu1

---------------
unity8-desktop-session (1.0.12+15.10.20150609-0ubuntu1) wily; urgency=medium

  [ Chris Townsend ]
  * Add a dependency for mir-graphics-drivers-desktop since the Mir
    packaging does not provide a way to pull this meta-package in.
    Without this package, the Unity 8 desktop session will not start.
    (LP: #1460868)
  * Create the wizard-has-run file if it doesn't exist when logging into
    Unity 8 to bypass the OOBE wizard on a desktop session. (LP:
    #1463065)

 -- CI Train Bot <email address hidden> Tue, 09 Jun 2015 14:17:17 +0000

Changed in unity8-desktop-session (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Note this bug is about the Mir demo servers not starting. unity8-desktop-session has nothing to do with that so it should have been a separate bug really.

Revision history for this message
Christopher Townsend (townsend) wrote :

Hi Daniel,

I went back and forth in my mind on whether I should use a new bug for the unity8-desktop-session task. I decided to use this bug because 1) This was the bug pointed out by the Mir team when we inquired why mir-graphics-drivers-desktop was not getting installed and 2) It's really the same bug that affects us as well. Given that, I thought it would be OK to just use the same bug for our project as well. Sorry for any confusion I may have caused in this bug:)

Changed in unity8-desktop-session:
status: In Progress → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It's fine. Just one of those cases where if you want the issue really truly fixed then you'll need Fix Released across all the bug tasks.

Changed in mir:
milestone: 0.14.0 → 0.15.0
milestone: 0.15.0 → none
Stephen M. Webb (bregma)
Changed in unity8-desktop-session:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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