valette / Wavemesh

Progressive compression of 3D triangular meshes
https://www.creatis.insa-lyon.fr/~valette/public/project/wavemesh/
GNU General Public License v3.0
42 stars 15 forks source link

Instantly runs out of memory -- memory leak #2

Closed Algomorph closed 6 years ago

Algomorph commented 7 years ago

Hi, thanks for putting this code up! I've managed to compile it, but I'm instantly running out of memory. I'm loading a ~0.2 mb .off file, exported out of meshlab, with the -c flag and the -d 1 argument [EDIT: fails regardless of the -d argument]. I'm running Ubuntu 16.04. I've custom-compiled VTK 5.2 for this. The machine has 32 GB of RAM, so there must be some kind of memory leak. Any suggestions?

valette commented 7 years ago

I do not remember about the -c flag, and there does not seem to be such option...

Algomorph commented 7 years ago

@valette , sorry, just the "c" option without the hyphen, for compression.

valette commented 7 years ago

Do you have a log output? If there is no output, I suspect there is an issue with the file format. Could you try an other format such as .obj or .ply ?

Algomorph commented 7 years ago

The original file was converted from .ply to .off in MeshLab 1.3.2. I tried other files with other formats and other converters, seems like this specific problem is only with the .off files. However, I'm more often than not getting segfaults on .obj and .ply files, like in #3. I'm currently exploring the geometry in search for unwanted artifacts. P.S. for the out-of-memory case, there is no log output.