364.12 - GTX 580 - Using glxinfo in weston with xwayland.so module crashes

Hi,

When executing glxinfo with weston and the xwayland.so module loaded through a custom weston.ini it crashes weston.

Date: 2016-03-22 CET
[09:27:57.137] weston 1.10.90
               http://wayland.freedesktop.org
               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.10.90
               Build: 1.10.0-55-gc6459c49-dirty hmi-controller: fix wrong panel width (2016-03-18 12:42:50 +0200)
[09:27:57.137] OS: Linux, 4.4.5-1-ARCH, #1 SMP PREEMPT Thu Mar 10 07:38:19 CET 2016, x86_64
[09:27:57.138] Using config file '/home/tim/weston.ini'
[09:27:57.138] Output repaint window is 7 ms maximum.
[09:27:57.138] Loading module '/usr/lib/weston/drm-backend.so'
[09:27:57.142] initializing drm backend
[09:27:57.146] logind: session control granted
[09:27:57.147] using /dev/dri/card0
[09:27:57.147] Loading module '/usr/lib/weston/gl-renderer.so'
[09:27:57.149] EGL client extensions: EGL_KHR_client_get_all_proc_addresses
               EGL_EXT_client_extensions EGL_EXT_platform_base
               EGL_EXT_platform_x11 EGL_EXT_platform_wayland
               EGL_EXT_platform_device EGL_EXT_device_base
[09:27:57.159] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
[09:27:57.159] warning: EGL_EXT_swap_buffers_with_damage not supported. Performance could be affected.
[09:27:57.164] input device 'Power Button', /dev/input/event1 is tagged by udev as: Keyboard
[09:27:57.164] input device 'Power Button', /dev/input/event1 is a keyboard
[09:27:57.165] input device 'Power Button', /dev/input/event0 is tagged by udev as: Keyboard
[09:27:57.165] input device 'Power Button', /dev/input/event0 is a keyboard
[09:27:57.166] input device 'HDA NVidia HDMI/DP,pcm=3', /dev/input/event15 not tagged as input device
[09:27:57.166] failed to create input device '/dev/input/event15'.
[09:27:57.167] input device 'HDA NVidia HDMI/DP,pcm=7', /dev/input/event16 not tagged as input device
[09:27:57.167] failed to create input device '/dev/input/event16'.
[09:27:57.168] input device 'HDA NVidia HDMI/DP,pcm=8', /dev/input/event17 not tagged as input device
[09:27:57.168] failed to create input device '/dev/input/event17'.
[09:27:57.169] input device 'HDA NVidia HDMI/DP,pcm=9', /dev/input/event18 not tagged as input device
[09:27:57.169] failed to create input device '/dev/input/event18'.
[09:27:57.170] input device 'HDA Intel PCH Front Mic', /dev/input/event7 not tagged as input device
[09:27:57.170] failed to create input device '/dev/input/event7'.
[09:27:57.171] input device 'HDA Intel PCH Rear Mic', /dev/input/event8 not tagged as input device
[09:27:57.171] failed to create input device '/dev/input/event8'.
[09:27:57.172] input device 'HDA Intel PCH Line', /dev/input/event9 not tagged as input device
[09:27:57.172] failed to create input device '/dev/input/event9'.
[09:27:57.173] input device 'HDA Intel PCH Line Out Front', /dev/input/event10 not tagged as input device
[09:27:57.173] failed to create input device '/dev/input/event10'.
[09:27:57.174] input device 'HDA Intel PCH Line Out Surround', /dev/input/event11 not tagged as input device
[09:27:57.174] failed to create input device '/dev/input/event11'.
[09:27:57.175] input device 'HDA Intel PCH Line Out CLFE', /dev/input/event12 not tagged as input device
[09:27:57.175] failed to create input device '/dev/input/event12'.
[09:27:57.175] input device 'HDA Intel PCH Line Out Side', /dev/input/event13 not tagged as input device
[09:27:57.175] failed to create input device '/dev/input/event13'.
[09:27:57.176] input device 'HDA Intel PCH Front Headphone', /dev/input/event14 not tagged as input device
[09:27:57.176] failed to create input device '/dev/input/event14'.
[09:27:57.230] input device 'ROCCAT ROCCAT Lua', /dev/input/event5 is tagged by udev as: Mouse
[09:27:57.230] Device 'ROCCAT ROCCAT Lua' set to 1000 DPI
[09:27:57.230] input device 'ROCCAT ROCCAT Lua', /dev/input/event5 is a pointer caps
[09:27:57.232] input device 'HID 046a:010d', /dev/input/event4 is tagged by udev as: Keyboard
[09:27:57.232] input device 'HID 046a:010d', /dev/input/event4 is a keyboard
[09:27:57.233] input device 'HID 046a:010d', /dev/input/event6 is tagged by udev as: Keyboard
[09:27:57.233] input device 'HID 046a:010d', /dev/input/event6 is a keyboard
[09:27:57.234] input device 'Eee PC WMI hotkeys', /dev/input/event3 is tagged by udev as: Keyboard
[09:27:57.234] input device 'Eee PC WMI hotkeys', /dev/input/event3 is a keyboard
[09:27:57.235] input device 'PC Speaker', /dev/input/event2 not tagged as input device
[09:27:57.235] failed to create input device '/dev/input/event2'.
[09:27:57.289] EGL version: 1.4
[09:27:57.289] EGL vendor: NVIDIA
[09:27:57.289] EGL client APIs: OpenGL_ES OpenGL
[09:27:57.289] EGL extensions: EGL_EXT_create_context_robustness
               EGL_EXT_output_base EGL_EXT_output_drm
               EGL_EXT_stream_consumer_egloutput EGL_EXT_stream_acquire_mode
               EGL_IMG_context_priority EGL_KHR_config_attribs
               EGL_KHR_create_context_no_error EGL_KHR_create_context
               EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses
               EGL_KHR_swap_buffers_with_damage EGL_KHR_gl_renderbuffer_image
               EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
               EGL_KHR_image EGL_KHR_image_base EGL_KHR_reusable_sync
               EGL_KHR_stream EGL_KHR_stream_consumer_gltexture
               EGL_KHR_stream_cross_process_fd EGL_KHR_stream_fifo
               EGL_KHR_stream_producer_eglsurface EGL_KHR_surfaceless_context
               EGL_NV_stream_metadata EGL_NV_stream_sync
               EGL_NV_stream_consumer_gltexture_yuv EGL_NV_sync
               EGL_NV_system_time EGL_NV_output_drm_flip_event
               EGL_WL_bind_wayland_display
[09:27:57.289] GL version: OpenGL ES 3.2 NVIDIA 364.12
[09:27:57.289] GLSL version: OpenGL ES GLSL ES 3.20
[09:27:57.289] GL vendor: NVIDIA Corporation
[09:27:57.289] GL renderer: GeForce GTX 580/PCIe/SSE2
[09:27:57.289] GL extensions: GL_EXT_base_instance GL_EXT_blend_func_extended
               GL_EXT_blend_minmax GL_EXT_buffer_storage
               GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float
               GL_EXT_copy_image GL_EXT_debug_label GL_EXT_discard_framebuffer
               GL_EXT_disjoint_timer_query GL_EXT_draw_buffers_indexed
               GL_EXT_draw_elements_base_vertex GL_EXT_float_blend
               GL_EXT_frag_depth GL_EXT_geometry_point_size
               GL_EXT_geometry_shader GL_EXT_gpu_shader5
               GL_EXT_map_buffer_range GL_EXT_multi_draw_indirect
               GL_EXT_multisample_compatibility GL_EXT_occlusion_query_boolean
               GL_EXT_primitive_bounding_box GL_EXT_render_snorm
               GL_EXT_robustness GL_EXT_separate_shader_objects
               GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix
               GL_EXT_shader_io_blocks GL_EXT_shader_texture_lod
               GL_EXT_shadow_samplers GL_EXT_sparse_texture GL_EXT_sRGB
               GL_EXT_sRGB_write_control GL_EXT_tessellation_point_size
               GL_EXT_tessellation_shader GL_EXT_texture_border_clamp
               GL_EXT_texture_buffer GL_EXT_texture_compression_dxt1
               GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map_array
               GL_EXT_texture_filter_anisotropic
               GL_EXT_texture_format_BGRA8888 GL_EXT_texture_norm16
               GL_EXT_texture_rg GL_EXT_texture_sRGB_decode
               GL_EXT_texture_storage GL_EXT_texture_view
               GL_EXT_unpack_subimage GL_KHR_context_flush_control
               GL_KHR_debug GL_KHR_no_error
               GL_KHR_robust_buffer_access_behavior GL_KHR_robustness
               GL_NV_bgr GL_NV_blend_equation_advanced
               GL_NV_conditional_render GL_NV_copy_buffer GL_NV_copy_image
               GL_NV_draw_buffers GL_NV_draw_instanced GL_NV_draw_texture
               GL_NV_EGL_stream_consumer_external
               GL_NV_explicit_attrib_location GL_NV_fbo_color_attachments
               GL_NV_framebuffer_blit GL_NV_framebuffer_multisample
               GL_NV_generate_mipmap_sRGB GL_NV_instanced_arrays
               GL_NV_internalformat_sample_query GL_NV_gpu_shader5
               GL_NV_image_formats GL_NV_occlusion_query_samples
               GL_NV_non_square_matrices GL_NV_pack_subimage
               GL_NV_packed_float GL_NV_packed_float_linear
               GL_NV_path_rendering GL_NV_pixel_buffer_object
               GL_NV_polygon_mode GL_NV_read_buffer GL_NV_read_depth
               GL_NV_read_depth_stencil GL_NV_read_stencil
               GL_NV_shader_noperspective_interpolation
               GL_NV_shadow_samplers_array GL_NV_shadow_samplers_cube
               GL_NV_sRGB_formats GL_NV_texture_array
               GL_NV_texture_border_clamp GL_NV_texture_compression_latc
               GL_NV_texture_compression_s3tc
               GL_NV_texture_compression_s3tc_update GL_NV_timer_query
               GL_NV_viewport_array GL_KHR_blend_equation_advanced
               GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
               GL_OES_depth32 GL_OES_depth_texture
               GL_OES_depth_texture_cube_map GL_OES_copy_image
               GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex
               GL_OES_texture_border_clamp GL_OES_tessellation_point_size
               GL_OES_tessellation_shader GL_OES_texture_buffer
               GL_OES_geometry_point_size GL_OES_geometry_shader
               GL_OES_gpu_shader5 GL_OES_shader_io_blocks GL_OES_texture_view
               GL_OES_primitive_bounding_box GL_OES_EGL_image GL_OES_EGL_sync
               GL_OES_element_index_uint GL_OES_fbo_render_mipmap
               GL_OES_get_program_binary GL_OES_mapbuffer
               GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8
               GL_OES_sample_shading GL_OES_sample_variables
               GL_OES_shader_image_atomic
               GL_OES_shader_multisample_interpolation
               GL_OES_standard_derivatives GL_OES_surfaceless_context
               GL_OES_texture_cube_map_array GL_OES_texture_npot
               GL_OES_texture_float GL_OES_texture_float_linear
               GL_OES_texture_half_float GL_OES_texture_half_float_linear
               GL_OES_texture_stencil8
               GL_OES_texture_storage_multisample_2d_array
               GL_OES_vertex_array_object GL_OES_vertex_half_float
               GL_ANDROID_extension_pack_es31a
[09:27:57.290] GL ES 2 renderer features:
               read-back format: RGBA
               wl_shm sub-image to texture: yes
               EGL Wayland extension: yes
[09:27:57.290] Failed to initialize backlight
[09:27:57.290] EDID data 'HYO', '', ''
[09:27:57.290] Output DVI-I-1, (connector 27, crtc 22)
               mode 2560x1440@60.0, current
[09:27:57.290] Compositor capabilities:
               arbitrary surface rotation: yes
               screen capture uses y-flip: yes
               presentation clock: CLOCK_MONOTONIC, id 1
[09:27:57.290] Loading module '/usr/lib/weston/desktop-shell.so'
[09:27:57.290] launching '/usr/lib/weston/weston-keyboard'
[09:27:57.291] Loading module '/usr/lib/weston/xwayland.so'
[09:27:57.294] unlinking stale lock file /tmp/.X0-lock
[09:27:57.294] xserver listening on display :0
[09:27:57.307] launching '/usr/lib/weston/weston-desktop-shell'
ERROR loading icon from file '/usr/share/icons/gnome/24x24/apps/utilities-terminal.png', error: 'file not found'
ERROR loading icon from file '/usr/share/icons/gnome/24x24/apps/utilities-terminal.png', error: 'file not found'
Unknown parameter: ?2004
[09:28:04.875] forked X server, pid 1157
Unknown parameter: ?2004
Disabling glamor and dri3, EGL setup failed
Failed to initialize glamor, falling back to sw
(EE) 
Fatal server error:
(EE) failed to dispatch Wayland events: Connection reset by peer
(EE) 
child 1130 exited

So Xwayland needs GLAMOR and DRI3? Is that something that can be added to the current NVIDIA stack or will this require some workarounds?