Unable to run X-clients over Weston through XWayland
Devashish Tiwari
devashish at cdot.in
Fri Dec 13 11:38:45 UTC 2019
Hi,
As you mentioned in last email about using latest version of weston, I have compiled weston-7.0.0 from it's official release.
However, when I run it with the previous /etc/weston.ini configuration, I am getting following logs:
-------------------------------------------------------
Date: 2019-12-13 UTC
[10:51:55.118] weston 7.0.0
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 7.0.0
[10:51:55.118] Command line: weston --idle-time=0
[10:51:55.118] OS: Linux, 4.14.79-ge669d52447, #1 SMP PREEMPT Fri Nov 29 11:48:31 IST 2019, armv7l
[10:51:55.118] Using config file '/etc//weston.ini'
[10:51:55.119] Output repaint window is 7 ms maximum.
[10:51:55.119] Loading module '/home/darsh/Weston_ARM/weston-7.0.0/install/usr/local/lib/libweston-7/drm-backend.so'
[10:51:55.125] initializing drm backend
[10:51:55.126] logind: not running in a systemd session
[10:51:55.126] logind: cannot setup systemd-logind helper (-61), using legacy fallback
[10:51:55.129] using /dev/dri/card0
[10:51:55.129] DRM: supports universal planes
[10:51:55.129] DRM: supports atomic modesetting
[10:51:55.129] DRM: does not support picture aspect ratio
[10:51:55.129] Loading module '/home/darsh/Weston_ARM/weston-7.0.0/install/usr/local/lib/libweston-7/gl-renderer.so'
gbm: failed to open any driver (search paths /home/darsh/Xorg/install/usr/local/lib/dri)
gbm: Last dlopen error: /home/darsh/Xorg/install/usr/local/lib/dri/omapdrm_dri.so: cannot open shared object file: No such file or directory
failed to load driver: omapdrm
[10:51:55.155] EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses
EGL_KHR_debug EGL_EXT_platform_wayland EGL_EXT_platform_x11
EGL_MESA_platform_gbm
[10:51:55.156] EGL version: 1.4 (DRI2)
[10:51:55.156] EGL vendor: Mesa Project
[10:51:55.156] EGL client APIs: OpenGL OpenGL_ES
[10:51:55.156] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import
EGL_KHR_config_attribs EGL_KHR_create_context
EGL_KHR_get_all_proc_addresses 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_image_pixmap
EGL_KHR_no_config_context EGL_KHR_reusable_sync
EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float
EGL_MESA_configless_context
[10:51:55.156] warning: Disabling render GPU timeline and explicit synchronization due to missing EGL_ANDROID_native_fence_sync extension
[10:51:55.156] warning: Disabling explicit synchronization dueto missing EGL_KHR_wait_sync extension
[10:51:55.156] EGL_KHR_surfaceless_context available
[10:51:55.181] GL version: OpenGL ES 3.0 Mesa 10.4.4
[10:51:55.181] GLSL version: OpenGL ES GLSL ES 3.0
[10:51:55.181] GL vendor: VMware, Inc.
[10:51:55.181] GL renderer: Gallium 0.4 on softpipe
[10:51:55.181] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_format_BGRA8888
GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
GL_OES_element_index_uint GL_OES_fbo_render_mipmap
GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives
GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_npot
GL_OES_EGL_image GL_OES_depth_texture
GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
GL_OES_get_program_binary GL_APPLE_texture_max_level
GL_EXT_discard_framebuffer GL_EXT_read_format_bgra
GL_NV_fbo_color_attachments GL_OES_EGL_image_external
GL_OES_vertex_array_object GL_EXT_texture_rg
GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer
GL_EXT_map_buffer_range GL_OES_depth_texture_cube_map
GL_OES_surfaceless_context GL_EXT_color_buffer_float
GL_EXT_separate_shader_objects GL_EXT_shader_integer_mix
GL_KHR_context_flush_control
[10:51:55.181] GL ES 2 renderer features:
read-back format: BGRA
wl_shm sub-image to texture: yes
EGL Wayland extension: no
[10:51:55.190] event1 - [10:51:55.191] pixcir_tangoc: [10:51:55.191] is tagged by udev as: Touchscreen
[10:51:55.191] event1 - [10:51:55.191] pixcir_tangoc: [10:51:55.191] device is a touch device
[10:51:55.192] event0 - [10:51:55.192] gpio_keys: [10:51:55.192] is tagged by udev as: Keyboard
[10:51:55.192] event0 - [10:51:55.192] gpio_keys: [10:51:55.192] device is a keyboard
[10:51:55.192] Touchscreen - pixcir_tangoc - /sys/devices/platform/44000000.ocp/4807c000.i2c/i2c-4/4-005c/input/input1/event1
[10:51:55.192] libinput: configuring device "pixcir_tangoc".
[10:51:55.192] input device event1 has no enabled output associated (none named), skipping calibration for now.
[10:51:55.206] libinput: configuring device "gpio_keys".
[10:51:55.206] DRM: head 'DPI-1' found, connector 35 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[10:51:55.206] DRM: head 'HDMI-A-1' found, connector 41 is disconnected.
[10:51:55.207] Registered plugin API 'weston_drm_output_api_v1' of size 12
[10:51:55.207] Registered plugin API 'weston_drm_virtual_output_api_v1' of size 24
[10:51:55.207] Chosen EGL config details:
RGBA bits: 8 8 8 0
swap interval range: 1 - 1
[10:51:55.207] Output DPI-1 (crtc 39) video modes:
800x480 at 59.5, preferred, current, 33.0 MHz
[10:51:55.207] associating input device event1 with output DPI-1 (none by udev)
[10:51:55.207] Warning: input device event1 has WL_CALIBRATION property set. Support for it will be removed in the future. Please use LIBINPUT_CALIBRATION_MATRIX instead.
[10:51:55.207] input device event1: applying calibration:
240.000000 -9.638554 -233.880722
48.000000 -1.445783 -77.695175
raw translation -187104.578125 -37293.683594 for output DPI-1
[10:51:55.208] associating input device event0 with output DPI-1 (none by udev)
[10:51:55.208] Output 'DPI-1' enabled with head(s) DPI-1
[10:51:55.208] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[10:51:55.208] Loading module '/home/darsh/Weston_ARM/weston-7.0.0/install/usr/local/lib/weston/desktop-shell.so'
[10:51:55.209] launching '/home/darsh/Weston_ARM/weston-7.0.0/install/usr/local/libexec/weston-keyboard'
[10:51:55.211] launching '/home/darsh/Weston_ARM/weston-7.0.0/install/usr/local/libexec/weston-desktop-shell'
[10:51:55.971] failed to create kms fb: No such file or directory
[10:51:55.971] failed to get drm_fb for bo
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
xkbcommon: ERROR: couldn't find a Compose file for locale "C"
could not create XKB compose table for locale 'C'. Disabiling compose
xkbcommon: ERROR: couldn't find a Compose file for locale "C"
could not create XKB compose table for locale 'C'. Disabiling compose
[10:51:57.807] failed to create kms fb: No such file or directory
[10:51:57.807] failed to get drm_fb for bo
[10:52:57.761] failed to create kms fb: No such file or directory
[10:52:57.762] failed to get drm_fb for bo
[10:53:57.774] failed to create kms fb: No such file or directory
[10:53:57.774] failed to get drm_fb for bo
[10:54:57.765] failed to create kms fb: No such file or directory
[10:54:57.766] failed to get drm_fb for bo
------------------------------------------------------
I compared these logs to my weston-2.0.0 logs and I noticed "EGL Wayland extension: yes" which is "no" in weston-7.0.0.
Apart from these, there are some other differences between two log files.
Can you help?
On Thu, 12 Dec 2019 12:12:22 +0200, Pekka Paalanen wroteOn Thu, 12 Dec 2019 10:40:13 +0530
"Devashish Tiwari" <devashish at cdot.in> wrote:
> Hi,
>
> I am nowhere close to getting those 3 lines you mentioned in the
> trailing mail.
>
> Also note that, my $WAYLAND_DISPLAY variable is set to wayland-0 and
> $DISPLAY is set to :0. Is that alright?
Yes, they have absolutely nothing to do with each other.
>
> I am once again attaching my weston logs here for your analysis.
> Please let me know how to get those three lines in the log, as in,
> how should I make Xwayland spawn as a separate pid.
>
> Right now I am not getting any trace of Xwayland in "ps -ef" or
> anywhere else. The only silver lining I see here is the log "xserver
> listening on display :0" in weston.log
So have you actually tried to 'strace' an X11 app like I have asked
twice before? Any errors there related to opening the X11 socket? There
should be, since X11 apps cannot connect, but what exactly is the error?
>
> ------------------------Weston log start------------------
>
> Date: 2019-12-12 IST
> [12:06:24.838] weston 2.0.0
> http://wayland.freedesktop.org
> Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=2.0.0
> Build: 1.99.94-2-g4c4f13d configure.ac: bump to version 2.0.0 for the official release (2017-02-24 16:19:03 -0800)
> [12:06:24.838] Command line: weston --idle-time=0
> [12:06:24.838] OS: Linux, 4.14.79-ge669d52447, #1 SMP PREEMPT Fri Nov 29 11:48:31 IST 2019, armv7l
> [12:06:24.843] Using config file '/etc//weston.ini'
> [12:06:24.877] Output repaint window is 7 ms maximum.
> [12:06:24.927] Loading module '/usr/lib/libweston-2/drm-backend.so'
> [12:06:24.939] initializing drm backend
> [12:06:24.944] using /dev/dri/card0
> [12:06:24.959] Loading module '/usr/lib/libweston-2/gl-renderer.so'
> failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
> failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
> loaded module : gbm_pvr.so
> found valid GBM backend : gbm_pvr.so
> [12:06:25.146] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
> [12:06:25.166] warning: EGL_EXT_buffer_age not supported. Performance could be affected.
> [12:06:25.166] warning: neither EGL_EXT_swap_buffers_with_damage or EGL_KHR_swap_buffers_with_damage is supported. Performance could be affected.
> [12:06:25.166] Retrieving EGL client extension string failed.
> [12:06:25.166] EGL_KHR_surfaceless_context available
> [12:06:25.251] EGL version: 1.4 build 1.14 at 3699939 (MAIN)
> [12:06:25.251] EGL vendor: Imagination Technologies
> [12:06:25.251] EGL client APIs: OpenGL_ES
> [12:06:25.251] EGL extensions: EGL_IMG_client_api_ogl EGL_KHR_image
> EGL_KHR_image_base EGL_KHR_gl_texture_2D_image
> EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image
> EGL_KHR_vg_parent_image EGL_IMG_cl_image EGL_KHR_fence_sync
> EGL_IMG_context_priority EGL_IMG_hibernate_process
> EGL_IMG_image_plane_attribs EGL_KHR_surfaceless_context
> EGL_KHR_wait_sync EGL_KHR_create_context
> EGL_WL_bind_wayland_display EGL_EXT_image_dma_buf_import
> [12:06:25.251] GL version: OpenGL ES 2.0 build 1.14 at 3699939 (MAIN)
> [12:06:25.251] GLSL version: OpenGL ES GLSL ES 1.00 build 1.14 at 3699939 (MAIN)
> [12:06:25.251] GL vendor: Imagination Technologies
> [12:06:25.251] GL renderer: PowerVR SGX 544MP
> [12:06:25.251] GL extensions: GL_OES_rgb8_rgba8 GL_OES_depth24
> GL_OES_vertex_half_float GL_OES_texture_float
> GL_OES_texture_half_float GL_OES_element_index_uint
> GL_OES_mapbuffer GL_OES_fragment_precision_high
> GL_OES_compressed_ETC1_RGB8_texture GL_OES_EGL_image
> GL_OES_EGL_image_external GL_OES_required_internalformat
> GL_OES_depth_texture GL_OES_get_program_binary
> GL_OES_packed_depth_stencil GL_OES_standard_derivatives
> GL_OES_vertex_array_object GL_OES_egl_sync GL_OES_texture_npot
> GL_OES_surfaceless_context GL_EXT_discard_framebuffer
> GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
> GL_EXT_multisampled_render_to_texture GL_EXT_shader_texture_lod
> GL_EXT_texture_format_BGRA8888 GL_EXT_occlusion_query_boolean
> GL_EXT_texture_rg GL_EXT_draw_buffers
> GL_EXT_shader_framebuffer_fetch GL_IMG_shader_binary
> GL_IMG_texture_compression_pvrtc
> GL_IMG_texture_compression_pvrtc2 GL_IMG_texture_npot
> GL_IMG_texture_format_BGRA8888 GL_IMG_read_format
> GL_IMG_program_binary GL_IMG_uniform_buffer_object
> GL_IMG_multisampled_render_to_texture GL_KHR_debug
> [12:06:25.251] GL ES 2 renderer features:
> read-back format: RGBA
> wl_shm sub-image to texture: no
> EGL Wayland extension: yes
> [12:06:25.267] event1 - [12:06:25.267] pixcir_tangoc: [12:06:25.267] is tagged by udev as: Touchscreen
> [12:06:25.267] event1 - [12:06:25.267] pixcir_tangoc: [12:06:25.267] device is a touch device
> [12:06:25.269] event3 - [12:06:25.269] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:25.269] is tagged by udev as: Keyboard
> [12:06:25.269] event3 - [12:06:25.269] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:25.269] device is a keyboard
> [12:06:25.272] event4 - [12:06:25.272] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:25.272] is tagged by udev as: Keyboard
> [12:06:25.272] event4 - [12:06:25.272] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:25.272] device is a keyboard
> [12:06:25.354] event2 - [12:06:25.354] HID 04b3:310d: [12:06:25.354] is tagged by udev as: Mouse
> [12:06:25.354] event2 - [12:06:25.354] HID 04b3:310d: [12:06:25.354] device is a pointer
> [12:06:25.355] event0 - [12:06:25.355] gpio_keys: [12:06:25.355] is tagged by udev as: Keyboard
> [12:06:25.355] event0 - [12:06:25.356] gpio_keys: [12:06:25.356] device is a keyboard
> [12:06:25.557] Registered plugin API 'weston_drm_output_api_v1' of size 12
> [12:06:25.558] Chosen EGL config details:
> RGBA bits: 8 8 8 8
> swap interval range: 1 - 1
> [12:06:25.567] cursor buffers unavailable, using gl cursors
> [12:06:25.567] Failed to initialize backlight
> [12:06:25.567] Output UNNAMED-1, (connector 35, crtc 39)
> mode 800x480 at 59.5, preferred, current
> [12:06:25.568] Applying calibration: 240.000000 -9.638554 -187104.578125 48.000000 -1.445783 -37293.683594 (normalized -233.880722 -77.695175)
> [12:06:25.568] Compositor capabilities:
> arbitrary surface rotation: yes
> screen capture uses y-flip: yes
> presentation clock: CLOCK_MONOTONIC, id 1
> presentation clock resolution: 0.000000001 s
> [12:06:25.659] Loading module '/usr/lib/weston/desktop-shell.so'
> [12:06:25.770] launching '/usr/libexec/weston-keyboard'
> [12:06:25.804] Loading module '/usr/lib/libweston-2/xwayland.so'
> [12:06:26.231] Registered plugin API 'weston_xwayland_v1' of size 16
> [12:06:26.231] Registered plugin API 'weston_xwayland_surface_v1' of size 8
> [12:06:26.231] xserver listening on display :0
> [12:06:26.231] launching '/usr/libexec/weston-desktop-shell'
> [12:06:26.235] event3 - [12:06:26.235] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:26.235] is tagged by udev as: Keyboard
> [12:06:26.235] event3 - [12:06:26.235] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:26.235] device is a keyboard
> [12:06:26.238] event4 - [12:06:26.238] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:26.238] is tagged by udev as: Keyboard
> [12:06:26.238] event4 - [12:06:26.238] Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ): [12:06:26.238] device is a keyboard
> could not load cursor 'dnd-move'
> could not load cursor 'dnd-copy'
> could not load cursor 'dnd-none'
> could not load cursor 'dnd-move'
> could not load cursor 'dnd-copy'
> could not load cursor 'dnd-none'
> xkbcommon: ERROR: couldn't find a Compose file for locale "C"
> could not create XKB compose table for locale 'C'. Disabiling compose
> xkbcommon: ERROR: couldn't find a Compose file for locale "C"
> could not create XKB compose table for locale 'C'. Disabiling compose
>
I'm sorry, but I have no idea.
Somehow on your system there is no error from the bit of Weston code
that attempts to exec() Xwayland program, yet it does not seem to do
anything. Maybe that exec() never runs, maybe it exec()s something bad.
You *are* using a very old version of Weston though, so maybe the
error prints I expect if anything fails are not in the code.
Or maybe your /usr/bin/Xwayland is symlink to /bin/true for all I know.
There are far too many things that could go wrong for me to list so
that you could check each thing one by one, because by everything I
have seen from you, it should work already.
Thanks,
pq
--
Thanks & Regards,
Devashish Tiwari
Fault Tolerance
#8587
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20191213/6bc00e75/attachment-0001.htm>
More information about the wayland-devel
mailing list