Ask Your Question
0

rviz: QXcbConnection: XCB error: 148 (Unknown)

asked 2021-08-20 04:43:52 -0500

Sergiiio gravatar image

updated 2021-08-22 13:37:03 -0500

Mike Scheutzow gravatar image

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.

edit retag flag offensive close merge delete

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...

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

Ranjit Kathiriya gravatar image Ranjit Kathiriya  ( 2021-08-20 06:16:24 -0500 )edit

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

Sergiiio gravatar image Sergiiio  ( 2021-08-23 02:48:37 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-08-20 15:44:30 -0500

Mike Scheutzow gravatar image

updated 2021-08-20 15:48:28 -0500

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.

edit flag offensive delete link more

Comments

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

Sergiiio gravatar image Sergiiio  ( 2021-08-24 03:45:00 -0500 )edit

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

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-08-24 07:14:59 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-08-20 04:43:52 -0500

Seen: 545 times

Last updated: Aug 20 '21