1.在rgbd_tum.cc下解决
[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.
backend: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
[Thread 0x7f6b015060 (LWP 3517) exited]
多线程操作 GUI 程序崩溃
参照https://blog.csdn.net/lk_luck/article/details/115377498
加入头文件
#include <X11/Xlib.h>
及
XInitThreads();