[NumPy-Tickets] [NumPy] #2198: np.loadtxt leaks memory

NumPy Trac numpy-tickets@scipy....
Fri Aug 10 15:10:46 CDT 2012


#2198: np.loadtxt leaks memory
---------------------------------+------------------------------------------
 Reporter:  tanriol              |       Owner:  somebody   
     Type:  defect               |      Status:  new        
 Priority:  normal               |   Milestone:  Unscheduled
Component:  numpy.lib            |     Version:  1.6.2      
 Keywords:  loadtxt memory leak  |  
---------------------------------+------------------------------------------

Comment(by rgommers):

 I can reproduce the memory usage, but executing {{{gc.collect()}}} before
 and after the loadtxt call shows there are no new unreachable objects
 being created. Also, after exiting the interpreter the memory is freed.
 Hence this isn't a memory leak.

 The gc.collect docs say that some objects ''in particular int and float''
 aren't freed by it. So it looks like that is the case here.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2198#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list