eProsima / Fast-DDS-monitor

eProsima Fast DDS Monitor is a graphical desktop application aimed at monitoring DDS environments deployed using the eProsima Fast DDS library. Looking for commercial support? Contact info@eprosima.com
https://eprosima.com
GNU General Public License v3.0
39 stars 10 forks source link

fail to run monitor image (qt related) #185

Open botoph4 opened 1 year ago

botoph4 commented 1 year ago

Hi,

when I was trying to use monitor by docker run -it --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix ubuntu-fastdds-monitor:v1.4.0

docker run -it --privileged -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix ce15f448edf4
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

/root/entrypoint.bash: line 61:    28 Aborted                 /bin/bash -c "$FULL_CMD"

I got this error msg which seems related to gui issue. When looked around others solved this issue by adding --no-ceritfication at the end, which not works for me.

System: Ubuntu 22.04 Monitor version: 1.4.0

argolomb commented 1 year ago

Hi, try to add in terminal: xhost +local:root or xhost +

botoph4 commented 1 year ago

Hi, try to add in terminal: xhost +local:root or xhost +

Hi @argolomb,

➜ xhost +
access control disabled, clients can connect from any host

Or

➜  xhost +local:root
non-network local connections being added to access control list

then execute docker run ..., and got the same error as before, seems not work for me.