Ticket #90 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Memory leak in client

Reported by: mike Owned by: mike
Priority: high Milestone: alpha-test
Component: client Version: 0.1-alpha
Keywords: Cc:
Estimated Effort: 3 days Platform: All
State: Relative Size:

Description

Problem

At least when connected running on windows, there is a memory leak in the client.

Change History

Changed 6 years ago by mike

  • status changed from new to assigned
  • platform changed from Windows to All

Problem exists under Linux as well... It only happens when you are fully connected and online.

Changed 6 years ago by mike

Problem is with geomRays building up.. Trying to figure out why.

ps. used pysizer (http://pysizer.8325.org/doc/tutorial.html) to profile mem use.

Changed 6 years ago by mike

  • status changed from assigned to closed
  • resolution set to fixed

Solution

Found out that ode has a dict called _geom_c2py_lut that it puts all geoms in. To really delete a geom, you need to find it in the values of that table and then delete it.

If this method turns out to be too slow, it may also be possible to create rays for each running thread and reuse them.

Note: See TracTickets for help on using tickets.