-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bazel: Updates for garden (minus ABI break) #598
base: gz-physics6
Are you sure you want to change the base?
Conversation
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
d440204
to
1491536
Compare
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## gz-physics6 #598 +/- ##
===============================================
+ Coverage 78.52% 78.67% +0.14%
===============================================
Files 140 140
Lines 7670 7652 -18
===============================================
- Hits 6023 6020 -3
+ Misses 1647 1632 -15 ☔ View full report in Codecov by Sentry. |
dartsim/src/plugin.cc
Outdated
@@ -62,6 +62,7 @@ class Plugin : | |||
public virtual SimulationFeatures, | |||
public virtual WorldFeatures { }; | |||
|
|||
#ifndef GZ_PHYSICS_BAZEL_BUILD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @azeey this is what breaks when dartsim is statically linked via bazel. Removing this section causes the cashes to go away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💸
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found that loading the plugins with RTLD_NODELETE
and removing this section fixes the issue on macOS and Linux. We do that for Gazebo plugins already, so I think we should do the same for physics engines.
Tested here: gazebosim/gz-bazel#70 |
@@ -28,27 +28,28 @@ namespace gz | |||
{ | |||
namespace physics | |||
{ | |||
inline namespace GZ_PHYSICS_VERSION_NAMESPACE { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given that this is still in the header file, is it ok to change it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just moved it a little further down (
gz-physics/src/InstallationDirectories.cc
Line 149 in ddcd72b
inline namespace GZ_PHYSICS_VERSION_NAMESPACE { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
…arroll/garden_bazel Signed-off-by: Michael Carroll <[email protected]>
@osrf-jenkins retest this please |
}; | ||
|
||
UnregisterCollisionDetectors unregisterAtUnload; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this removal is the source of the macOS test failures
@azeey to take a look at macOS failures. |
Rework #513 to not break ABI.