openMVS icon indicating copy to clipboard operation
openMVS copied to clipboard

Assertion failed in Macos

Open ansj11 opened this issue 1 year ago • 7 comments

Describe the bug

I build this repo in mac and run ./bin/TextureMesh -i ~/git/openMVS_sample/scene_dense_mesh_refine.mvs -m ~/git/openMVS_sample/scene_dense_mesh_refine.ply -o scene_dense_mesh_refine_texture.mvs to extract texture, but I got an Assertion failed. What is the reason?

截屏2024-06-24 20 33 26

截屏2024-06-24 20 33 39

ansj11 avatar Jun 24 '24 12:06 ansj11

Similar problem here…

00:09:07 [App ] Delaunay tetrahedralization completed: 75096 points -> 73232 vertices, 449591 (+26) cells, 899195 (+39) faces (6s554ms) Points weighted 39274 (53.63%, 41s, ETA 36s)...Assertion failed: (facets.empty() && inter.type == intersection_t::VERTEX && inter.v1 == vi), function ReconstructMesh, file SceneReconstruct.cpp, line 1008.

in this case when running ReconstructMesh.

Machine: Apple M2 Pro MacOS 13.6.7 (22G720)

rubenphilipp avatar Aug 02 '24 22:08 rubenphilipp

Similar problem on Ubuntu 24.04:

15:11:37 [App ] Point-cloud 'scene_dense.ply' loaded: 1134729 points (639ms) Points inserted 1134729 (100%, 57s638ms)
15:12:39 [App ] Delaunay tetrahedralization completed: 1134729 points -> 238546 vertices, 1534555 (+156) cells, 3069188 (+234) faces (1m1s143ms) Points weighted 2568 (1.08%, 1s, ETA 1m)... ReconstructMesh: /home/cogitas3d/Programs/Fotogrametria/openMVS/libs/MVS/SceneReconstruct.cpp:1008: bool MVS::Scene::ReconstructMesh(float, bool, bool, unsigned int, float, float, float, float, float, float, float, float): Assertion `facets.empty() && inter.type == intersection_t::VERTEX && inter.v1 == vi' failed.

cogitas3d avatar Oct 21 '24 19:10 cogitas3d

can you try using Release build?

cdcseacave avatar Oct 22 '24 03:10 cdcseacave

@cdcseacave I did it, but... I discovered an interesting thing, if I increase the value of -d, the process continues and manages to rebuild the model. Apparently the dense cloud of points is much denser than before and this somehow seems to make the program collapse. So the tip is to increase the value of -d until it runs correctly.

cogitas3d avatar Oct 22 '24 11:10 cogitas3d

where did you increase the value of -d? I just commented the Assertion code.

ansj11 avatar Oct 22 '24 11:10 ansj11

@ansj11

~/Programs/Fotogrametria/openMVS/make/bin/ReconstructMesh -d 10 --smooth 8 /tmp/testepqp/MVS/scene_dense.mvs

cogitas3d avatar Oct 22 '24 11:10 cogitas3d

@ansj11

~/Programs/Fotogrametria/openMVS/make/bin/ReconstructMesh -d 10 --smooth 8 /tmp/testepqp/MVS/scene_dense.mvs

thank you for your quick reply, I will have a try!

ansj11 avatar Oct 22 '24 11:10 ansj11