Skip to content
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

bug while creating namedWindow in a pthread #4257

Closed
opencv-pushbot opened this issue Jul 27, 2015 · 2 comments
Closed

bug while creating namedWindow in a pthread #4257

opencv-pushbot opened this issue Jul 27, 2015 · 2 comments

Comments

@opencv-pushbot
Copy link
Contributor

Transferred from http://code.opencv.org/issues/695

|| Ömer Orkun Düztaş on 2010-11-21 13:01
|| Priority: Low
|| Affected: None
|| Category: highgui-gui
|| Tracker: Bug
|| Difficulty: None
|| PR: None
|| Platform: None / None

bug while creating namedWindow in a pthread

I'm coding a multi threaded video surveillance application. while one thread capturing the video stream, another thread is processing. when I start the my program sometimes I take an error as :

"OpenCV Error: Unspecified error (Frame window can not be created) in cvNamedWindow, file C:\User\VP\ocv\opencv\src\highgui\window_w32.cpp, line 405

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."

but sometimes it runs in a right way. It occurs non-demerministically and when it occur I wait half a minute and then run the program again and it runs correctly.

History

Alexander Shishkov on 2012-03-21 22:02
-   Target version deleted ()
-   Priority changed from High to Normal
Alexander Shishkov on 2012-03-25 20:37
-   Priority changed from Normal to Low
Alexander Shishkov on 2012-03-25 20:49
-   Assignee deleted (Ömer Orkun Düztaş)
Alexander Shishkov on 2012-04-05 12:48
-   Target version deleted ()
Andrey Kamaev on 2012-08-16 15:11
-   Category changed from highgui-images to highgui-gui
@vladimir-dudnik
Copy link
Contributor

Anyone else has meet the same problem? Seems we should close this outdated issue as there are no clear and direct reproducer.

@alalek
Copy link
Member

alalek commented Sep 26, 2019

Some platforms doesn't work with UI properly from non-main threads. So this can't be fixed in OpenCV.
It is better to avoid UI interaction outside of main thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants