Closed osrf-migration closed 4 years ago
Original comment by Alejandro Hernández (Bitbucket: ahcorde, GitHub: ahcorde).
I splitted the launch in server and client
the server seems to work without any problem
$ ign gazebo -s -v 4 -r shapes.sdf
[Msg] Ignition Gazebo Server v3.0.0
[Msg] Loading SDF world file[/Users/ahcorde/ignition/install/share/ignition/ignition-gazebo3/worlds/shapes.sdf].
[Dbg] [EntityComponentManager.cc:627] Using components of type [2251689575469537287] / [ign_gazebo_components.World].
[Dbg] [EntityComponentManager.cc:627] Using components of type [13994732549916512682] / [ign_gazebo_components.Name].
[Dbg] [EntityComponentManager.cc:627] Using components of type [12592746352568925681] / [ign_gazebo_components.Gravity].
[Dbg] [EntityComponentManager.cc:627] Using components of type [13224937992534617849] / [ign_gazebo_components.MagneticField].
[Dbg] [EntityComponentManager.cc:627] Using components of type [8753193699724811771] / [ign_gazebo_components.Wind].
[Dbg] [EntityComponentManager.cc:627] Using components of type [12173050716021724529] / [ign_gazebo_components.WorldLinearVelocity].
[Dbg] [EntityComponentManager.cc:627] Using components of type [15943768124495574352] / [ign_gazebo_components.WorldLinearVelocitySeed].
[Dbg] [EntityComponentManager.cc:627] Using components of type [3297509811873971798] / [ign_gazebo_components.ParentEntity].
[Dbg] [EntityComponentManager.cc:627] Using components of type [17100615127981600159] / [ign_gazebo_components.Scene].
[Dbg] [EntityComponentManager.cc:627] Using components of type [8064491505919932473] / [ign_gazebo_components.Level].
[Dbg] [EntityComponentManager.cc:627] Using components of type [2668898242563798256] / [ign_gazebo_components.DefaultLevel].
[Dbg] [EntityComponentManager.cc:627] Using components of type [11371360182141354106] / [ign_gazebo_components.LevelEntityNames].
[Dbg] [SimulationRunner.cc:745] Loaded system [ignition::gazebo::systems::Physics] for entity [1]
[Msg] Create service on [/world/shapes/create]
[Msg] Remove service on [/world/shapes/remove]
[Msg] Pose service on [/world/shapes/set_pose]
[Dbg] [SimulationRunner.cc:745] Loaded system [ignition::gazebo::systems::UserCommands] for entity [1]
[Dbg] [SimulationRunner.cc:745] Loaded system [ignition::gazebo::systems::SceneBroadcaster] for entity [1]
[Dbg] [EntityComponentManager.cc:627] Using components of type [6687176221774458630] / [ign_gazebo_components.Model].
[Dbg] [EntityComponentManager.cc:627] Using components of type [6612894081701502240] / [ign_gazebo_components.Pose].
[Dbg] [EntityComponentManager.cc:627] Using components of type [8546580419506082455] / [ign_gazebo_components.Static].
[Dbg] [EntityComponentManager.cc:627] Using components of type [9712747055438129860] / [ign_gazebo_components.WindMode].
[Dbg] [EntityComponentManager.cc:627] Using components of type [5081358965268446661] / [ign_gazebo_components.Link].
[Dbg] [EntityComponentManager.cc:627] Using components of type [8112400427272910195] / [ign_gazebo_components.Inertial].
[Dbg] [EntityComponentManager.cc:627] Using components of type [16454635107327670381] / [ign_gazebo_components.Visual].
[Dbg] [EntityComponentManager.cc:627] Using components of type [13011964647677164955] / [ign_gazebo_components.CastShadows].
[Dbg] [EntityComponentManager.cc:627] Using components of type [17121648710877364109] / [ign_gazebo_components.Geometry].
[Dbg] [EntityComponentManager.cc:627] Using components of type [9853217982010720764] / [ign_gazebo_components.Material].
[Dbg] [EntityComponentManager.cc:627] Using components of type [17938588655714334139] / [ign_gazebo_components.Collision].
[Dbg] [EntityComponentManager.cc:627] Using components of type [9225962031573086509] / [ign_gazebo_components.CollisionElement].
[Dbg] [EntityComponentManager.cc:627] Using components of type [10522242218202596205] / [ign_gazebo_components.CanonicalLink].
[Dbg] [EntityComponentManager.cc:627] Using components of type [3866641186784191835] / [ign_gazebo_components.Light].
[Msg] Loaded level [3]
[Msg] Serving world controls on [/world/shapes/control] and [/world/shapes/playback/control]
[Msg] Serving GUI information on [/world/shapes/gui/info]
[Msg] World [shapes] initialized with [1ms] physics profile.
[Msg] Found no publishers on /stats, adding root stats topic
[Msg] Found no publishers on /clock, adding root clock topic
[Dbg] [SimulationRunner.cc:394] Creating PostUpdate worker threads: 2
[Dbg] [SimulationRunner.cc:407] Creating postupdate worker thread (0)
[Msg] Serving scene information on [/world/shapes/scene/info]
[Msg] Serving graph information on [/world/shapes/scene/graph]
[Msg] Serving full state on [/world/shapes/state]
[Msg] Publishing scene information on [/world/shapes/scene/info]
[Msg] Publishing entity deletions on [/world/shapes/scene/deletion]
[Msg] Publishing state changes on [/world/shapes/state]
[Msg] Publishing pose messages on [/world/shapes/pose/info]
[Msg] Publishing dynamic pose messages on [/world/shapes/dynamic_pose/info]
$ ign gazebo -g
objc[43104]: Class OgreConfigWindowDelegate is implemented in both /usr/local/opt/ogre1.9/lib/libOgreMain.1.9.0.dylib (0x1434a1dc0) and /usr/local/opt/ogre2.1/lib/libOgreMain.2.1.0.dylib (0x14d2c1838). One of the two will be used. Which one is undefined.
[GUI] [Err] [Ogre2RenderEngine.cc:278] Failed to load render-engine
[GUI] [Err] [BaseRenderEngine.cc:55] Render-engine must be loaded first
/Users/ahcorde/ignition/install/lib/ruby/ignition/cmdgazebo3.rb:312: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0005 p:---- s:0048 e:000047 CFUNC :call
c:0004 p:0018 s:0043 e:000042 METHOD /Users/ahcorde/ignition/install/lib/ruby/ignition/cmdgazebo3.rb:312
c:0003 p:0814 s:0037 e:000036 METHOD /Users/ahcorde/ignition/install/lib/ruby/ignition/cmdgazebo3.rb:357
c:0002 p:0635 s:0019 E:001738 EVAL /Users/ahcorde/ignition/install/bin/ign:267 [FINISH]
c:0001 p:0000 s:0003 E:001910 (none) [FINISH]
-- Ruby level backtrace information ----------------------------------------
/Users/ahcorde/ignition/install/bin/ign:267:in `<main>'
/Users/ahcorde/ignition/install/lib/ruby/ignition/cmdgazebo3.rb:357:in `execute'
/Users/ahcorde/ignition/install/lib/ruby/ignition/cmdgazebo3.rb:312:in `runGui'
/Users/ahcorde/ignition/install/lib/ruby/ignition/cmdgazebo3.rb:312:in `call'
-- Machine register context ------------------------------------------------
rax: 0x000070000dbffa00 rbx: 0x00007fb3cdc210c8 rcx: 0x0000000000000000
rdx: 0x0000000000000000 rdi: 0x000070000dbffa00 rsi: 0x0000000000000000
rbp: 0x000070000dbffa20 rsp: 0x000070000dbffa00 r8: 0x000007fb3c8deed3
r9: 0x0000000000000002 r10: 0x00007fb3c8d00000 r11: 0x00007fb3ca3a1f60
r12: 0x00007fb3cdc20990 r13: 0x00007fb3cf55c190 r14: 0x000070000dbffa60
r15: 0x000070000dbffa48 rip: 0x0000000142c18282 rfl: 0x0000000000010246
-- C level backtrace information -------------------------------------------
'/usr/lib/system/libsystem_platform.dylib' is not a 64-bit Mach-O file!
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/libruby.2.6.dylib(rb_vm_bugreport+0x82) [0x7fff43726854]
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/libruby.2.6.dylib(0x7fff43600c9c) [0x7fff43600c9c]
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/libruby.2.6.dylib(0x7fff436c0329) [0x7fff436c0329]
/usr/lib/system/libsystem_platform.dylib(_sigtramp+0x1d) [0x7fff6f06c42d]
Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).
Nice, we could add these to the OSX source install tutorial, maybe under a new section for Catalina. I wonder if we would be able to fix these files upstream. Thoughts, @scpeters ?
Original report (archived issue) by Alejandro Hernández (Bitbucket: ahcorde, GitHub: ahcorde).
macOS Catalina
Modified headers
I modified some header on my filesystem to be able to compile Ignition-Citadel
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Headers/ruby/ruby/intern.h
I apply this path:
Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Headers/ruby/ruby/config.h`
Compile
Running
But when I try to run some of the examples. I see big error traces: