pytraj icon indicating copy to clipboard operation
pytraj copied to clipboard

Mask selection on topology causes memory leak

Open tonyyzy opened this issue 2 years ago • 2 comments

top = traj.top
while True:
    top[":1"]

This would lead to crashes by using up all system memory.

On pytraj 2.0.6

tonyyzy avatar Oct 09 '22 21:10 tonyyzy

Note that top.atom(0) leaks memory as well

tonyyzy avatar Oct 09 '22 21:10 tonyyzy

Thanks @tonyyzy for your reports. It's been a while seeing you.

hainm avatar Oct 13 '22 19:10 hainm

@tonyyzy I think @hichiaty fixed the issue in master branch in #1617

Cheers

hainm avatar Nov 14 '22 19:11 hainm

Thanks both! @hainm @hichiaty

tonyyzy avatar Nov 15 '22 23:11 tonyyzy