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

TextureMesh Segmentation Fault #1132

Open
yinbc opened this issue Apr 16, 2024 · 4 comments
Open

TextureMesh Segmentation Fault #1132

yinbc opened this issue Apr 16, 2024 · 4 comments

Comments

@yinbc
Copy link

yinbc commented Apr 16, 2024

Issue Description:

I encountered a segmentation fault error while running the TextureMesh module in OpenMVS version 2.3.0. The process terminates unexpectedly after "Segmentation fault (core dumped)". The following is the output from the console.

In addition, ply can be successfully generated without "--export-type obj".

Console Output:

22:49:25 [App     ] Command line: TextureMesh /data/scene_0077_dense.mvs -m /data/scene_0077_dense_mesh.ply -w /data --export-type obj
22:49:25 [App     ] CUDA device 0 initialized: Tesla P40 (compute capability 6.1; memory 22.38GB)
22:49:25 [App     ] Camera model loaded: platform 0; camera  0; f 0.571x0.572; poses 13
22:49:25 [App     ] Scene loaded from interface format (3ms):
        13 images (13 calibrated) with a total of 30.00 MPixels (2.31 MPixels/image)
        1930 points, 0 vertices, 0 faces
22:49:26 [App     ] Mesh loaded: 78623 vertices, 157148 faces (69ms)
Initialized views 13 (100%, 7s98ms)            
22:49:53 [App     ] Assigning the best view to each face completed: 157148 faces (27s422ms)
22:50:35 [App     ] Generating texture atlas and image completed: 679 patches, 8192 image size, 1 textures (41s555ms)
22:50:35 [App     ] Mesh texturing completed: 78623 vertices, 157148 faces (1m8s988ms)
Segmentation fault (core dumped)
@yinbc
Copy link
Author

yinbc commented Apr 17, 2024

Update, I found that the program crashes when executing "const auto texIdx = faceTexindices[idxFace];" in Mesh::SaveOBJ. After testing, I found that faceTexindices is empty. What is the meaning of faceTexindices?

@cdcseacave
Copy link
Owner

cdcseacave commented Apr 17, 2024 via email

@yinbc
Copy link
Author

yinbc commented Apr 17, 2024

@cdcseacave Thank you for your reply. I am using the latest master branch. I have sent my data and command line to your email.

@cdcseacave
Copy link
Owner

cdcseacave commented Apr 17, 2024 via email

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

2 participants