Skip to content
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

Missing calls to super init() #97

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

alxbilger
Copy link
Member

The init() method usually follows the call super pattern. The components affected by this commit change their behavior.

This PR is not as harmless as #96. It must be reviewed with care

The init() method usually follows the call super pattern. The components affected by this commit change their behavior.
@alxbilger alxbilger requested a review from adagolodjo January 24, 2024 08:55
@adagolodjo adagolodjo merged commit 115b784 into SofaDefrost:master Jan 26, 2024
1 of 5 checks passed
@@ -72,6 +72,8 @@ DiscreteCosseratMapping<TIn1, TIn2, TOut>::DiscreteCosseratMapping()
template <class TIn1, class TIn2, class TOut>
void DiscreteCosseratMapping<TIn1, TIn2, TOut>::init()
{
Inherit1::init();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adagolodjo @alxbilger This change makes the scenes crash.

########## SIG 11 - SIGSEGV: segfault ##########
  sofa::helper::BackTrace::sig(int)
  sofa::component::mapping::BaseCosserat<sofa::defaulttype::StdVectorTypes<sofa::type::Vec<3u, double>, sofa::type::Vec<3u, double>, double>, sofa::defaulttype::StdRigidTypes<3u, double>, sofa::defaulttype::StdRigidTypes<3u, double> >::update_ExponentialSE3(sofa::type::vector<sofa::type::Vec<3u, double>, sofa::type::CPUMemoryManager<sofa::type::Vec<3u, double> > > const&)

It seems that the vectors m_indicesVectors, m_framesLengthVectors, and m_BeamLengthVectors are not correctly initialized before the call to update_ExponentialSE3() .

adagolodjo added a commit that referenced this pull request Dec 7, 2024
Missing calls to super init()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants