-
Notifications
You must be signed in to change notification settings - Fork 724
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
Camera calibration segfault when displaying images from thread #85
Comments
I have Indigo on the same configuration and I do not have that problem (other persons are using this code without errors too).
Anything else you are running ? |
Strange... anyway, I've tried with your branch but it gave the same result. Actually, from time to time, instead of segfaulting, it gives this output, and blocks there:
I don't know whether it's helpful, or more confusing ;-) I run camera calibration with a simple webcam, like that:
Let's try to be more precise on the libraries:
|
I have both kubuntu and ubuntu installed ... I guess I need a pure Ubuntu. I'll try to get a big enough USB key to get that going. |
I think the OpenCV version is the same, it's just the last character that got dropped in my copy/pasting ;-) |
please, try this out and tell me if it works for you. Thx |
Almost :-) The
Also, there is a typo in redraw_stereo():
|
I had fixed the typo, I guess I did not push at the right moment. And does that work for you with those 2 changes ? |
With these 2 small fixes, yes it works fine :-) |
Running the camera calibration (mono or stereo) with git head (indigo) fails with this errors:
That's on a Ubuntu 14.04 64-bits (x86).
My understanding is that it's due to the move to OpenCV2, which uses QT, which doesn't allow to draw on the window from a different thread than the original thread that created the window.
I'm not sure what's the right way to fix it. As a workaround, I've moved the window init code to its own function, and add a call to that function from the init of the ConsumerThread (passed as a 3rd argument).
But I had to disable the stereo thread.
It looks more or less like that:
The text was updated successfully, but these errors were encountered: