Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak during newEpisode #81

Open
guhur opened this issue Oct 22, 2020 · 3 comments
Open

Memory leak during newEpisode #81

guhur opened this issue Oct 22, 2020 · 3 comments

Comments

@guhur
Copy link

guhur commented Oct 22, 2020

I observed a memory leak during the newEpisode call function:

dataset_file = "./tasks/R2R/data/R2R_train.json"
HEIGHT = 480
VFOV = np.radians(60)
sim = MatterSim.Simulator()
sim.setCameraResolution(WIDTH, HEIGHT)
sim.setDiscretizedViewingAngles(True)
sim.setCameraVFOV(VFOV)
sim.initialize()

with open(dataset_file) as fid:
    data = json.load(fid)
    
for sample in tqdm(data):
    scan_id = sample["scan"]
    for viewpoint_id in sample["path"]:
        sim.newEpisode([scan_id], [viewpoint_id], [0], [0])

My memory (16GB) is quickly getting full
I tested with a binary compiled with EGL or OSMesa

@Tangolin
Copy link

@guhur did you manage to find a solution for this probelm?

@guhur
Copy link
Author

guhur commented Feb 26, 2022 via email

@Tangolin
Copy link

It's alright! Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants