-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fix crash when using BVH animations #188
Conversation
Signed-off-by: Louise Poubel <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #188 +/- ##
==========================================
- Coverage 75.49% 75.48% -0.02%
==========================================
Files 73 73
Lines 10346 10349 +3
==========================================
+ Hits 7811 7812 +1
- Misses 2535 2537 +2
Continue to review full report at Codecov.
|
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.
This seems to fix the actor crashing issue. However, I still see this error that was mentioned in gazebosim/gz-sim#647 when I run one of the example actor worlds (for example, actor.sdf
or actor_crowd.sdf
):
[GUI] [Err] [RenderUtil.cc:919] invalid animation update data
It looks like this is coming from the RenderUtil
class in ign-gazebo
, so I'm not sure if this issue can be fixed in this PR or not. Any thoughts? Should we just merge this first to fix the critical bug, and then try to resolve this error message later?
Also, this PR may be able to close gazebosim/gz-sim#647, unless we want to leave that issue open while we resolve the RenderUtil
error message.
Oh thanks! I totally forgot there was an issue for this!
I also see that. Yeah I suspect that's something to be fixed on the
That works for me. I think we also shouldn't close it until this is backported and we add some tests. |
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.
All that sounds good, let's get this merged in and fix the crash before the release 🚢 🚀
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
Signed-off-by: Ashton Larkin <[email protected]>
🦟 Bug fix
Summary
Actors using BVH animations have been crashing
ign-gazebo
, probably since #136, see #136 (comment).The problem is that we were creating a temporary
Skeleton
, getting a pointer to its animation, and then deleting the original skeleton. Now that the skeleton is properly destroyed, we also destroy that pointer. The solution is to make a copy so we can keep ownership.This needs to be backported to
ign-common3
, I'm targetingmain
so we can get it into Edifice's first release. I believe this is a critical bug fix.@adlarkin , I believe you've been looking into this. Maybe you can see if this works?
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸