Mir

"standalone" demos crash when running on X11

Bug #1556144 reported by Alan Griffiths
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mir
Confirmed
Low
Cemil Azizoglu
mir (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Much the same happens for all three (mir_demo_standalone_render_surfaces, mir_demo_standalone_render_to_fb & mir_demo_standalone_render_overlay). Like this...

$ bin/mir_demo_standalone_render_to_fb || echo FAILED
MIR_CLIENT_PLATFORM_PATH=bin/../lib/client-modules/
MIR_SERVER_PLATFORM_PATH=bin/../lib/server-modules/
LD_LIBRARY_PATH=bin/../lib
exec=bin/mir_demo_standalone_render_to_fb.bin
[2016-03-17 17:07:28.206281] mirplatform: Found graphics driver: mir:android (version 0.21.0)
[2016-03-17 17:07:28.207053] mirplatform: Found graphics driver: mir:mesa-kms (version 0.21.0)
[2016-03-17 17:07:28.207915] mirplatform: Found graphics driver: mir:mesa-x11 (version 0.21.0)
[2016-03-17 17:07:28.208043] mirplatform: Found graphics driver: throw-on-creation (version 0.21.0)
[2016-03-17 17:07:28.208062] mirplatform: Found graphics driver: dummy (version 0.21.0)
[2016-03-17 17:07:28.208589] mircommon: Loading modules from: bin/../lib/server-modules/
[2016-03-17 17:07:28.208656] mircommon: Loading module: bin/../lib/server-modules/graphics-android.so.8
[2016-03-17 17:07:28.209366] mircommon: Loading module: bin/../lib/server-modules/graphics-mesa-kms.so.8
[2016-03-17 17:07:28.209731] mircommon: Loading module: bin/../lib/server-modules/server-mesa-x11.so.8
[2016-03-17 17:07:28.209753] mircommon: Loading module: bin/../lib/server-modules/input-evdev.so.5
[2016-03-17 17:07:28.212134] mircommon: Loading module: bin/../lib/server-modules/input-stub.so
[2016-03-17 17:07:28.213083] mircommon: Loading module: bin/../lib/server-modules/graphics-throw.so
[2016-03-17 17:07:28.213859] mircommon: Loading module: bin/../lib/server-modules/graphics-dummy.so
[2016-03-17 17:07:28.216410] mirplatform: Found graphics driver: mir:android (version 0.21.0)
[2016-03-17 17:07:28.217152] mirplatform: Found graphics driver: mir:mesa-kms (version 0.21.0)
[2016-03-17 17:07:28.217720] mirplatform: Found graphics driver: mir:mesa-x11 (version 0.21.0)
[2016-03-17 17:07:28.217793] mirplatform: Found graphics driver: throw-on-creation (version 0.21.0)
[2016-03-17 17:07:28.217809] mirplatform: Found graphics driver: dummy (version 0.21.0)
[2016-03-17 17:07:28.218007] mirserver: Selected driver: mir:mesa-x11 (version 0.21.0)
[2016-03-17 17:07:28.225821] x11-display: EGL Version 1.4
[2016-03-17 17:07:28.225868] x11-display: 1 configs found
[2016-03-17 17:07:28.225876] x11-display: 1 visuals found
[2016-03-17 17:07:28.225891] x11-display: Pixel depth = 24
Segmentation fault (core dumped)
FAILED

Now, mir_demo_standalone_render_overlay isn't supported on mesa - we should make that clear..

Tags: mesa-x11

Related branches

Changed in mir:
importance: Undecided → Low
description: updated
description: updated
tags: added: mesa-x11
Changed in mir:
assignee: nobody → Cemil Azizoglu (cemil-azizoglu)
status: New → In Progress
milestone: none → 0.25.0
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Half fixed in lp:mir, although I'm not sure if that's a recent improvement...

mir_demo_standalone_render_to_fb: Works on KMS but not X11 still (segfault).
mir_demo_standalone_render_surfaces: Works on both KMS and X11.
mir_demo_standalone_render_overlays: Crashes on KMS, and is just a blank window on X11.

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

The crash in mir_demo_standalone_render_to_fb appears to be glClear() segfaulting. Invalid context?...

#0 0x00007f0dd3cee7b5 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
(gdb) bt
#0 0x00007f0dd3cee7b5 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#1 0x00007f0dd3ceed31 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#2 0x00007f0dd3cf021e in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#3 0x000055fdd904a5cb in mir::draw::glAnimationBasic::render_gl (
    this=0x7ffc62fda7d0)
    at /home/dan/bzr/mir/trunk/examples/graphics_utils.cpp:129
#4 0x000055fdd9048e66 in <lambda(mir::graphics::DisplaySyncGroup&)>::<lambda(mir::graphics::DisplayBuffer&)>::operator()(mir::graphics::DisplayBuffer &) const
    (__closure=0x7ffc62fda6e0, buffer=...)
    at /home/dan/bzr/mir/trunk/examples/render_to_fb.cpp:76

Changed in mir:
milestone: 0.25.0 → 0.26.0
Changed in mir:
milestone: 0.26.0 → 1.0.0
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Can't tell if this was Fix Released in 0.26.0 or if that was a partial fix and the status should be triaged still.

Changed in mir:
status: In Progress → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Confirmed mir_demo_standalone_render_to_fb still segfaults on X.

But note bug 1663130 has confused the situation further.

Changed in mir:
milestone: 1.0.0 → none
status: Incomplete → Confirmed
Revision history for this message
Michał Sawicz (saviq) wrote :

Syncing task from Mir.

Changed in mir (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
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.