问题
用PCL的plotter画图,多线程中出错
```bash
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
hpp: ../../src/xcb_io.c:260: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)
解决办法
头文件包含
#include <X11/X1lib.h>
//避免和Eigen冲突
#ifdef Success
#undef Success
#endif
在main函数中加入
XInitThreads();
参考
[1].https://www.x.org/releases/X11R7.5/doc/man/man3/XInitThreads.3.html