Running Qt apps inside a 18.04 container crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtbase-opensource-src (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
What happened:
1) Install a container system (eg Docker, LXD) - I'm using Docker
2) Create a container which is Ubuntu 18.04
3) Install a Qt app, eg qtcreator, inside the container
4) Run the container so that it shows the hosts X11 socket
5) Notice that the application fails to start
What I expected to happen:
At step 5 for the application to start.
Note that the same steps work fine for Ubuntu 16.04 and 17.10 - and if it matters my host is 17.10.
Here is a stacktrace of the crash https:/
Here is a Dockerfile that reproduces the issue https:/
$ sudo apt install docker.io
$ sudo docker build -t qtbug .
$ sudo docker run --rm -ti -e DISPLAY --net=host --cap-add=
This should enter you into the gdb session.
Note I have tried using the .run offline installer of Qt 5.6/5.9/5.11, what seems to happen is that they work on Ubuntu 16.04, 17.10 but fail on 18.04 - this is the stacktrace for reference https:/ /pastebin. ubuntu. com/p/Yzj5gsmwQ 3/
So it seems possible that it might be some underlying change to the platform (maybe something like dbus? or a new config/dir I need to enable).
Furthermore it looks like this issue may affect Qt applications when they try to run as a snap under the core18 snap. https:/ /github. com/snapcore/ core18/ issues/ 4