flanggut / smvs

Shading-aware Multi-view Stereo
BSD 3-Clause "New" or "Revised" License
252 stars 76 forks source link

Crash after 8 view selection #22

Closed JSlain closed 6 years ago

JSlain commented 6 years ago

I'm trying running on bash (Ubuntu) embedded into Windows 10. Since i do not have any images for now, i'm using those from the repo: https://github.com/openMVG/SfM_quality_evaluation.git

I tried different set of images from that repo, and it always hang after 8 images. I noticed that another open issue crash after 8th image, maybe it's related... #14 Here's the output:

Shading-aware Multi-view Stereo (built on Dec 28 2017, 14:16:04)

Initializing scene with 25 views...
Initialized 25 views (max ID is 24), took 11ms.
Reading Photosynther file (25 cameras, 8967 features)...
Automatic input scale: 1
Input embedding: undist-L1
Output embedding: smvs-B1
Running view selection for 25 views...  done, took 0.626s.
Starting 1/25 ID: 7 Neighbors: 6 19 18 8 5 17
Starting 2/25 ID: 3 Neighbors: 4 15 5 17 16 6
Starting 3/25 ID: 6 Neighbors: 18 7 19 5 17 8
Starting 4/25 ID: 1 Neighbors: 14 2 0 3 15 4
Starting 5/25 ID: 0 Neighbors: 14 1 15 3 2 16
Starting 6/25 ID: 2 Neighbors: 3 15 14 4 1 16
Starting 7/25 ID: 5 Neighbors: 6 17 4 18 7 19
Starting 8/25 ID: 4 Neighbors: 3 5 17 15 16 6
Received signal SIGSEGV (segmentation fault)
Received signal SIGSEGV (segmentation fault)
Obtained 15 stack frames: Received signal SIGSEGV (segmentation fault)Received signal SIGSEGV (segmentation fault)

Obtained 0xe stack frames: 0x4aeaa4 0x7f45dda754b0 0x4322f8 0x4aeaa4 0x7f45dda754b0 0x7f45ddb8dada 0x432300 0x438313 0x43a28e 0x40ff1f 0x410788 0x412459 0x7f45de6dea99 0x40b9b1 0x41364b 0x7f45de3f8c80 0x7f45de6d76ba 0x7f45ddb473dd
0x438313smvsrecon [0x0x43a28e4aeaa4 ]
0x40ff1f/lib/x86_64-linux-gnu/libc.so.6 (0x410788+0x 354b00x412459) [0x0x7f45de6dea997f45dda754b0 ]
0x40b9b1/lib/x86_64-linux-gnu/libc.so.6 (0x41364b+0x 14dada0x7f45de3f8c80) [0x0x7f45de6d76ba7f45ddb8dada ]
0x7f45ddb473ddsmvsrecon
[0xsmvsreconReceived signal SIGSEGV (segmentation fault)432300[0x
]
4aeaa4Received signal SIGSEGV (segmentation fault)smvsrecon]

[0x/lib/x86_64-linux-gnu/libc.so.6Obtained 438313(Received signal SIGSEGV (segmentation fault)]
+0x
smvsrecon354b0Obtained [0x)Obtained 43a28e[0x]
smvsreconsmvsrecon15smvsrecon7f45dda754b0smvsrecon[0x[0x[0xsmvsreconsmvsrecon]
[0x4aeaa44aeaa44aeaa4[0x[0xsmvsrecon40ff1f]
]
]
4aeaa44aeaa4[0x]
/lib/x86_64-linux-gnu/libc.so.6/lib/x86_64-linux-gnu/libc.so.6/lib/x86_64-linux-gnu/libc.so.6]
]
4322f8smvsrecon(((/lib/x86_64-linux-gnu/libc.so.6/lib/x86_64-linux-gnu/libc.so.6]
[0x+0x+0x+0x((smvsrecon410788354b0354b0354b0+0x+0x[0x]
)))354b0354b0438313smvsrecon[0x[0x[0x))]
[0x7f45dda754b07f45dda754b07f45dda754b0[0x[0xsmvsrecon412459]
]
]
7f45dda754b07f45dda754b0[0x]
smvsreconsmvsreconsmvsrecon]
]
43a28e/lib/x86_64-linux-gnu/libpthread.so.0[0x[0x[0x/lib/x86_64-linux-gnu/libc.so.6/lib/x86_64-linux-gnu/libc.so.6]
(4321ab4322f84322f8((smvsrecon+0x]
]
]
+0x+0x[0xea99smvsreconsmvsreconsmvsrecon14dada14dada40ff1f)[0x[0x[0x))]
[0x4383134383134382e3[0x[0xsmvsrecon7f45de6dea99]
]
]
7f45ddb8dada7f45ddb8dada[0x]
smvsreconsmvsreconsmvsrecon]
]
410788smvsrecon[0x[0x[0xsmvsreconsmvsrecon]
[0x43a28e43a28e43a28e[0x[0xsmvsrecon40b9b1]
]
]
432300432300[0x]
smvsreconsmvsreconsmvsrecon]
]
412459smvsrecon[0x[0x[0xsmvsreconsmvsrecon]
[0x40ff1f40ff1f40ff1f[0x[0x/lib/x86_64-linux-gnu/libpthread.so.041364b]
]
]
4382e34382e3(]
smvsreconsmvsreconsmvsrecon]
]
+0x/usr/lib/x86_64-linux-gnu/libstdc++.so.6[0x[0x[0xsmvsreconsmvsreconea99(410788410788410788[0x[0x)+0x]
]
]
43a28e43a28e[0xb8c80smvsreconsmvsreconsmvsrecon]
]
7f45de6dea99)[0x[0x[0xsmvsreconsmvsrecon]
[0x412459412459412459[0x[0xsmvsrecon7f45de3f8c80]
]
]
40ff1f40ff1f[0x]
/lib/x86_64-linux-gnu/libpthread.so.0/lib/x86_64-linux-gnu/libpthread.so.0/lib/x86_64-linux-gnu/libpthread.so.0]
]
40b9b1/lib/x86_64-linux-gnu/libpthread.so.0(((smvsreconsmvsrecon]
(+0x+0x+0x[0x[0xsmvsrecon+0xea99ea99ea99410788410788[0x76ba)))]
]
41364b)[0x[0x[0xsmvsreconsmvsrecon]
[0x7f45de6dea997f45de6dea997f45de6dea99[0x[0x/usr/lib/x86_64-linux-gnu/libstdc++.so.67f45de6d76ba]
]
]
412459412459(]
smvsreconsmvsreconsmvsrecon]
]
+0x[0x/lib/x86_64-linux-gnu/libc.so.6[0x[0x/lib/x86_64-linux-gnu/libpthread.so.0/lib/x86_64-linux-gnu/libpthread.so.0b8c8040b9b1(40b9b140b9b1(()]
clone]
]
+0x+0x[0xsmvsrecon+0xsmvsreconsmvsreconea99ea997f45de3f8c80[0x6d[0x[0x))]
41364b)41364b41364b[0x[0x/lib/x86_64-linux-gnu/libpthread.so.0]
[0x]
]
7f45de6dea997f45de6dea99(/usr/lib/x86_64-linux-gnu/libstdc++.so.67f45ddb473dd/usr/lib/x86_64-linux-gnu/libstdc++.so.6/usr/lib/x86_64-linux-gnu/libstdc++.so.6]
]
+0x(]
((smvsreconsmvsrecon76ba+0x+0x+0x[0x[0x)b8c80b8c80b8c8040b9b140b9b1[0x)))]
]
7f45de6d76ba[0x[0x[0x]
7f45de3f8c807f45de3f8c807f45de3f8c80]
]
]
flanggut commented 6 years ago

I can’t see an obvious solution right now. I’ll try to have a closer look next week.

flanggut commented 6 years ago

I can't really figure out why this would happen. Can you try to run it with just a single thread? -t1 is the option you have to set.

JSlain commented 6 years ago

Yeah it worked, though it took 2 hours for 25 images. I guess it's simply 8 time slower, but at least it works. I'll try different settings as well.

flanggut commented 6 years ago

Ok that's unfortunate. In this case it is quite hard to debug. Usually the threads cannot interfere with each other as they operate on completely different data. But the embedded bash in Windows might do crazy things. It also probably runs in some sort of sandbox so it might not have full access to all resources and it could run out of memory or similar things.

flanggut commented 6 years ago

Closing due to inactivity.