sofa-framework / sofa

Real-time multi-physics simulation with an emphasis on medical simulation.
https://www.sofa-framework.org
GNU Lesser General Public License v2.1
927 stars 312 forks source link

[SofaPython] Memory leaks #201

Open damienmarchal opened 7 years ago

damienmarchal commented 7 years ago

The C++ script controller object is not destroyed (the destructor is not called). The python part (the script content) neither (probably because the we need to decrement the python reference).

The two are causing memory leaks.

damienmarchal commented 7 years ago

I will give it a look for 17.06

maxime-tournier commented 7 years ago

the best ref on the topic I found so far: http://arctrix.com/nas/python/gc/ besides the official doc: https://docs.python.org/2/extending/newtypes.html#supporting-cyclic-garbage-collection

damienmarchal commented 5 years ago

I will not give it a look before 19.06

guparan commented 4 years ago

Hye @damienmarchal will this be fixed by SofaPython3 ?

damienmarchal commented 4 years ago

Not magically/

fredroy commented 3 years ago

Not magically/

@damienmarchal It seems that this issue still exists in SofaPython3 apparently? It would be better to raise this problem in the own github repository: https://github.com/sofa-framework/SofaPython3/issues

If it is still the case, I will "backport this issue to the SofaPython3 tracker