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

Assertion failed in Macos #1153

Open
ansj11 opened this issue Jun 24, 2024 · 7 comments
Open

Assertion failed in Macos #1153

ansj11 opened this issue Jun 24, 2024 · 7 comments

Comments

@ansj11
Copy link

ansj11 commented Jun 24, 2024

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
@rubenphilipp
Copy link

rubenphilipp commented Aug 2, 2024

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)

@cogitas3d
Copy link

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.

@cdcseacave
Copy link
Owner

can you try using Release build?

@cogitas3d
Copy link

@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.

@ansj11
Copy link
Author

ansj11 commented Oct 22, 2024

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

@cogitas3d
Copy link

@ansj11

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

@ansj11
Copy link
Author

ansj11 commented Oct 22, 2024

@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!

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

4 participants