Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to run monitor image (qt related) #185

Open
botoph4 opened this issue May 9, 2023 · 2 comments
Open

fail to run monitor image (qt related) #185

botoph4 opened this issue May 9, 2023 · 2 comments

Comments

@botoph4
Copy link

botoph4 commented May 9, 2023

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
Copy link

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

@botoph4
Copy link
Author

botoph4 commented Jun 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants