Running unittests that require access to the display server crash

Bug #1253044 reported by Omer Akram
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-mir
Triaged
Medium
Unassigned

Bug Description

trying to run QtMultimedia tests on the phone on Mir results in the test crashing on the very start with the below error:

QUbuntu: Could not create application instance
Aborted (core dumped)

I also tried specifying a desktop file and in that case I get http://paste.ubuntu.com/6447502/
Running these tests is important on the phone to make sure that QtMultimedia upstream APIs are working with the Ubuntu phone backends.

Tags: qa-touch
Omer Akram (om26er)
summary: - Running unittests that require access to the display server don't run
+ Running unittests that require access to the display server crash
tags: added: qa-touch
description: updated
Revision history for this message
Michał Sawicz (saviq) wrote :

Right, we need some kind of a wrapper that will let us just run a binary via upstart like any other .desktop-file-having app.

Revision history for this message
Michał Sawicz (saviq) wrote :

Short-term solution: if things don't actually need access to the display, exporting QT_QPA_PLATFORM=minimal helps.

Revision history for this message
Michał Sawicz (saviq) wrote :

A first stab at such a wrapper, courtesy of mzanetti:

/usr/share/applications/dummyrunner.desktop:
---------------------------
[Desktop Entry]
Type=Application
Name=Dummy
GenericName=dummy
Comment=Dummy desktop file
Exec=/home/phablet/dummyrunner %u
Terminal=false
X-Ubuntu-Touch=true
---------------------------

/home/phablet/dummyrunner:
---------------------------
#!/bin/bash
echo running $@
exec $@
---------------------------

usage: upstart-app-launch dummyrunner /path/to/executable

Revision history for this message
kevin gunn (kgunn72) wrote :

@Omer can you give the proposed wrapper a try

Changed in unity-mir:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Omer Akram (om26er) wrote :

That did not work for me, but QT_QPA_PLATFORM=minimal is working fine since then.

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.