rosrun rviz rviz Xserver error
"qt.qpa.xcb: could not connect to display {192.168..}:0.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.
Aborted"
whenever i run "rosrun rviz rviz" iam getting this error i have no idea why this error occurs,i am a newbie so please help sort this out
Asked by nullspace on 2020-08-21 12:11:46 UTC
Answers
I happened to solve this rviz issue by following this answer: https://askubuntu.com/a/1069502/688415
Relevant parts:
I had this error message when trying to run "Stellarium".
With strace I found that the missing file was
libxcb-xinerama.so.0
. I had to reinstalllibxcb-xinerama0
to make it work:sudo apt-get install --reinstall libxcb-xinerama0
Asked by IanCol on 2020-10-19 14:43:22 UTC
Comments
Please do not post link-only answers. They have a tendency to go stale pretty quickly.
I've quoted the relevant part and added it to your answer.
Asked by gvdhoorn on 2020-10-20 03:02:16 UTC
Comments
You'll probably need to add some info here: what Operating System, how is ROS installed (debians or source), etc are you using. Are you using any hardware that is not a standard PC (for instance, are you on a raspberry Pi, or other ARM-based platform).
Asked by fergs on 2020-08-22 10:14:30 UTC