trivial app fails to appear in shell and crashes it on close
Bug #1425593 reported by
Gerry Boland
on 2015-02-25
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | qtmir (Ubuntu) |
High
|
Unassigned | ||
| | unity8 (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
Take this code:
#include <QApplication>
#include <QWidget>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QWidget *w = new QWidget();
w->
return app.exec();
}
and this Qt pro file:
QT += core gui widgets
TARGET = simple-qwidget
TEMPLATE = app
SOURCES += main.cpp
and build on the device. On unity8 run with:
./simple-qwidget --desktop_
You'll see the splash screen appear, but you'll never see a frame from the app.
When I Ctrl+C the app, unity8 crashes
Gerry Boland (gerboland)
on 2015-02-25
| Changed in qtmir: | |
| importance: | Undecided → High |
| status: | New → Confirmed |
kevin gunn (kgunn72)
on 2015-02-26
| tags: | added: vivid |
kevin gunn (kgunn72)
on 2015-02-26
| tags: | added: vivid-stab-candidate |
Albert Astals Cid (aacid)
on 2015-03-09
| Changed in unity8 (Ubuntu): | |
| assignee: | nobody → Albert Astals Cid (aacid) |
| Albert Astals Cid (aacid) wrote : | #1 |
| Changed in unity8 (Ubuntu): | |
| assignee: | Albert Astals Cid (aacid) → nobody |
kevin gunn (kgunn72)
on 2015-03-10
| tags: | removed: vivid-stab-candidate |
| Daniel d'Andrada (dandrader) wrote : | #2 |
It works fine nowadays.
| Changed in unity8 (Ubuntu): | |
| status: | New → Fix Released |
| Changed in qtmir: | |
| status: | Confirmed → Fix Released |
Michał Sawicz (saviq)
on 2017-03-13
| affects: | qtmir → qtmir (Ubuntu) |
To post a comment you must log in.


Had a look at this, the issue is that the application is creating two surfaces even if the second is never visible nor painted on. Since we do not support multiple surfaces per app at the moment this is breaking in qtmir.
This would be fixed by the multi-window support in qtmir/unity8