-
Notifications
You must be signed in to change notification settings - Fork 239
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
Stuck in function "testDatabase" #16
Comments
Latest update: I think the issue is pretty strange now...
Then it runs, but not consisitently. 50% of the times, it would give this error message:
Even when it runs, it would stuck again at the subsequent |
I came across the same problem, and this link solved it: #6 |
Hi, I came across this issue - "stuck" too in an embed platform, is this just the computation power too slow, or this is due to some inefficiency of program? I test in x86, it is ok, and can process 1w/s of my database, my database is 11w, so 11s will be ok, but in embed one, it is 0.7w/min, and it is to say it won't finish until 15min later, I didn't wait, but I am really confused, is this really need so much compute power? How you solve this, @hmchung I see in your github fork, I see just "if (i==0) usleep(1000)", and emmm, this doesn't really make ....that much sense, and I test it, nothing changed but wait 1s, so what's really going on with this issue, can I conclude it is just due to computation power not enough? |
It seems turn out to be the string stream is very slow on some platform without speed up: https://stackoverflow.com/questions/5830868/c-stringstream-is-too-slow-how-to-speed-up and in essence, the database is not binary and that function is manual reverse serialization, which is not optimized. If someone come across the same problem, the database can change to something like protobuf defined binary format. |
Forget what I said, in my case, it is due to OpenCV 4.0 reimplement of cv::FileNode data access
refer to: https://github.com/opencv/opencv/wiki/ChangeLog#version400 Change the source code, use cv:;FIleNodeIterator will be ok. |
Hi guys, I have issue running the
demo_general
. The compilation shows no issue, but the execution just hangs after producing this message:Creating a small database...
After some simple investigation, I found that the execution seems to stuck in this loop:
(File
Vocabulary.cpp
, line 1396-1411)Does any one has the same issue or has any idea why?
Thank you very much
Chung
The text was updated successfully, but these errors were encountered: