Mir

[regression] Mir servers crash on start-up. "dummy" graphics driver selected and then: ERROR: Dynamic exception type: St13runtime_error - std::exception::what: Link failed:

Bug #1474720 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Critical
Daniel van Vugt
mir (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

All Mir demo servers are now crashing on start-up, with very little explanation:

[1437011956.469215] mirserver: Selected driver: dummy (version 0.15.0)
[1437011956.492673] mirserver: Using software cursor
[1437011956.493899] mirserver: Mir version 0.15.0
ERROR: Dynamic exception type: St13runtime_error
std::exception::what: Link failed:

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

Bisected the issue. It was introduced in:

------------------------------------------------------------
revno: 2742 [merge]
author: Cemil Azizoglu <email address hidden>
committer: Tarmac
branch nick: development-branch
timestamp: Tue 2015-07-14 10:05:04 +0000
message:
  Use command line options during platform probe.

  Approved by PS Jenkins bot, Chris Halse Rogers, Alexandros Frantzis.
------------------------------------------------------------

Changed in mir (Ubuntu):
status: New → Invalid
Changed in mir:
status: In Progress → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Fix committed: Reverted r2742 in r2746.

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

I'm not sure what you saw but I don't think it was caused by this.

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

I am sure because I bisected the issue meaning that I verified r2741 works and r2742 doesn't.

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

And crashing again in r2749 :(

[1437011956.469215] mirserver: Selected driver: dummy (version 0.15.0)
[1437011956.492673] mirserver: Using software cursor
[1437011956.493899] mirserver: Mir version 0.15.0
ERROR: Dynamic exception type: St13runtime_error
std::exception::what: Link failed:

Verified r2748 does not have the crash:

[1437011965.849147] mirserver: Selected driver: mesa-kms (version 0.15.0)
[1437011966.168966] mirserver: Using hardware cursor
[1437011966.169684] mirserver: Mir version 0.15.0
[1437011966.174499] mirserver: GL vendor: Intel Open Source Technology Center
[1437011966.174518] mirserver: GL renderer: Mesa DRI Intel(R) Haswell Desktop
[1437011966.174525] mirserver: GL version: OpenGL ES 3.0 Mesa 10.5.9
[1437011966.174531] mirserver: GLSL version: OpenGL ES GLSL ES 3.00
[1437011966.174540] mirserver: GL max texture size = 8192
[1437011966.174556] mirserver: GL framebuffer bits: RGBA=8880, depth=0, stencil=0

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

The error appears to originate in gl_program_family.cpp, so could be driver specific. I'm using Intel i915.

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

It might be related to bug 1416482 which was around the same area.

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

And r2749 built with clang looks similar:

[1437014933.264840] mirserver: Selected driver: dummy (version 0.15.0)
[1437014933.280540] mirserver: Using software cursor
[1437014933.281941] mirserver: Mir version 0.15.0
[1437014933.282095] mirserver: GL vendor:
[1437014933.282104] mirserver: GL renderer:
[1437014933.282107] mirserver: GL version:
[1437014933.282109] mirserver: GLSL version:
[1437014933.282113] mirserver: GL max texture size = 0
[1437014933.282115] mirserver: GL framebuffer bits: RGBA=0000, depth=0, stencil=0
ERROR: Dynamic exception type: St13runtime_error
std::exception::what: Link failed: ����(

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

Uh, of course the problem was staring at me right there on the first line:

[1437014933.264840] mirserver: Selected driver: dummy (version 0.15.0)

That's not a driver that will work. :)

summary: - [regression] Mir servers crash on start-up: ERROR: Dynamic exception
- type: St13runtime_error - std::exception::what: Link failed:
+ [regression] Mir servers crash on start-up. "dummy" graphics driver
+ selected and then: ERROR: Dynamic exception type: St13runtime_error -
+ std::exception::what: Link failed:
description: updated
Revision history for this message
Andreas Pokorny (andreas-pokorny) wrote :

could it be that you excluded mesa-kms from the build i.e. maybe by still having 'mesa' inside MIR_PLATFORM (CMakeCache.txt).
Additionally the why is that log so short. It should mention the other drivers found.. so even if the MIR_PLATFORM is wrong android platform binary should be listed.

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

Daniel, since none of us here are having any luck reproducing this issue, can I get your help looking into this? Could it be something specific to your environment/setup?

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

... or perhaps to the way you run the server? I build and run locally from uninstalled binaries.

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

I made some tweaks. Can you try with this branch? lp:~cemil-azizoglu/mir/use-options-on-probing
Thanks

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

The log is not "short". I just copied and pasted the relevant bits :)

Changed in mir:
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.