Robotics StackExchange | Archived questions

Gazebo launch error OSX 10.10.5

Hello, I followed the instructions to install gazebo on OSX but I get an error when running the command gazebo. I tried brew update and still get the same error. I've resolved the results from brew doctor and get the message: your system is ready to brew. I can't seem to find any log or figure a way to see what's going on behind the scene.

The other day I was getting the error message Segmentation Fault: 11 After running brew doctor I: Updated xCode to 7.1.1, deleted unexpected dylibs (libecomloadr.dylib), and updated homebrew

After running brew update today I got an error (Error. GUI Invalid arguments.)

I checked the OSX Console for system logs and see this entry below for gzserver and gzclient

Please help.


-gzclient.crash
Process:               gzclient-6.5.1 [7793]
Path:                  /usr/local/Cellar/gazebo6/6.5.1/bin/gzclient-6.5.1
Identifier:            gzclient-6.5.1
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        gazebo-6.5.1 [7791]
Responsible:           Terminal [357]
User ID:               501
Date/Time:             2015-12-09 00:39:22.746 -0500
OS Version:            Mac OS X 10.10.5 (14F27)
Report Version:        11
Anonymous UUID:        6AD91210-C9EF-767D-8E9E-4B46BEE0329D
Time Awake Since Boot: 140000 seconds
Crashed Thread:        0  Dispatch queue: com.apple.main-thread
Exception Type:        EXCBADACCESS (SIGSEGV)
Exception Codes:       KERNINVALIDADDRESS at 0xfffffffffffffffb
VM Regions Near 0xfffffffffffffffb:
--> shared memory          00007ffffff9d000-00007ffffff9e000 [    4K] r-x/r-x SM=SHM  

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libboostprogramoptions-mt.dylib 0x0000000110f7c7b2

So I've taken this one as far as I can go this weekend. I think I see what's going on based on jason's answer below. I built the previous version of boost from source (1.58.0) since I didn't have that version already installed and after launching gazebo I got the error:

dyld: Library not loaded: /usr/local/opt/boost/lib/libboost_thread-mt.dylib
  Referenced from: /usr/local/bin/gazebo
  Reason: image not found 

I looked in the directory for /usr/local/opt/boost/lib/libboost_thread-mt.dylib and it's not there. It's not in the 1.58.0 directory, but it is in the original 1.59.0 directory. I tried to copy it to /usr/local/opt/boost/lib/ but still no luck.

I've done a bunch of stuff between then, installing the previous version 5 of gazebo, trying to install version 7, uninstalled gazebo, unlinked everything, uninstalled every keg one by one, uninstalled homebrew, then re-installed everything. I think I pretty well banjaxed the whole setup. Happy Holiday's everyone! Leaving DC and off to San Jose for the weekend!

Asked by bender_rodriguez on 2015-12-09 00:59:03 UTC

Comments

Answers

I was able to work around this by switching back to the previous version of boost. In my case I had 1.58.0 already:

$ brew info boost
boost: stable 1.59.0 (bottled), HEAD
Collection of portable C++ source libraries
http://www.boost.org
/usr/local/Cellar/boost/1.58.0 (10718 files, 486M)
  Poured from bottle
/usr/local/Cellar/boost/1.59.0 (10928 files, 454M) *
  Poured from bottle

So:

$ brew switch boost 1.58.0
Cleaning /usr/local/Cellar/boost/1.58.0
Cleaning /usr/local/Cellar/boost/1.59.0
117 links created for /usr/local/Cellar/boost/1.58.0

And then I was back in business. Hope this works for you.

Asked by jason on 2015-12-21 19:19:17 UTC

Comments

Thanks for the info! I'll give it a try this evening.

Asked by bender_rodriguez on 2015-12-23 10:29:38 UTC

looks like only boost155 is latest available when I do brew search boost. It doesn't seem to allow me to switch to that either. I'll look at getting it from sourceforge and see if I can manually plop it in there. Heading out for the holiday so I'll get back to this next tuesday next week. Thanks again for the advice!

Asked by bender_rodriguez on 2015-12-23 17:43:14 UTC

I've confirmed the error. We need to rebuild the gazebo6 bottles when new versions of boost are released. I'll start working on this...

Asked by scpeters on 2015-12-22 21:10:40 UTC

Comments

Thank you!

Asked by bender_rodriguez on 2015-12-23 10:30:41 UTC

Thx a lot, saved me a tone of time. Jay

Asked by jaylee88 on 2017-03-29 04:45:00 UTC

Comments