fix HeadlessView::readPixels return value, ref #480
XInitThreads
Try printing core dump