Skip to content

Conversation

@jnbrunet
Copy link
Contributor

This PR finally fixes all failing tests and segmentation faults with virtual classes (python Controller -> C++ Controller, and python Forcefield -> C++ Forcefield).

In addition, building SofaPython3 in-tree (within the SOFA build) now places the python test files and binding libraries at their correct place, both in multi-configurations builds (MSVC) and standard builds. It should now be safe to load SofaPython3 from an in-tree build directory, in-tree install directory, out-of-tree build directory and out-of-tree install directory.

We are getting closer and closer to a first stable release.

This PR fixes #39

@jnbrunet jnbrunet added this to the V20.12 milestone Dec 23, 2020
@jnbrunet jnbrunet requested a review from fredroy December 23, 2020 09:34
@jnbrunet jnbrunet linked an issue Dec 23, 2020 that may be closed by this pull request
9 tasks
@fredroy fredroy merged commit 4b0c5f5 into sofa-framework:master Dec 23, 2020
@jnbrunet jnbrunet deleted the test_windows branch December 23, 2020 20:51
damienmarchal added a commit to CRIStAL-PADR/plugin.SofaPython3 that referenced this pull request Apr 11, 2022
The object created from python needs special care to avoid being deleted by
the python garbage collection mecanisme.
In sofa-framework#74 and sofa-framework#75 the smart pointer mecanism was refactored. The refactoring
added a py::keep_alive, in addObject but didn't in other functions.

The PR fix this.
fredroy pushed a commit that referenced this pull request Apr 13, 2022
The object created from python needs special care to avoid being deleted by
the python garbage collection mecanisme.
In #74 and #75 the smart pointer mecanism was refactored. The refactoring
added a py::keep_alive, in addObject but didn't in other functions.

The PR fix this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Release v20.12 runSofa crashes when creating a Sofa.Core.Controller object

3 participants