Robotics StackExchange | Archived questions

rviz: QXcbConnection: XCB error: 148 (Unknown)

I have the following problem:

turtlebot@turtlebot:~$ rosrun rviz rviz
[ INFO] [1629452360.551387813]: rviz version 1.12.17
[ INFO] [1629452360.551459179]: compiled against Qt version 5.5.1
[ INFO] [1629452360.551470994]: compiled against OGRE version 1.9.0 (Ghadamon)
QXcbConnection: XCB error: 148 (Unknown), sequence: 167, resource id: 0, major code: 140 (Unknown), minor code: 20
Violación de segmento (`core' generado)

I see many solutions in internet like this: #q343708 or this #q315412

but i can't solve the error.

Asked by Sergiiio on 2021-08-20 04:43:52 UTC

Comments

This is a Qt error, but not an rviz error.

Do you use the standard Qt installation on Ubuntu 20.04?

https://github.com/osrf/rocker/issues/146

https://bugreports.qt.io/browse/QTBUG-48453

Asked by Ranjit Kathiriya on 2021-08-20 06:16:24 UTC

I am using ubuntu 16.04 with ROS Kinetic in a Intel Nuc

Asked by Sergiiio on 2021-08-23 02:48:37 UTC

Answers

This error is because the rviz command wants to create a GUI window on a desktop, but it is not finding a desktop. Are you trying to run this command on a real robot? When used with a real robot, usually rviz is run on a separate laptop/desktop computer. To do that requires that you set up a ros network between the laptop and the robot.

If you put the keywords turtlebot rviz into the search bar at the top of this page, you will get a lot of hits.

Asked by Mike Scheutzow on 2021-08-20 15:44:30 UTC

Comments

I am using a real turtlebot with an Intel NUC. I use teamviewer to remote control rviz

Asked by Sergiiio on 2021-08-24 03:45:00 UTC

Does rviz display a window on the NUC desktop if you log in directly, without using any remote software like teamviewer?

Asked by Mike Scheutzow on 2021-08-24 07:14:59 UTC