cdcseacave / openMVS

open Multi-View Stereo reconstruction library
http://cdcseacave.github.io
GNU Affero General Public License v3.0
3.37k stars 911 forks source link

ReconstructMesh with Segmentation fault on Mac OS #972

Open cogitas3d opened 1 year ago

cogitas3d commented 1 year ago

Hey there!

I had some problems during the compilation, but I solve all in Big Sur. Unfortunately, this error persist:

/bin/sh: line 1: 63765 Segmentation fault: 11 /Users/cogitas3d/Programs/OrtogOnBlender/openMVSMACelcap/./ReconstructMesh -d 6 --smooth 16 /var/folders/ry/4xs6n30x5pq2z60ltc3_vj840000gn/T/tmp_3u0qjwv/MVS/scene_dense.mvs

Would it be possible to solve it?

cdcseacave commented 1 year ago

i do not have that version of mac, but I can try if you share a dataset that reproduces the problem.

cogitas3d commented 1 year ago

Thank you @cdcseacave !

Im sharing two zips, one with original pictures and other with the output of OpenMVG+OpenMVS: https://drive.google.com/drive/folders/1EKlC6KO8f4nQOkQUw_h1Fl08gXTcNTdy?usp=sharing

A big hug!

cdcseacave commented 1 year ago

just tested on my mac your dataset with latest develop and all works fine:

ReconstructMesh scene_dense.mvs 
21:14:07 [App     ] Build date: Mar 31 2023, 23:42:30
21:14:07 [App     ] CPU:  (8 cores)
21:14:07 [App     ] RAM: 16.00GB Physical Memory 16.00GB Virtual Memory
21:14:07 [App     ] OS: Darwin 22.4.0 (arm64)
21:14:07 [App     ] Disk: 
21:14:07 [App     ] warning: no SSE compatible CPU or OS detected
21:14:07 [App     ] Command line: ReconstructMesh scene_dense.mvs
21:14:11 [App     ] Scene loaded (3s639ms):
        12 images (12 calibrated) with a total of 13.35 MPixels (1.11 MPixels/image)
        1203547 points, 0 vertices, 0 faces
21:14:11 [App     ] error: failed loading image header
21:14:11 [App     ] error: failed reloading image '/Users/dancostin/Downloads/openMVG_openMVS/MVS/undistorted_images/0.jpg'
dancostin@Dans-MacBook MVS % cd ..
dancostin@Dans-MacBook openMVG_openMVS % ReconstructMesh MVS/scene_dense.mvs
21:14:48 [App     ] Build date: Mar 31 2023, 23:42:30
21:14:48 [App     ] CPU:  (8 cores)
21:14:48 [App     ] RAM: 16.00GB Physical Memory 16.00GB Virtual Memory
21:14:48 [App     ] OS: Darwin 22.4.0 (arm64)
21:14:48 [App     ] Disk: 
21:14:48 [App     ] warning: no SSE compatible CPU or OS detected
21:14:48 [App     ] Command line: ReconstructMesh MVS/scene_dense.mvs
21:14:52 [App     ] Scene loaded (3s607ms):
        12 images (12 calibrated) with a total of 13.35 MPixels (1.11 MPixels/image)
        1203547 points, 0 vertices, 0 faces
Points inserted 1203547 (100%, 3s352ms)           
21:14:56 [App     ] Delaunay tetrahedralization completed: 1203547 points -> 433762 vertices, 2779831 (+1092) cells, 5560208 (+1638) faces (3s808ms)
Points weighted 433762 (100%, 41s698ms)           
21:15:38 [App     ] Delaunay tetrahedras weighting completed: 2780923 cells, 5561846 faces (42s808ms)
21:15:41 [App     ] Delaunay tetrahedras graph-cut completed (125317 flow): 432942 vertices, 865862 faces (2s335ms)
21:15:46 [App     ] Mesh reconstruction completed: 432950 vertices, 865844 faces (54s283ms)
21:15:48 [App     ] Cleaned mesh: 432943 vertices, 865543 faces (1s651ms)
21:15:49 [App     ] Cleaned mesh: 432944 vertices, 865542 faces (1s472ms)
21:15:50 [App     ] Cleaned mesh: 432944 vertices, 865542 faces (730ms)
21:15:51 [App     ] Scene saved (1s506ms):
        12 images (12 calibrated)
        0 points, 432944 vertices, 865542 faces
21:15:51 [App     ] Mesh saved: 432944 vertices, 865542 faces (54ms)

can't you upgrade to latest OS?

cogitas3d commented 1 year ago

@cdcseacave

I try the same thing and:

Captura de Tela 2023-04-12 às 12 05 22

Im using the Big Sur, I installed yesterday because the Catalina do not allow build openMVS. I used this option to build:

cmake .. -DVCG_ROOT="../../VCG-master" -DCMAKE_BUILD_TYPE=Release

wangjinyu commented 1 year ago

@cdcseacave

I try the same thing and:

Captura de Tela 2023-04-12 às 12 05 22

Im using the Big Sur, I installed yesterday because the Catalina do not allow build openMVS. I used this option to build:

cmake .. -DVCG_ROOT="../../VCG-master" -DCMAKE_BUILD_TYPE=Release

hello, are your problem solved?

cogitas3d commented 1 year ago

@wangjinyu Nope, I had segmentation fault.

wangjinyu commented 1 year ago

@cogitas3d me too ... and it block me