niessner / Opt

Opt DSL
Other
254 stars 68 forks source link

src/terralib.lua:4034: error loading terra module ad from file ../Opt/API/src/ad.t: not enough memory #149

Open LiuXinqi12 opened 5 years ago

LiuXinqi12 commented 5 years ago

I use opt to optimize the process of 3d reconstruction on ubuntu16 and cuda 8. When I run it until the frame of 18th , the program crash and errors occur: src/terralib.lua:4034: error loading terra module ad from file ../Opt/API/src/ad.t: not enough memory My computer uses only 50% of its memory. so i though the problem is not enough memory. i don't know how to solve this problem , I guess this problem may caused by memory leak, but I didn't find any objects that need to be released . So I want to ask you for advice . Thank you!

Mx7f commented 5 years ago

That does seem like a memory leak. Are you creating and destroying an Opt problem every frame? Is there a reason you cannot just reuse one for each frame?