ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

rqt_graph error

asked 2019-07-19 14:58:13 -0500

John_Crabs gravatar image

updated 2022-01-22 16:10:01 -0500

Evgeny gravatar image

Hello, I am using Arch Linux and I installed ros-melodic-desktop-full. However when I try to run rqt_graph i have the following errors.

$ rosrun rqt_graph rqt_graph
QApplication: invalid style override passed, ignoring it.
    Available styles: dsemilight, dsemidark, dlight, ddark, Windows, Fusion
"dot" with args ['-Tdot', '/tmp/tmpylxzm6lx'] returned code: 1

stdout, stderr:
 b''
b'Error: /usr/lib/graphviz/config6 is zero sized, or other read error.\nFormat: "dot" not recognized. Use one of:\n'

PluginHandlerDirect._restore_settings() plugin "rqt_graph/RosGraph#0" raised an exception:
Traceback (most recent call last):
  File "/opt/ros/melodic/lib/python3.7/site-packages/qt_gui/plugin_handler_direct.py", line 116, in _restore_settings
    self._plugin.restore_settings(plugin_settings_plugin, instance_settings_plugin)
  File "/opt/ros/melodic/lib/python3.7/site-packages/rqt_graph/ros_graph.py", line 217, in restore_settings
    self._refresh_rosgraph()
  File "/opt/ros/melodic/lib/python3.7/site-packages/rqt_graph/ros_graph.py", line 246, in _refresh_rosgraph
    self._update_graph_view(self._generate_dotcode())
  File "/opt/ros/melodic/lib/python3.7/site-packages/rqt_graph/ros_graph.py", line 280, in _generate_dotcode
    hide_dynamic_reconfigure=hide_dynamic_reconfigure)
  File "/opt/ros/melodic/lib/python3.7/site-packages/rqt_graph/dotcode.py", line 877, in generate_dotcode
    dotcode = dotcode_factory.create_dot(dotgraph)
  File "/opt/ros/melodic/lib/python3.7/site-packages/qt_dotgraph/pydotfactory.py", line 168, in create_dot
    dot = graph.create_dot()
  File "/usr/lib/python3.7/site-packages/pydot.py", line 1723, in new_method
    format=f, prog=prog, encoding=encoding)
  File "/usr/lib/python3.7/site-packages/pydot.py", line 1945, in create
    assert process.returncode == 0, process.returncode
AssertionError: 1

"dot" with args ['-Tdot', '/tmp/tmp84jgo2t0'] returned code: 1

stdout, stderr:
 b''
b'Error: /usr/lib/graphviz/config6 is zero sized, or other read error.\nFormat: "dot" not recognized. Use one of:\n'

Traceback (most recent call last):
  File "/opt/ros/melodic/lib/python3.7/site-packages/rqt_graph/ros_graph.py", line 246, in _refresh_rosgraph
    self._update_graph_view(self._generate_dotcode())
  File "/opt/ros/melodic/lib/python3.7/site-packages/rqt_graph/ros_graph.py", line 280, in _generate_dotcode
    hide_dynamic_reconfigure=hide_dynamic_reconfigure)
  File "/opt/ros/melodic/lib/python3.7/site-packages/rqt_graph/dotcode.py", line 877, in generate_dotcode
    dotcode = dotcode_factory.create_dot(dotgraph)
  File "/opt/ros/melodic/lib/python3.7/site-packages/qt_dotgraph/pydotfactory.py", line 168, in create_dot
    dot = graph.create_dot()
  File "/usr/lib/python3.7/site-packages/pydot.py", line 1723, in new_method
    format=f, prog=prog, encoding=encoding)
  File "/usr/lib/python3.7/site-packages/pydot.py", line 1945, in create
    assert process.returncode == 0, process.returncode
AssertionError: 1
Aborted (core dumped)

Has anyone any idea what's going wrong? Other rqt_* commands runs fine.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
-1

answered 2020-07-15 08:33:19 -0500

I met the same problem today.

There is a simple solution for you. Type this in a terminal: sudo dot -c

I think this should work.

edit flag offensive delete link more

Comments

If I use windows 10 and I have the same problem what I have to do??

Cayetano gravatar image Cayetano  ( 2021-01-01 04:23:05 -0500 )edit

perfect it works well!

xin gravatar image xin  ( 2021-01-25 12:32:19 -0500 )edit

it is the competence reason about dot ,but what is the meaning of -c?

xin gravatar image xin  ( 2021-01-25 12:34:10 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2019-07-19 14:12:22 -0500

Seen: 1,014 times

Last updated: Jul 19 '19