cdcseacave/openMVS

SEGFAULT on MAC when exporting OBJ with TextureMesh

nvl0451 opened this issue · 2 comments

TextureMesh with export-type OBJ throws out a segmentation fault on the last step (after [App] Mesh texturing completed)

I am using a 2020 MacBook Pro Intel so no CUDA, built openMVS with Xcode. OS is Sonoma 14.1, latest openMVS

Managed to power through the Mesh creation process, but the software crashes on creating a textured OBJ for output

PLY (default export format) exports successfully but generates two files - a textureless PLY and a PNG texture. I have trouble converting that file pair to a textured OBJ file so please explain how to fix segfault

sudo doesn't help

The PLY files generated during the mesh reconstruction and refinement are looking very nice. And the software does generate a texture file when using TextureMesh with default PLY export file so the algorithm is working too. I am this close to having success with the software. Please help

Here is the full TextureMesh request log:

(base) rockstarshit@MacBook-Pro-Andrej stupid_skull % $oMVS/TextureMesh --export-type obj -i scene_dense.mvs -m scene_dense_mesh_refine.ply -o scene_dense_mesh_refine_texture.obj
03:31:51 [App ] OpenMVS x64 v2.3.0
03:31:51 [App ] Build date: Mar 2 2024, 23:25:16
03:31:51 [App ] CPU: Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz (8 cores)
03:31:51 [App ] RAM: 32.00GB Physical Memory 32.00GB Virtual Memory
03:31:51 [App ] OS: Darwin 23.1.0 (x86_64)
03:31:51 [App ] Disk:
03:31:51 [App ] SSE & AVX compatible CPU & OS detected
03:31:51 [App ] Command line: TextureMesh --export-type obj -i scene_dense.mvs -m scene_dense_mesh_refine.ply -o scene_dense_mesh_refine_texture.obj
03:31:51 [App ] Camera model loaded: platform 0; camera 0; f 1.653x1.653; poses 53
03:31:51 [App ] Camera model loaded: platform 1; camera 0; f 1.697x1.698; poses 9
03:31:51 [App ] Scene loaded from interface format (15ms):
62 images (62 calibrated) with a total of 39.33 MPixels (0.63 MPixels/image)
11128 points, 0 vertices, 0 faces
03:31:51 [App ] Mesh loaded: 44044 vertices, 88080 faces (18ms)
Initialized views 62 (100%, 31s278ms)
03:35:57 [App ] Assigning the best view to each face completed: 88080 faces (4m5s481ms)
03:39:42 [App ] Generating texture atlas and image completed: 1202 patches, 4096 image size, 1 textures (3m45s220ms)
03:39:42 [App ] Mesh texturing completed: 44044 vertices, 88080 faces (7m50s707ms)
zsh: segmentation fault $oMVS/TextureMesh --export-type obj -i scene_dense.mvs -m -o

Issue fixed by switching to develop branch and recompiling. OBJ textures still dont work but GLB textures work fine
Снимок экрана 2024-03-03 в 08 37 21