Qt+opencv, 出错(Fatal IO error 11)(XInitThreads)
2017-06-16 16:42
531 查看
程序运行时,有3种情况:
正常;
直接报错1;
直接报错2。
报错1:
[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.
most likely this is a multi-threaded client and XInitThreads.............
报错2:
Fatal IO error 11 (资源暂时不可用) on X server :0
Fatal IO Error: 11 (resource temporarily unavailable)
程序很简单,就是主线程不停的从网络摄像头获取图像,显示。
次线程从主线程请求图像,处理,显示处理图像,再次请求。
两个线程中都会调用opencv显示图像,导致绘图冲突,应该把绘图操作都放到主线程中处理。
所有的界面操作都应该放在主线程中!
正常;
直接报错1;
直接报错2。
报错1:
[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.
most likely this is a multi-threaded client and XInitThreads.............
报错2:
Fatal IO error 11 (资源暂时不可用) on X server :0
Fatal IO Error: 11 (resource temporarily unavailable)
程序很简单,就是主线程不停的从网络摄像头获取图像,显示。
次线程从主线程请求图像,处理,显示处理图像,再次请求。
两个线程中都会调用opencv显示图像,导致绘图冲突,应该把绘图操作都放到主线程中处理。
所有的界面操作都应该放在主线程中!
相关文章推荐
- 解决VMware8安装CentOS等系统时出现Fatal IO error 11(Resource temporarilt unavaliable) on Xshell:1问题
- Fatal IO error 11 错误解决
- fatal io error 11错误
- python: Fatal IO error 11
- QT 嵌入式编译出错:cc1: fatal error: .pch/release-shared-emb-arm/QtGui: No such file or directory 解决方案:
- 出现Fatal IO error 11 (资源暂时不可用) on X server :0.0.的可能原因及解决方案
- Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find
- FATAL ERROR: could not find /usr/bin/my_print_defaults创建权限表出错
- 11-27:输错三次禁止登陆,15分钟后才能继续。用数据库记录ErrorTimes,最后出错时间lastErrorDateTime
- ADS编译出错“Error : (Fatal) L6015U: Could not find any input files to link.”
- Last_IO_Errno: 1236 Last_IO_Error: Got fatal error 1236 from master when reading data from binary lo
- FATAL conf.Configuration: error parsing conf file:com.sum.*.io.MalformedByteSequenceExcetion:*UTF-8
- Fatal IO error 104 (Connection reset by peer) on X server
- 在Mac下使用QT调用OpenCV产生error: symbol(s) not found for architecture x86_64错误
- qt-everywhere-opensource-src-4.8.1 出错:error: 'IPV6_MULTICAST_HOPS' was not declared in this scope
- mysql_install_db出错,Unable to lock /usr/local/mysql/var/ibdata1, error: 11
- php连接mysql出错:Fatal error: Call to undefined function mysql_connect()
- 【MySQL】MySQL同步报错-> Last_IO_Error: Got fatal error 1236 from master when reading data from binary log
- Parse Fatal Error at line 1 column 1: Content is not allowed in prolog. org.xml.sax.SAXParseExceptio