I was build drivers r4p0 for Orange Pi 2 (Allwiner H3 soc)
And now get the error.... with runing es2_info
[xcb] Unknown request in queue while appending request
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
What next how resolve?
more output
# es2_info EGL_VERSION = 1.4 Linux-r4p0-00rel0 EGL_VENDOR = ARM EGL_EXTENSIONS = EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_vg_parent_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_CLIENT_APIS = OpenGL_ES OpenVG GL_VERSION: OpenGL ES 2.0 GL_RENDERER: Mali-400 MP GL_EXTENSIONS: GL_OES_texture_npot, GL_OES_compressed_ETC1_RGB8_texture, GL_OES_standard_derivatives, GL_OES_EGL_image, GL_OES_depth24, GL_ARM_rgba8, GL_ARM_mali_shader_binary, GL_OES_depth_texture, GL_OES_packed_depth_stencil, GL_EXT_texture_format_BGRA8888, GL_EXT_blend_minmax, GL_OES_EGL_image_external, GL_OES_EGL_sync [xcb] Unknown request in queue while appending request [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. Segmentation fault (core dumped)
After search I found that
Issue: The Mali userspace blob (libMali.so) has issues with threading. It uses threading internally but doesn't call XInitThreads early, which leads to problems.
or because all multithread Xorg application need call XInitThreads before any work with Xorg. libMali implicitly uses threads and call XInitThreads too later.
http://forum.odroid.com/viewtopic.php?f=52&t=2680
But how resolve that issue for Orange Pi 2 (Allwinner H3) without direct patching LibMali.so
After debugging es2_info I fount that crash after call XCloseDisplay().