pytango 9.3.2: Wrong ref count
Hi,
I have created a DeviceProxy.
I try to make sure to release it, using weakref to wait for the destroy.
It sounds like there is still ref count, no more referrers.
As result i dont think the object is properly release.
I am doing something like that
object_ref = weakref.ref(object)
object = None
while True:
o = object_ref()
if o is None:
break
count = sys.getrefcount(o)
referrers = gc.get_referrers(o)
referents = gc.get_referents(o)
o = None
print(count, referrers, referents)
sleep(1)
Got that as output
3 [] []
3 [] []
3 [] []
3 [] []
3 [] []
...
infinite loop
Here is my env:
cpptango 9.3.4 hf7cf922_3 conda-forge/linux-64 Cached
pytango 9.3.2 py37h6bb024c_1 tango-controls/linux-64 Cached
Any idea if that's something already fixed with last versions?
If that's not the case i can try to provide a real some example with the API i am using. Basically i use event subscription.