Unable to run X-clients over Weston through XWayland

Pekka Paalanen ppaalanen at gmail.com
Thu Dec 12 10:12:22 UTC 2019


On 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20191212/bbab1db8/attachment.sig>


More information about the wayland-devel mailing list