On AMD (ATI) graphics cards only one thread can use XOpenDisplay() and XCloseDisplay().
Attach a file by drag & drop or click to upload