Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Test RigidLinearDeformationMappings_test failing sometimes #4

Open
hugtalbot opened this issue Dec 7, 2016 · 10 comments
Open

Test RigidLinearDeformationMappings_test failing sometimes #4

hugtalbot opened this issue Dec 7, 2016 · 10 comments
Assignees

Comments

@hugtalbot
Copy link
Contributor

As you can see in the dashboard (ex: commit 2b9daa), the test RigidLinearDeformationMappings_test is sometime failing ... and succeeds the next commit.

Quite strange.
This might be due to time stepping (convergence) issue.

@hugtalbot hugtalbot self-assigned this Dec 7, 2016
@guparan guparan added the bug Something isn't working label Dec 7, 2016
@guparan guparan changed the title Test RigidLinearDeformationMappings_test failing sometimes ! Test RigidLinearDeformationMappings_test failing sometimes Dec 7, 2016
@guparan
Copy link
Contributor

guparan commented Nov 15, 2017

SOFA-dev: we could add a build option DEBUG_RIGIDLINERDEFORMATIONMAPPINGS to log out the test in CI.

@guparan guparan assigned epernod and unassigned hugtalbot Nov 15, 2017
@epernod
Copy link
Contributor

epernod commented Nov 15, 2017

just to be sure, is it this test we are speeking about?
./Flexible_test --gtest_filter=RigidLinearDeformationMappings_test*

@damienmarchal
Copy link
Contributor

Oui

@epernod
Copy link
Contributor

epernod commented Nov 16, 2017

Ok... I'm stuck in my investigations.
I tracked the error in the class: plugins/Flexible/deformationMapping/BaseDeformationMapping.inl
In method: void BaseDeformationMappingT<JacobianBlockType>::apply(const core::MechanicalParams * /*mparams*/ , Data<OutVecCoord>& dOut, const Data<InVecCoord>& dIn)

The VecCoord dIn seems to be corrupted, see log below. How do I know from where comes the vectore dIn and which component touched it before the "apply" method ? I don't know that part of Sofa visitors.

[WARNING] [LinearMapping()] out[  0 ]:  0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[WARNING] [LinearMapping()] in[  0 ]: 3.47071e-311 3.47071e-311 0 0 0 0 1
[WARNING] [LinearMapping()] out[0] + jacobian[0][0].addapply(out[0],in[0]) =  -1.73535e-312 0 0 -1.73535e-312 0.5 0 0 0 0.5 -0.1 0 0 0 -0.05 0 0 0 -0.05 0 0 0 -0.05 0 0 0 0 0 0 0 0 0 0 0 -0.05 0 0

[WARNING] [LinearMapping()] in[  1 ]: 20 0 0 -nan -nan -nan -nan
[WARNING] [LinearMapping()] out[0] + jacobian[0][1].addapply(out[0],in[1]) =  -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan -nan

@maxime-tournier
Copy link

Hi all,

I'll ping Benjamin and Matthieu about this one, they might know more about it.

IIRC randomly failing mapping tests are mostly due to automatic differentiation step size/error threshold being incoherent with curvature, but this one should definitely not have NaNs in its input.

@guparan
Copy link
Contributor

guparan commented Dec 20, 2017

This will unfortunately not be fixed before v17.12
Reminder: activate SOFA_DUMP_VISITOR_INFO for further investigations.

@guparan
Copy link
Contributor

guparan commented May 16, 2018

May be linked to Quater problem raised in sofa-framework/sofa#399

@damienmarchal
Copy link
Contributor

This will unfortunately not be fixed before v19.06 :)

@guparan
Copy link
Contributor

guparan commented Feb 2, 2022

To be closed @fredroy ?

@fredroy
Copy link
Contributor

fredroy commented Feb 2, 2022

Now that Flexibile is no more supported, it should be closed here (sofa). But I will transfer this issue to the Flexible plugin, to keep a trace...

@fredroy fredroy transferred this issue from sofa-framework/sofa Feb 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants