You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type: ti = focus.virtualBuffer.makeTextInfo("all") for i in xrange(20000): t = ti.text
Actual: Massive memory leak (NVDA shoots up to about 300 mb here).
Expected: Uh... no memory leak.
Note that closing the browser doesn't clean this up.
This happens because VBuf_getTextInRange allocates a string on the server side which is then marshalled to the client but never freed. We figured that ctypes was freeing the string when it was garbage collected by Python (which is actually incorrect, since ctypes didn't allocate it), but it seems that ctypes (correctly) doesn't do this after all.
The text was updated successfully, but these errors were encountered:
Reported by jteh on 2010-03-08 16:37
Str:
ti = focus.virtualBuffer.makeTextInfo("all") for i in xrange(20000): t = ti.text
Actual: Massive memory leak (NVDA shoots up to about 300 mb here).
Expected: Uh... no memory leak.
Note that closing the browser doesn't clean this up.
This happens because VBuf_getTextInRange allocates a string on the server side which is then marshalled to the client but never freed. We figured that ctypes was freeing the string when it was garbage collected by Python (which is actually incorrect, since ctypes didn't allocate it), but it seems that ctypes (correctly) doesn't do this after all.
The text was updated successfully, but these errors were encountered: