Replies: 2 comments
-
Hello Federica, I've commented out the entirety of Swig is some sort of a black box to me so this is probably not top notch debugging but that's all I have for the moment. I hope the Basilisk developers can shed some light on this ! |
Beta Was this translation helpful? Give feedback.
-
Hi everyone!
I'm experimenting some memory leaks while trying to assign new values to extForceTorqueObject.extForce_B attribute. The same behavior appears if I try to update the Inertia of the S/C object, while the update of the mass doesn't give any problem.
I investigated on the Wrapper of this object
(/basilisk/dist3/Basilisk/simulation/extForceTorquePYTHON_wrap.cxx
) and in particular on the set methodSWIGINTERN PyObject *_wrap_ExtForceTorque_extForce_B_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args).
Here, I don't see any
Py_DECREF
for somePyObjects
. Could it be the reason causing the memory leaks?From my understanding, it could be that updating single scalar values is not a problem and memory is correctly freed, while in the other cases (extForceTorqe and Inertia) problems appear because the attributes are not scalars but vectors/matrices.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions