Ask Your Question
8

rosrun crash on auto-complete (tab)

asked 2017-11-05 02:03:02 -0500

gsteinbauer gravatar image

updated 2017-11-05 02:47:16 -0500

gvdhoorn gravatar image

dear all,

i am using ros kinetic and ubuntu 16.04. since a few days I recognize the fact that if I hit tab after typing rosrun to see the available packages the console freezes and dies after a few seconds. when I remove the catkin workspace from the .bashrc I do not see that phenomena.

I am grateful for any hints

gerald

edit retag flag offensive close merge delete

Comments

First things first: try to rm -rf your build and devel directories. Does rosrun still crash? If not, build your workspace again, source it and try rosrun again.

gvdhoorn gravatar image gvdhoorn  ( 2017-11-05 02:48:04 -0500 )edit

I tried this already. If I remove the sourcing of the devel folder rosrun does not crash. If I build and add it as suggested I see the same crashing behavior. It's really wired as the catkin workspace is empty - containing no packages at all.

gsteinbauer gravatar image gsteinbauer  ( 2017-11-06 00:45:20 -0500 )edit

Then we're going to need more info: how did you install ROS, which platform is this (amd64, arm, something else). What is the output of env | grep -i ros | sort both with and withoutsource-ing any setup.bash. How did you create your workspace, what does it contain (any pkgs), etc.

gvdhoorn gravatar image gvdhoorn  ( 2017-11-06 01:25:20 -0500 )edit

@gsteinbauer Did you find the solution for this problem? I am facing the same issue

vacky11 gravatar image vacky11  ( 2017-12-27 12:51:39 -0500 )edit

@vacky11 I cannot reproduce this, but deleting contents of /var/crash solved it for me.

supermedo gravatar image supermedo  ( 2018-07-08 06:32:00 -0500 )edit

I am having the same problem. I have tried deleting the contents of /var/crash and catkin clean -y && catkin build to no avail.

mlautman gravatar image mlautman  ( 2018-07-31 14:26:34 -0500 )edit

5 Answers

Sort by ยป oldest newest most voted
2

answered 2018-11-17 21:13:13 -0500

Jonyu gravatar image

I also got this problem and I try to reinstall ros in the base of the crashed ros. fowllowed by the http://wiki.ros.org/kinetic/Installation/Ubuntu this problem is solved.

Hope above helps you.

edit flag offensive delete link more

Comments

Worked for me too

srlessard gravatar image srlessard  ( 2019-07-12 08:44:51 -0500 )edit

I think it worked for me too.

Anubhav Singh gravatar image Anubhav Singh  ( 2020-02-24 10:06:19 -0500 )edit
1

answered 2018-11-19 10:59:22 -0500

Wolf gravatar image

I've sieeen a similar problem with autocompletion some time ago due to some wrong entries in .bashrc

See this Q&A:

https://answers.ros.org/question/2047...

edit flag offensive delete link more
1

answered 2019-09-04 05:34:39 -0500

Anchellon gravatar image

Reinstalling ROS bash worked for me

sudo apt-get install --reinstall ros-kinetic-rosbash
edit flag offensive delete link more
0

answered 2020-09-21 00:44:28 -0500

130s gravatar image

updated 2020-09-21 00:44:44 -0500

I suspect the issue might be the same as #q352934, where so-called "upstream packages" version of rosbash, instead of ROS distro specific ros-%DISTRO%-rosbash is in the path.

Some answers suggests re-installing ros-%DISTRO%-rosbash. My guess what that resolves the problem is:

  1. ros-%DISTRO%-rosbash was installed.
  2. Then "upstream package" rosbash got somehow installed later. Path of rosrun was updated and points to this version. Not yet sure why but this somehow causes the mentioned issue.
  3. Reinstalling ros-%DISTRO%-rosbash then the path of rosrun is back to this version, which fixes.

I haven't looked further whether this theory is correct though.

edit flag offensive delete link more
-1

answered 2018-07-31 14:36:19 -0500

mlautman gravatar image

I have the same problem. Due to the character limit I couldn't post this as a comment.

On a clean workspace env | grep -i ros | sort

BASHRC_ENV=ros_mike
CMAKE_PREFIX_PATH=/opt/ros/kinetic
LD_LIBRARY_PATH=/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/x86_64-linux-gnu
PATH=/opt/ros/kinetic/bin:/home/mike/bin:/home/mike/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PKG_CONFIG_PATH=/opt/ros/kinetic/lib/pkgconfig:/opt/ros/kinetic/lib/x86_64-linux-gnu/pkgconfig
PYTHONPATH=/opt/ros/kinetic/lib/python2.7/dist-packages
ROSCONSOLE_CONFIG_FILE=/home/mike/bitchin_unix/config/rosconsole.yaml
ROSCONSOLE_FORMAT=${logger}: ${message}
ROS_DISTRO=kinetic
ROS_ETC_DIR=/opt/ros/kinetic/etc/ros
ROS_MASTER_URI=http://localhost:11311
ROS_PACKAGE_PATH=/opt/ros/kinetic/share
ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_VERSION=1

After . devel/setup.bash

BASHRC_ENV=ros_mike
CMAKE_PREFIX_PATH=/home/mike/ws_moveit/devel:/opt/ros/kinetic
LD_LIBRARY_PATH=/home/mike/ws_moveit/devel/lib:/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/x86_64-linux-gnu
PATH=/opt/ros/kinetic/bin:/home/mike/bin:/home/mike/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PKG_CONFIG_PATH=/home/mike/ws_moveit/devel/lib/pkgconfig:/opt/ros/kinetic/lib/pkgconfig:/opt/ros/kinetic/lib/x86_64-linux-gnu/pkgconfig
PYTHONPATH=/opt/ros/kinetic/lib/python2.7/dist-packages
ROSCONSOLE_CONFIG_FILE=/home/mike/bitchin_unix/config/rosconsole.yaml
ROSCONSOLE_FORMAT=${logger}: ${message}
ROS_DISTRO=kinetic
ROS_ETC_DIR=/opt/ros/kinetic/etc/ros
ROS_MASTER_URI=http://localhost:11311
ROS_PACKAGE_PATH=/home/mike/ws_moveit/src/moveit_tutorials:/opt/ros/kinetic/share
ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_VERSION=1

I am using Kinetic on 16.04 and I have this problem with every workspace on my computer.

edit flag offensive delete link more

Comments

I encountered this problem too.

itfanr gravatar image itfanr  ( 2018-09-10 02:44:43 -0500 )edit
1

Please open a new thread instead of using an answer section to provide info. Also, list up the packages in your workspace (using e.g. tree -d).

130s gravatar image 130s  ( 2018-09-19 14:24:06 -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: 2017-11-05 02:03:02 -0500

Seen: 1,385 times

Last updated: Sep 21 '20