Ticket #155 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Potential Memory Leak when using multiple MapNodes in the scene

Reported by: jasonbeverage Owned by:
Priority: major (material / funded) Milestone: Not Yet Scheduled
Component: osgEarth Version: 1.3
Severity: Keywords:
Cc:

Description

If you add multiple .earth files to the scene the # of PagedLOD's stays at a reasonable # (~300) but it seems like memory isn't released.

 http://forum.osgearth.org/register-Paged-LOD-tp5077618p5081535.html

Change History

Changed 2 years ago by jasonbeverage

This seems to have something to do with the #define EXPLICIT_RELEASE_GL_OBJECTS 1 in VersionedTerrain?.cpp. If you comment this out then memory goes back down to normal.

Changed 2 years ago by jasonbeverage

The reason that this isn't working is b/c only 1 postDrawCallback
is being assigned to the camera b/c of the use of setPostDrawcallback.

So only 1 of the tilesToRelease lists are being cleared out and the

other one is not.

We'll have to come up with some composite callback to handle multiple terrains.

Changed 2 years ago by jasonbeverage

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

Fixed in r1133

Note: See TracTickets for help on using tickets.