-
Notifications
You must be signed in to change notification settings - Fork 86
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
Crash #156
Comments
I have found why backscrub don't terminate with a crash while debug level > 1. If the 'q' key is pressed, we remember this With these simple modifications, I don't have any more crashes at termination. |
This sounds like a classic race condition. And this being said I absolutely don't like the approach of the fix you suggested. ;-) Instead proper synchronization should be used instead. |
@BenBE, I agree this is not the best approach. The backscrub own thread sync work as far I was able to check this, as expected. We perform the following:
We don't have the possibility to check if displaying within imshow() was finished. |
I have found a simple solution which seem to work well. |
If we call backscrub with the debug mode set to 2 and the size of the camera stream or the size of the output stream is to small, eg. 160x90 which is a resolution supported by my webcam, this will happen.
The problem is that the size of the mask has always a width of 166px x 166px (default model). 166pc is greater as 90px and we get an error.
The text was updated successfully, but these errors were encountered: