Opencv 多线程显示错误 [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-thre
2017-05-24 17:46
1841 查看
本文转自 http://blog.csdn.net/michaelhan3/article/details/54707417OpenCV 多线程显示出现以下错误:[xcb] Unknown request in queue while dequeuing[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called[xcb] Aborting, sorry about that.Blurring_Images: ../../src/xcb_io.c:178: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.The program has unexpectedly finished.解决办法:通过链接X11,包含xlib库和调用XinitThreads例如:
// main.cpp #include <thread> #include <X11/Xlib.h> int main() { XInitThreads(); // . . . }
g++ main.cpp -o my_program -std=c++0x -pthread -lX11 /* -pthread if you're on Linux */当然还是链接你的其他生成库
相关文章推荐
- Opencv 多线程显示错误 [xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-thre
- SDL多线程问题之--Unknown request in queue while dequeuing
- SDL多线程问题之--Unknown request in queue while dequeuing
- iOS--错误集锦--Capturing 'self' strongly in this block is likely to lead to a retain cycle
- 在block函数中规避错误信息 "capturing self strongly in this block is likely to lead to a retain cycle”
- Springmvc rest 传递json报415错误(The server refused this request because the request entity is in a forma
- 错误:created a ThreadLocal with key of type ……but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
- Capturing 'self' strongly in this block is likely to lead to retain cycle 解决方案
- asp.net 关于WebResource.axd, "This is an invalid webresource request."的错误
- 改主机名后启weblogic失败,Could not obtain the localhost address. The most likely cause is an error in the ne
- capturing self strongly in this block is likely to lead to a retain cycle
- capturing ‘self’ strongly in this block is likely to lead to a retain cycle
- 访问MS CRM 自定义web service 碰到的错误: FIX Request format is unrecognized for URL unexpectedly ending in
- 关于出现Name jdbc is not bound in this Context错误的解决
- The security validation for this page is invalid. Click Back in your Web错误
- opencv中关于图像图像处理时出现Bad argument (Array should be the cvMat or IplImage) in unknown function ……错误的解决办法
- 奇怪的错误:This generally means that another instance of this process was already running or is hung in t
- Request is not available in this context exception in Application_Start
- 遭遇ASP.NET的Request is not available in this context
- IIS7集成模式初始化Spring.NET容器(Request is not available in this context exception in Application_Start问题)