-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
openMVG compiled with Visual Studio 2015, 64 bits, crashes for some projects #589
Comments
Hi @ShinNoNoir, It would be interesting to run the process with one thread (just to know if it's related to parallelism or to STL usage). If necessary, you can provide me your file by mail (wetransfer or other) (only the .feat, matches.X + sfm_data.json are necessary) (.desc files are not necessary). |
Thanks for the response. I'll try running it on a single thread ( |
@pmoulon, it seems you're right. It is most likely a parallelization issue. With |
OK, I've used WeTransfer to send the files. |
Than you @ShinNoNoir I will try to have a look on it this week. |
@ShinNoNoir Can you:
Looking towards your comments. |
Hmm, I have built that particular branch, but the process does not seem to finish. I'll try to restart the whole pipeline from scratch. |
How many thread do you have on your machine? |
Here's my CPU info: |
Ok, the scene was blocking at resection 4 in my case before the fix, and after the fix it was working fine. |
I killed the process (that I started yesterday) this morning around this step:
|
Have you tried to run it many times? |
I have the same issue with master and develop_multithread_issue_589_incremental_sfm BTW, why you not have compiled files for windows or mac? There are many designers that probably can use command line interface but installing and compiling is much harder? Especially if you don't write all required steps. |
@e-vlad Regarding your additional questions:
As OpenMVG is an opensource project so any user , regardless of his skills can help! |
Oh, sorry. Now i see release. |
@e-vlad, when you said "I have the same issue with master and develop_multithread_issue_589_incremental_sfm |
Windows 10, Visual Studio 2015 64bit. |
So your comment "BTW, it work correctly on 64bit windows 10." is not true. |
Ah Sorry. Only one problem is opensource documentation. Absolutely correct but useless without understanding inlay code :) At least i found tutorial from Piere Moulton. Still like puzzle but with some mistakes i probably can move to next steps. |
I did try a few times, but that was before my last response to this thread (July 19th). I'm currently out of office, so I won't be able to run some tests again until Monday. I haven't tried running develop_multithread_issue_589_incremental_sfm with a debugger yet (since it takes a long, long time to complete or crash), but I could give that a go. |
@e-vlad |
@pmoulon thanx. I seen this link. But no tumbler switch on that this is manual. I don't see any killing feature in new branch (like 10x faster computation or perfect GPU utilisation), so i probably stop with release you already compiled. Sorry. And thanx for a great tools! |
Develop branch still bring improvements compare to the actual master branch. |
Are you joking ? I think you didn't understand how open source projects are made and works. openMVG like many project is developed on spare time with limited human and financial resources. The goals is to provide a reliable library with robust tools, well written code, if it doesn't fill your requirement, developers should feel sorry but you can't talk like that to them. Your sentence is really disrespectful about users that contribute to the project with the only goal to bring to the community some time and skill without anything in return.
This is not comparable, libraries work together and don't have the same goals, without SfM tools you can't use OpenMVS. The pipeline is : Images -> OpenMVG -> (cameras + sparse point cloud) -> OpenMVS -> Mesh |
@rperrot you understand me wrong. |
Hmm, I started the program with a debugger this morning and it crashed in exactly the same manner as I described on July 12th. |
@ShinNoNoir |
@ShinNoNoir Since the problem does not longer occur on my pc...(since the previous and this change), and since the problem does not happen on unix platform, I don't understand what is going on. On my windows pc, I have 4 threads, on yours you have 12. If the problem still occurs can you try to run in release with:
and tell me the results. |
Did you discover exactly where is the segfault ? Could you give exactly the compilation toolchain used (32 or 64bits, Debug or Release ?), what's your VS environment (Community ?, are there any service pack ?) Did you encounter the same behavior running with debugging and without it ? ( @pmoulon if it's true, maybe there's an initialized variable) What's your processor ? ( @pmoulon is it possible that a bug in openMP could lead to a wrong atomic operation on a given processor ?) |
@pmoulon Just in case, I'll re-run it again from scratch (by deleting any previous computed data) to confirm the effectiveness of the code changes. |
Thanks @ShinNoNoir, redo it from scratch will be good to to assert that there is no border effect. |
I just noticed it finished computing, so it seems the fix works. :) |
Thank you @ShinNoNoir for your feedback. |
For certain (generally larger) projects, openMVG crashes on Windows. The same projects run fine under Linux.
Compiled with Visual Studio 2015, 64 bits.
Executable that crashes:
openMVG_main_IncrementalSfM -i D:\someproject\matches\sfm_data.json -m D:\someproject\matches -o D:\someproject\reconstruction_sequential
In release mode, the crash is silent and the executable will run forever using one full core, never finishing the process. In Debug mode, an assertion is violated:
These are the relevant stackframes:
I do not know how I can provide any further information that would help track down this bug. I may not be able to provide the actual source photos due to usage rights, but I might be able to send the openMVG files if that is of any use (it does weigh in at 955 MB though).
The text was updated successfully, but these errors were encountered: