segmentation fault on starting uwsim

asked 2018-05-14 14:39:27 -0600

touhid gravatar image

updated 2018-05-14 18:53:13 -0600

Hi All

I am using underwater simulation package(uwsim) and it was running smoothly until recently I got segmentation fault error. When I try to run rosrun uwsim uwsim or rosrun uwsim uwsim --disableShaders the error pops up. The error is:

~/catkin_ws_three/src/underwater_simulation/uwsim/src/uwsim: line 23: 14066 Segmentation fault      (core dumped) rosrun uwsim uwsim_binary --dataPath ~/.uwsim/data $@

I have seen several comments in the internet like, "~/.uwsim/data is missing, try to check for it", "run with --disableShaders" and so on. But, nothing solves my problem. I am not seeing any other information regarding this error in my system. I have tried to install uwsim again in a new catkin workspace and it still throws the error.

I am kind of stuck on this. Does anyone have any idea why this is happening? Any suggestion would be really helpful.

Edit: I have tried to debug with gdb(its a debugging tool), I got the below message:-

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6b957fd in boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*) ()
from /usr/local/lib/


edit retag flag offensive close merge delete


Has your problem been solved? I meet the same problem with you!

bukysun gravatar image bukysun  ( 2018-06-08 03:45:15 -0600 )edit

Hi, Yes I was able to solve my problem. The issue was: "Multiple versions of boost". I removed one version, then it started working again. So, check during running "catkin_make install", if there is any "conflict warning" for boost or for any other library, may be that is the problem.

touhid gravatar image touhid  ( 2018-06-08 08:31:19 -0600 )edit

Hi, I also found warning on possible conflict between boost.1.58 or boost.1.66. Any suggestion which version should I keep? Thanks. CC

/usr/bin/ld: warning:, needed by /opt/ros/kinetic/lib/, may conflict with

chyphen gravatar image chyphen  ( 2019-03-23 17:30:57 -0600 )edit