weston issues
https://gitlab.freedesktop.org/wayland/weston/-/issues
2023-10-02T15:28:00Z
https://gitlab.freedesktop.org/wayland/weston/-/issues/814
xwayland/window-manager does not provide a parent surface and all other ances...
2023-10-02T15:28:00Z
Walter Bonetti
xwayland/window-manager does not provide a parent surface and all other ancestor surface
I'm interested in improving the stacking behavior of XWayland applications, as outlined in Issue #231 (https://gitlab.freedesktop.org/wayland/weston/-/issues/231). Currently, there's a difference in functionality between native Wayland a...
I'm interested in improving the stacking behavior of XWayland applications, as outlined in Issue #231 (https://gitlab.freedesktop.org/wayland/weston/-/issues/231). Currently, there's a difference in functionality between native Wayland and XWayland applications, and I'd like to contribute a solution.
Specifically, I'm looking for guidance on how to implement XWayland parent support within the `weston_wm_create_surface` function. What metadata should I track to identify the parent? Any insights or assistance would be greatly appreciated.
Thank you!
https://gitlab.freedesktop.org/wayland/weston/-/issues/813
Cursor not updating image
2023-09-20T17:42:24Z
Joan Torres
Cursor not updating image
This only happens when running weston in a KVM with VirtIO enabled with 3D acceleration.
I can see that the cursor doesn't update its image to its corresponding (arrow/hand selector) when hovering a link on Chromium or Firefox, or when ...
This only happens when running weston in a KVM with VirtIO enabled with 3D acceleration.
I can see that the cursor doesn't update its image to its corresponding (arrow/hand selector) when hovering a link on Chromium or Firefox, or when resizing a window...
* The guest: virtio drm 6.5.3
* The host: amdgpu drm 6.4.12
* Both Mesa 23.1.7
* Both on OpenSUSE Tumbleweed
Weston log:
```plaintext
Date: 2023-09-20 CEST
[19:32:30.005] weston 12.0.90
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 12.0.0-355-gd9a80735
[19:32:30.005] Command line: weston --debug
[19:32:30.005] OS: Linux, 6.5.3-1-default, #1 SMP PREEMPT_DYNAMIC Thu Sep 14 08:46:53 UTC 2023 (786e0d6), x86_64
[19:32:30.005] Flight recorder: enabled
[19:32:30.005] Using config file '/home/joan/.config/weston.ini'
WARNING: debug protocol has been enabled. This is a potential denial-of-service attack vector and information leak.
[19:32:30.005] Output repaint window is 7 ms maximum.
[19:32:30.005] Loading module '/usr/lib64/libweston-13/drm-backend.so'
[19:32:30.008] initializing drm backend
[19:32:30.008] Trying libseat launcher...
[19:32:30.008] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[19:32:30.008] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[19:32:30.017] [libseat/libseat.c:73] Seat opened with backend 'logind'
[19:32:30.017] libseat: session control granted
[19:32:30.020] using /dev/dri/card1
[19:32:30.020] DRM: supports atomic modesetting
[19:32:30.021] DRM: does not support GBM modifiers
[19:32:30.022] DRM: does not support async page flipping
[19:32:30.023] DRM: supports picture aspect ratio
[19:32:30.065] Loading module '/usr/lib64/libweston-13/gl-renderer.so'
[19:32:30.068] Using rendering device: /dev/dri/renderD128
[19:32:30.069] EGL version: 1.4
[19:32:30.069] EGL vendor: Mesa Project
[19:32:30.069] EGL client APIs: OpenGL OpenGL_ES
[19:32:30.069] EGL features:
EGL Wayland extension: yes
context priority: no
buffer age: yes
partial update: no
swap buffers with damage: no
configless context: yes
surfaceless context: yes
dmabuf support: modifiers
[19:32:30.073] GL version: OpenGL ES 3.2 Mesa 23.1.7
[19:32:30.073] GLSL version: OpenGL ES GLSL ES 3.20
[19:32:30.073] GL vendor: Mesa
[19:32:30.073] GL renderer: virgl
[19:32:30.079] GL ES 3.2 - renderer features:
read-back format: ARGB8888
glReadPixels supports y-flip: yes
wl_shm 10 bpc formats: yes
wl_shm 16 bpc formats: yes
wl_shm half-float formats: yes
internal R and RG formats: yes
OES_EGL_image_external: yes
[19:32:30.081] Using GL renderer
[19:32:30.086] event3 - Power Button: is tagged by udev as: Keyboard
[19:32:30.086] event3 - Power Button: device is a keyboard
[19:32:30.256] event5 - QEMU QEMU USB Tablet: is tagged by udev as: Mouse
[19:32:30.257] event5 - QEMU QEMU USB Tablet: device is a pointer
[19:32:30.261] event0 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[19:32:30.261] event0 - AT Translated Set 2 keyboard: device is a keyboard
[19:32:30.264] event2 - VirtualPS/2 VMware VMMouse: is tagged by udev as: Mouse
[19:32:30.264] event2 - VirtualPS/2 VMware VMMouse: device is a pointer
[19:32:30.268] event1 - VirtualPS/2 VMware VMMouse: is tagged by udev as: Mouse
[19:32:30.268] event1 - VirtualPS/2 VMware VMMouse: device is a pointer
[19:32:30.271] event4 - PC Speaker: not tagged as supported input device
[19:32:30.310] event4 - not using input device '/dev/input/event4'
[19:32:30.317] libinput: configuring device "Power Button".
[19:32:30.317] libinput: configuring device "QEMU QEMU USB Tablet".
[19:32:30.317] input device event5 has no enabled output associated (none named), skipping calibration for now.
[19:32:30.317] libinput: configuring device "AT Translated Set 2 keyboard".
[19:32:30.317] libinput: configuring device "VirtualPS/2 VMware VMMouse".
[19:32:30.317] libinput: configuring device "VirtualPS/2 VMware VMMouse".
[19:32:30.317] input device event1 has no enabled output associated (none named), skipping calibration for now.
[19:32:30.318] DRM: EDID for the following head fails conformity:
Block 1, CTA-861 Extension Block:
Padding: Contains non-zero bytes.
[19:32:30.318] DRM: head 'Virtual-1' found, connector 34 is connected, EDID make 'Red Hat, Inc.', model 'QEMU Monitor', serial ''
Supported EOTF modes: SDR
[19:32:30.318] Registered plugin API 'weston_drm_output_api_v1' of size 40
[19:32:30.318] Registered plugin API 'weston_drm_virtual_output_api_v2' of size 48
[19:32:30.318] Color manager: no-op
[19:32:30.318] Output 'Virtual-1' attempts EOTF mode: SDR
[19:32:30.318] Output 'Virtual-1' using color profile: built-in default sRGB SDR profile
[19:32:30.319] Chosen EGL config details: id: 61 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 1-1 type: win vis_id: XRGB8888 (0x34325258)
[19:32:30.319] Output Virtual-1 (crtc 33) video modes:
1280x800@75.0, preferred, current, 107.3 MHz
5120x2160@50.0 64:27, 742.5 MHz
4096x2160@50.0 256:135, 594.0 MHz
3840x2160@60.0 16:9, 594.0 MHz
3840x2160@59.9 16:9, 593.4 MHz
3840x2160@50.0 16:9, 594.0 MHz
1920x1440@60.0, 234.0 MHz
2560x1080@50.0 64:27, 185.6 MHz
1856x1392@60.0, 218.2 MHz
1792x1344@60.0, 204.8 MHz
2048x1152@60.0, 162.0 MHz
1920x1200@59.9, 193.2 MHz
1920x1080@60.0, 148.5 MHz
1920x1080@50.0 16:9, 148.5 MHz
1600x1200@60.0, 162.0 MHz
1680x1050@60.0, 146.2 MHz
1400x1050@60.0, 121.8 MHz
1280x1024@60.0, 108.0 MHz
1440x900@59.9, 106.5 MHz
1280x960@60.0, 108.0 MHz
1360x768@60.0, 85.5 MHz
1280x768@59.9, 79.5 MHz
1024x768@60.0, 65.0 MHz
800x600@60.3, 40.0 MHz
640x480@60.0 4:3, 25.2 MHz
640x480@59.9, 25.2 MHz
[19:32:30.319] associating input device event3 with output Virtual-1 (none by udev)
[19:32:30.319] associating input device event5 with output Virtual-1 (none by udev)
[19:32:30.319] associating input device event0 with output Virtual-1 (none by udev)
[19:32:30.319] associating input device event2 with output Virtual-1 (none by udev)
[19:32:30.319] associating input device event1 with output Virtual-1 (none by udev)
[19:32:30.319] Output 'Virtual-1' enabled with head(s) Virtual-1
[19:32:30.319] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
cursor planes: yes
arbitrary resolutions: no
view mask clipping: yes
explicit sync: yes
color operations: yes
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[19:32:30.320] Loading module '/usr/lib64/weston/desktop-shell.so'
[19:32:30.320] launching '/usr/libexec/weston-keyboard'
[19:32:30.322] launching '/usr/libexec/weston-desktop-shell'
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'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'
could not load cursor 'dnd-none'
Unknown parameter: ?2004
^C[19:32:49.143] caught signal 12
```
https://gitlab.freedesktop.org/wayland/weston/-/issues/812
Two rotated 4k screens: atomic: couldn't commit new state: Invalid argument
2023-11-03T10:02:38Z
Rob Kramer
Two rotated 4k screens: atomic: couldn't commit new state: Invalid argument
Using Weston 10.2 (on Yocto dunfell), I tried setting up a desktop with two 4k screens in portrait mode. Weston doesn't start properly, showing the Linux console and the following error in the logfile:
```plaintext
[13:06:09.774] atomic...
Using Weston 10.2 (on Yocto dunfell), I tried setting up a desktop with two 4k screens in portrait mode. Weston doesn't start properly, showing the Linux console and the following error in the logfile:
```plaintext
[13:06:09.774] atomic: couldn't commit new state: Invalid argument
[13:06:09.774] repaint-flush failed: Invalid argument
```
If I set the modes of both screens to HD, it works perfectly fine. DP-1 HD, DP-2 4k: also fine. DP-1 4k, DP-2 HD: blank DP-2.
My configuration is as follows:
```plaintext
[core]
backend=drm-backend.so
idle-time=0
require-input=false
[shell]
panel-position=none
background-color=0xff000000
[autolaunch]
path=/usr/bin/weston-vides.sh
[output]
name=DP-2
mode=3840x2160
transform=rotate-270
[output]
name=DP-1
#mode=1920x1080
mode=3840x2160
transform=rotate-270
```
Does anyone have an idea what might be wrong here? I've appended debug outputs below of the 2x 4k failure, and of a successful start where DP-1 is set to 1920x1080. I've stripped many lines from the latter, fyi.
I thought that maybe there was a hardware restriction on having a desktop this size on Intel hardware, but it tested just fine in an X11-based setup (except for tearing video playback).
Cheers!
Rob
Both screens 4k:
```plaintext
Date: 2023-09-05 SGT
[13:06:09.518] weston 10.0.2
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 10.0.2
[13:06:09.518] Command line: weston --tty=1 --debug --logger-scopes=log,drm-backend --log=/tmp/weston.log
[13:06:09.518] OS: Linux, 5.15.105, #1 SMP PREEMPT Sun Oct 31 20:53:10 UTC 2021, x86_64
[13:06:09.518] Flight recorder: enabled
[13:06:09.518] Using config file '/etc/xdg/weston/weston.ini'
[13:06:09.518] Output repaint window is 7 ms maximum.
[13:06:09.518] Loading module '/usr/lib/libweston-10/drm-backend.so'
[13:06:09.519] initializing drm backend
[13:06:09.519] Trying weston_launch launcher...
[13:06:09.519] could not get launcher fd from env
[13:06:09.519] Trying direct launcher...
[13:06:09.532] using /dev/dri/card0
[13:06:09.532] DRM: supports atomic modesetting
[13:06:09.532] DRM: supports GBM modifiers
[13:06:09.532] DRM: supports picture aspect ratio
[13:06:09.532] Loading module '/usr/lib/libweston-10/gl-renderer.so'
[13:06:09.535] EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_device_base EGL_EXT_device_enumeration
EGL_EXT_device_query EGL_EXT_platform_base
EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
EGL_EXT_platform_device EGL_EXT_platform_wayland
EGL_KHR_platform_wayland EGL_EXT_platform_x11
EGL_KHR_platform_x11 EGL_MESA_platform_xcb
EGL_MESA_platform_gbm EGL_KHR_platform_gbm
EGL_MESA_platform_surfaceless
[13:06:09.536] EGL device extensions: EGL_EXT_device_drm
EGL_EXT_device_drm_render_node
[13:06:09.536] EGL version: 1.5
[13:06:09.536] EGL vendor: Mesa Project
[13:06:09.536] EGL client APIs: OpenGL OpenGL_ES
[13:06:09.536] EGL extensions: EGL_ANDROID_blob_cache
EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import
EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority
EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context
EGL_KHR_create_context_no_error EGL_KHR_fence_sync
EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace
EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
EGL_KHR_gl_texture_3D_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_KHR_wait_sync EGL_MESA_configless_context
EGL_MESA_drm_image EGL_MESA_image_dma_buf_export
EGL_MESA_query_driver EGL_WL_bind_wayland_display
[13:06:09.536] EGL_KHR_surfaceless_context available
[13:06:09.537] GL version: OpenGL ES 3.2 Mesa 22.0.3
[13:06:09.537] GLSL version: OpenGL ES GLSL ES 3.20
[13:06:09.537] GL vendor: Intel
[13:06:09.537] GL renderer: Mesa Intel(R) UHD Graphics (CML GT2)
[13:06:09.537] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1
GL_EXT_texture_compression_rgtc 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_float
GL_OES_texture_float_linear GL_OES_texture_half_float
GL_OES_texture_half_float_linear GL_OES_texture_npot
GL_OES_vertex_half_float GL_EXT_draw_instanced
GL_EXT_texture_sRGB_decode GL_OES_EGL_image
GL_OES_depth_texture GL_AMD_performance_monitor
GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
GL_NV_conditional_render GL_OES_get_program_binary
GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
GL_EXT_read_format_bgra GL_EXT_frag_depth
GL_NV_fbo_color_attachments GL_OES_EGL_image_external
GL_OES_EGL_sync GL_OES_vertex_array_object
GL_OES_viewport_array GL_ANGLE_pack_reverse_row_order
GL_ANGLE_texture_compression_dxt3
GL_ANGLE_texture_compression_dxt5
GL_EXT_occlusion_query_boolean GL_EXT_robustness
GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers
GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil
GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range
GL_KHR_debug GL_KHR_robustness
GL_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object
GL_OES_depth_texture_cube_map GL_OES_required_internalformat
GL_OES_surfaceless_context GL_EXT_color_buffer_float
GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects
GL_EXT_shader_framebuffer_fetch GL_EXT_shader_group_vote
GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix
GL_EXT_tessellation_point_size GL_EXT_tessellation_shader
GL_INTEL_conservative_rasterization GL_INTEL_performance_query
GL_ANDROID_extension_pack_es31a GL_EXT_base_instance
GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_copy_image
GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex
GL_EXT_gpu_shader5 GL_EXT_polygon_offset_clamp
GL_EXT_primitive_bounding_box GL_EXT_render_snorm
GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp
GL_EXT_texture_buffer GL_EXT_texture_cube_map_array
GL_EXT_texture_norm16 GL_EXT_texture_view
GL_KHR_blend_equation_advanced
GL_KHR_blend_equation_advanced_coherent
GL_KHR_context_flush_control
GL_KHR_robust_buffer_access_behavior GL_NV_image_formats
GL_OES_copy_image GL_OES_draw_buffers_indexed
GL_OES_draw_elements_base_vertex GL_OES_gpu_shader5
GL_OES_primitive_bounding_box GL_OES_sample_shading
GL_OES_sample_variables GL_OES_shader_io_blocks
GL_OES_shader_multisample_interpolation
GL_OES_tessellation_point_size GL_OES_tessellation_shader
GL_OES_texture_border_clamp GL_OES_texture_buffer
GL_OES_texture_cube_map_array GL_OES_texture_stencil8
GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view
GL_EXT_blend_func_extended GL_EXT_buffer_storage
GL_EXT_float_blend GL_EXT_geometry_point_size
GL_EXT_geometry_shader GL_EXT_shader_samples_identical
GL_EXT_texture_sRGB_R8 GL_KHR_no_error
GL_KHR_texture_compression_astc_sliced_3d
GL_NV_fragment_shader_interlock GL_OES_EGL_image_external_essl3
GL_OES_geometry_point_size GL_OES_geometry_shader
GL_OES_shader_image_atomic GL_EXT_clear_texture
GL_EXT_clip_cull_distance GL_EXT_disjoint_timer_query
GL_EXT_texture_compression_s3tc_srgb
GL_MESA_shader_integer_functions GL_EXT_clip_control
GL_EXT_color_buffer_half_float GL_EXT_memory_object
GL_EXT_memory_object_fd GL_EXT_semaphore GL_EXT_semaphore_fd
GL_EXT_texture_compression_bptc
GL_EXT_texture_mirror_clamp_to_edge
GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage
GL_EXT_shader_framebuffer_fetch_non_coherent
GL_EXT_texture_shadow_lod GL_INTEL_blackhole_render
GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives
GL_EXT_demote_to_helper_invocation GL_EXT_depth_clamp
GL_EXT_texture_query_lod GL_MESA_bgra
[13:06:09.541] GL ES 3.2 - renderer features:
read-back format: BGRA
EGL Wayland extension: yes
[13:06:09.554] event8 - HDA Intel PCH HDMI/DP,pcm=3: is tagged by udev as: Switch
[13:06:09.568] event8 - not using input device '/dev/input/event8'
[13:06:09.568] event0 - Microsoft Wired Keyboard 600: is tagged by udev as: Keyboard
[13:06:09.568] event0 - Microsoft Wired Keyboard 600: device is a keyboard
[13:06:09.569] event2 - Sleep Button: is tagged by udev as: Keyboard
[13:06:09.569] event2 - Sleep Button: device is a keyboard
[13:06:09.569] event10 - HDA Intel PCH HDMI/DP,pcm=8: is tagged by udev as: Switch
[13:06:09.586] event10 - not using input device '/dev/input/event10'
[13:06:09.587] event12 - HDA Intel PCH HDMI/DP,pcm=10: is tagged by udev as: Switch
[13:06:09.600] event12 - not using input device '/dev/input/event12'
[13:06:09.601] event4 - Power Button: is tagged by udev as: Keyboard
[13:06:09.601] event4 - Power Button: device is a keyboard
[13:06:09.601] event7 - HDA Intel PCH Headphone: is tagged by udev as: Switch
[13:06:09.616] event7 - not using input device '/dev/input/event7'
[13:06:09.618] event9 - HDA Intel PCH HDMI/DP,pcm=7: is tagged by udev as: Switch
[13:06:09.632] event9 - not using input device '/dev/input/event9'
[13:06:09.634] event1 - Microsoft Wired Keyboard 600: is tagged by udev as: Keyboard
[13:06:09.634] event1 - Microsoft Wired Keyboard 600: device is a keyboard
[13:06:09.636] event11 - HDA Intel PCH HDMI/DP,pcm=9: is tagged by udev as: Switch
[13:06:09.652] event11 - not using input device '/dev/input/event11'
[13:06:09.653] event3 - Power Button: is tagged by udev as: Keyboard
[13:06:09.654] event3 - Power Button: device is a keyboard
[13:06:09.655] event5 - Video Bus: is tagged by udev as: Keyboard
[13:06:09.656] event5 - Video Bus: device is a keyboard
[13:06:09.657] event6 - HDA Intel PCH Mic: is tagged by udev as: Switch
[13:06:09.674] event6 - not using input device '/dev/input/event6'
[13:06:09.688] libinput: configuring device "Microsoft Wired Keyboard 600".
[13:06:09.688] libinput: configuring device "Sleep Button".
[13:06:09.688] libinput: configuring device "Power Button".
[13:06:09.689] libinput: configuring device "Microsoft Wired Keyboard 600".
[13:06:09.689] libinput: configuring device "Power Button".
[13:06:09.689] libinput: configuring device "Video Bus".
[13:06:09.699] DRM: head 'DP-1' updated, connector 95 is connected, EDID make 'DEL', model 'DELL S2721QS', serial '4Q7XM43'
[13:06:09.699] DRM: head 'DP-1' found, connector 95 is connected, EDID make 'DEL', model 'DELL S2721QS', serial '4Q7XM43'
[13:06:09.748] DRM: head 'DP-2' updated, connector 106 is connected, EDID make 'DEL', model 'DELL S2721QS', serial '7S7XM43'
[13:06:09.748] DRM: head 'DP-2' found, connector 106 is connected, EDID make 'DEL', model 'DELL S2721QS', serial '7S7XM43'
[13:06:09.758] DRM: head 'HDMI-A-1' updated, connector 112 is disconnected.
[13:06:09.758] DRM: head 'HDMI-A-1' found, connector 112 is disconnected.
[13:06:09.758] Registered plugin API 'weston_drm_output_api_v1' of size 24
[13:06:09.758] Color manager: no-op
[13:06:09.758] Output 'DP-1' using color profile: built-in default sRGB SDR profile
[13:06:09.758] Chosen EGL config details: id: 61 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 1-1 type: win vis_id: XRGB8888 (0x34325258)
[13:06:09.758] Output DP-1 (crtc 51) video modes:
3840x2160@60.0, preferred, current, 533.2 MHz
3840x2160@60.0 16:9, 594.0 MHz
3840x2160@59.9 16:9, 593.4 MHz
3840x2160@30.0 16:9, 297.0 MHz
3840x2160@25.0 16:9, 297.0 MHz
3840x2160@24.0 16:9, 297.0 MHz
2560x1440@60.0, 241.5 MHz
2048x1280@60.0, 220.4 MHz
1920x1080@60.0, 148.5 MHz
1920x1080@60.0 16:9, 148.5 MHz
1920x1080@59.9 16:9, 148.4 MHz
1920x1080@60.0 16:9, 74.2 MHz
1920x1080@59.9 16:9, 74.2 MHz
1920x1080@50.0 16:9, 148.5 MHz
1920x1080@50.0 16:9, 74.2 MHz
1920x1080@25.0 16:9, 74.2 MHz
1920x1080@24.0 16:9, 74.2 MHz
1600x1200@60.0, 162.0 MHz
1600x900@60.0, 108.0 MHz
1280x1024@75.0, 135.0 MHz
1280x1024@60.0, 108.0 MHz
1152x864@75.0, 108.0 MHz
1280x720@60.0 16:9, 74.2 MHz
1280x720@59.9 16:9, 74.2 MHz
1024x768@75.0, 78.8 MHz
1024x768@60.0, 65.0 MHz
800x600@75.0, 49.5 MHz
800x600@60.3, 40.0 MHz
720x576@50.0 4:3, 27.0 MHz
720x576@50.0 16:9, 27.0 MHz
720x480@60.0 4:3, 27.0 MHz
720x480@60.0 16:9, 27.0 MHz
720x480@59.9 4:3, 27.0 MHz
720x480@59.9 16:9, 27.0 MHz
640x480@75.0, 31.5 MHz
640x480@60.0 4:3, 25.2 MHz
640x480@59.9, 25.2 MHz
640x480@59.9 4:3, 25.2 MHz
720x400@70.1, 28.3 MHz
[13:06:09.758] associating input device event0 with output DP-1 (none by udev)
[13:06:09.758] associating input device event2 with output DP-1 (none by udev)
[13:06:09.758] associating input device event4 with output DP-1 (none by udev)
[13:06:09.758] associating input device event1 with output DP-1 (none by udev)
[13:06:09.758] associating input device event3 with output DP-1 (none by udev)
[13:06:09.758] associating input device event5 with output DP-1 (none by udev)
[13:06:09.759] Output 'DP-1' enabled with head(s) DP-1
[13:06:09.759] Output 'DP-2' using color profile: built-in default sRGB SDR profile
[13:06:09.759] Chosen EGL config details: id: 61 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 1-1 type: win vis_id: XRGB8888 (0x34325258)
[13:06:09.759] Output DP-2 (crtc 72) video modes:
3840x2160@60.0, preferred, current, 594.0 MHz
3840x2160@60.0 16:9, 594.0 MHz
3840x2160@59.9 16:9, 593.4 MHz
3840x2160@30.0 16:9, 297.0 MHz
3840x2160@25.0 16:9, 297.0 MHz
3840x2160@24.0 16:9, 297.0 MHz
2560x1440@60.0, 241.5 MHz
1920x1080@60.0, 148.5 MHz
1920x1080@60.0 16:9, 148.5 MHz
1920x1080@59.9 16:9, 148.4 MHz
1920x1080@60.0 16:9, 74.2 MHz
1920x1080@59.9 16:9, 74.2 MHz
1920x1080@50.0 16:9, 148.5 MHz
1920x1080@50.0 16:9, 74.2 MHz
1920x1080@25.0 16:9, 74.2 MHz
1920x1080@24.0 16:9, 74.2 MHz
1600x1200@60.0, 162.0 MHz
1600x900@60.0, 108.0 MHz
1280x1024@75.0, 135.0 MHz
1280x1024@60.0, 108.0 MHz
1152x864@75.0, 108.0 MHz
1280x720@60.0 16:9, 74.2 MHz
1280x720@59.9 16:9, 74.2 MHz
1024x768@75.0, 78.8 MHz
1024x768@60.0, 65.0 MHz
800x600@75.0, 49.5 MHz
800x600@60.3, 40.0 MHz
720x576@50.0 4:3, 27.0 MHz
720x576@50.0 16:9, 27.0 MHz
720x480@60.0 4:3, 27.0 MHz
720x480@60.0 16:9, 27.0 MHz
720x480@59.9 4:3, 27.0 MHz
720x480@59.9 16:9, 27.0 MHz
640x480@75.0, 31.5 MHz
640x480@60.0 4:3, 25.2 MHz
640x480@59.9, 25.2 MHz
640x480@59.9 4:3, 25.2 MHz
720x400@70.1, 28.3 MHz
[13:06:09.759] Output 'DP-2' enabled with head(s) DP-2
[13:06:09.759] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
cursor planes: yes
arbitrary resolutions: no
view mask clipping: yes
explicit sync: yes
color operations: yes
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[13:06:09.759] Loading module '/usr/lib/weston/desktop-shell.so'
[13:06:09.759] launching '/usr/libexec/weston-keyboard'
[13:06:09.760] Note: support for the deprecated wl_shell interface is disabled. If a legacy client still needs it, it can be re-enabled by passing -Ddeprecated-wl-shell=true to Meson when building Weston.
[13:06:09.761] launching '/usr/libexec/weston-desktop-shell'
[repaint] Beginning repaint; pending_state 0xc36f80
Weston scene graph at 83154.405819184:
Output 0 (DP-1):
position: (0, 0) -> (2160, 3840)
mode: 3840x2160@59.997Hz
scale: 1
repaint status: repaint scheduled
next repaint: 83154.404758828
Head 0 (DP-1): connected
Output 1 (DP-2):
position: (2160, 0) -> (4320, 3840)
mode: 3840x2160@60.000Hz
scale: 1
repaint status: repaint scheduled
next repaint: 83154.404775616
Head 0 (DP-2): connected
Layer 0 (pos 0xffffffff):
View 0 (role (null), PID 0, surface ID 0, [no description available], 0xc419b0):
position: (2160, 0) -> (4320, 3840)
[fully opaque]
outputs: 1 (DP-2) (primary)
[buffer not available]
View 1 (role (null), PID 0, surface ID 0, [no description available], 0xc412a0):
position: (0, 0) -> (2160, 3840)
[fully opaque]
outputs: 0 (DP-1) (primary)
[buffer not available]
Layer 1 (pos 0xfffffffe):
[no views]
Layer 2 (pos 0xb0000000):
[no views]
Layer 3 (pos 0x80000000):
[no views]
Layer 4 (pos 0x50000001):
[no views]
Layer 5 (pos 0x50000000):
[no views]
Layer 6 (pos 0x2):
[no views]
[repaint] preparing state for output DP-1 (0)
[repaint] trying planes-only build state
[view] evaluating view 0xc419b0 for output DP-1 (0)
[view] ignoring view 0xc419b0 (not on our output)
[view] evaluating view 0xc412a0 for output DP-1 (0)
[view] not assigning view 0xc412a0 to plane (no buffer available)
[view] failing state generation: placing view 0xc412a0 to renderer not allowed
[repaint] could not build planes-only state, trying mixed
[state] cannot propose mixed mode: for output DP-1 (0): no previous renderer fb
[repaint] could not build mixed-mode state, trying renderer-only
[view] evaluating view 0xc419b0 for output DP-1 (0)
[view] ignoring view 0xc419b0 (not on our output)
[view] evaluating view 0xc412a0 for output DP-1 (0)
[view] not assigning view 0xc412a0 to plane (no buffer available)
[view] view 0xc412a0 will be placed on the renderer
[repaint] Using render-only state composition
[repaint] view 0xc412a0 using renderer composition
[repaint] preparing state for output DP-2 (1)
[repaint] trying planes-only build state
[view] evaluating view 0xc419b0 for output DP-2 (1)
[view] not assigning view 0xc419b0 to plane (no buffer available)
[view] failing state generation: placing view 0xc419b0 to renderer not allowed
[repaint] could not build planes-only state, trying mixed
[state] cannot propose mixed mode: for output DP-2 (1): no previous renderer fb
[repaint] could not build mixed-mode state, trying renderer-only
[view] evaluating view 0xc419b0 for output DP-2 (1)
[view] not assigning view 0xc419b0 to plane (no buffer available)
[view] view 0xc419b0 will be placed on the renderer
[view] evaluating view 0xc412a0 for output DP-2 (1)
[view] ignoring view 0xc412a0 (not on our output)
[repaint] Using render-only state composition
[repaint] view 0xc419b0 using renderer composition
[atomic] previous state invalid; starting with fresh state
[atomic] disabling inactive head HDMI-A-1
[CONN:112] 20 (CRTC_ID) -> 0
[atomic] starting with plane 89 disabled
[PLANE:89] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:89] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 81 disabled
[PLANE:81] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:81] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 73 disabled
[PLANE:73] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:73] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 68 disabled
[PLANE:68] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:68] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 60 disabled
[PLANE:60] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:60] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 52 disabled
[PLANE:52] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:52] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 47 disabled
[PLANE:47] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:47] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 39 disabled
[PLANE:39] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:39] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 31 disabled
[PLANE:31] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:31] 17 (FB_ID) -> 0 (0x0)
[atomic] applying output 1 (DP-2) state
[atomic] DPMS state differs, modeset OK
[atomic] created new mode blob 128 for 3840x2160
[CRTC:72] 23 (MODE_ID) -> 128 (0x80)
[CRTC:72] 22 (ACTIVE) -> 1 (0x1)
[CONN:106] 20 (CRTC_ID) -> 72 (0x48)
[CONN:106] 104 (Content Protection) -> 0 (0x0)
[PLANE:52] 17 (FB_ID) -> 127 (0x7f)
[PLANE:52] 20 (CRTC_ID) -> 72 (0x48)
[PLANE:52] 9 (SRC_X) -> 0 (0x0)
[PLANE:52] 10 (SRC_Y) -> 0 (0x0)
[PLANE:52] 11 (SRC_W) -> 251658240 (0xf000000)
[PLANE:52] 12 (SRC_H) -> 141557760 (0x8700000)
[PLANE:52] 13 (CRTC_X) -> 0 (0x0)
[PLANE:52] 14 (CRTC_Y) -> 0 (0x0)
[PLANE:52] 15 (CRTC_W) -> 3840 (0xf00)
[PLANE:52] 16 (CRTC_H) -> 2160 (0x870)
[PLANE:52] FORMAT: XRGB8888
[atomic] applying output 0 (DP-1) state
[atomic] DPMS state differs, modeset OK
[atomic] created new mode blob 129 for 3840x2160
[CRTC:51] 23 (MODE_ID) -> 129 (0x81)
[CRTC:51] 22 (ACTIVE) -> 1 (0x1)
[CONN:95] 20 (CRTC_ID) -> 51 (0x33)
[CONN:95] 104 (Content Protection) -> 0 (0x0)
[PLANE:31] 17 (FB_ID) -> 126 (0x7e)
[PLANE:31] 20 (CRTC_ID) -> 51 (0x33)
[PLANE:31] 9 (SRC_X) -> 0 (0x0)
[PLANE:31] 10 (SRC_Y) -> 0 (0x0)
[PLANE:31] 11 (SRC_W) -> 251658240 (0xf000000)
[PLANE:31] 12 (SRC_H) -> 141557760 (0x8700000)
[PLANE:31] 13 (CRTC_X) -> 0 (0x0)
[PLANE:31] 14 (CRTC_Y) -> 0 (0x0)
[PLANE:31] 15 (CRTC_W) -> 3840 (0xf00)
[PLANE:31] 16 (CRTC_H) -> 2160 (0x870)
[PLANE:31] FORMAT: XRGB8888
[atomic] drmModeAtomicCommit
[13:06:09.774] atomic: couldn't commit new state: Invalid argument
[13:06:09.774] repaint-flush failed: Invalid argument
[repaint] flushed pending_state 0xc36f80
```
DP-1 set to HD:
```plaintext
Date: 2023-09-05 SGT
[13:13:02.528] weston 10.0.2
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 10.0.2
[13:13:02.528] Command line: weston --tty=1 --debug --logger-scopes=log,drm-backend --log=/tmp/weston.log
[13:13:02.528] OS: Linux, 5.15.105, #1 SMP PREEMPT Sun Oct 31 20:53:10 UTC 2021, x86_64
[13:13:02.528] Flight recorder: enabled
[13:13:02.528] Using config file '/etc/xdg/weston/weston.ini'
[13:13:02.528] Output repaint window is 7 ms maximum.
[13:13:02.528] Loading module '/usr/lib/libweston-10/drm-backend.so'
[13:13:02.530] initializing drm backend
[13:13:02.530] Trying weston_launch launcher...
[13:13:02.530] could not get launcher fd from env
[13:13:02.530] Trying direct launcher...
[13:13:02.542] using /dev/dri/card0
[13:13:02.542] DRM: supports atomic modesetting
[13:13:02.542] DRM: supports GBM modifiers
[13:13:02.542] DRM: supports picture aspect ratio
[13:13:02.542] Loading module '/usr/lib/libweston-10/gl-renderer.so'
[13:13:02.546] EGL client extensions: EGL_EXT_client_extensions
EGL_EXT_device_base EGL_EXT_device_enumeration
EGL_EXT_device_query EGL_EXT_platform_base
EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug
EGL_EXT_platform_device EGL_EXT_platform_wayland
EGL_KHR_platform_wayland EGL_EXT_platform_x11
EGL_KHR_platform_x11 EGL_MESA_platform_xcb
EGL_MESA_platform_gbm EGL_KHR_platform_gbm
EGL_MESA_platform_surfaceless
[13:13:02.547] EGL device extensions: EGL_EXT_device_drm
EGL_EXT_device_drm_render_node
[13:13:02.547] EGL version: 1.5
[13:13:02.547] EGL vendor: Mesa Project
[13:13:02.547] EGL client APIs: OpenGL OpenGL_ES
[13:13:02.547] EGL extensions: EGL_ANDROID_blob_cache
EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age
EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import
EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority
EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context
EGL_KHR_create_context_no_error EGL_KHR_fence_sync
EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace
EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
EGL_KHR_gl_texture_3D_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_KHR_wait_sync EGL_MESA_configless_context
EGL_MESA_drm_image EGL_MESA_image_dma_buf_export
EGL_MESA_query_driver EGL_WL_bind_wayland_display
[13:13:02.547] EGL_KHR_surfaceless_context available
[13:13:02.548] GL version: OpenGL ES 3.2 Mesa 22.0.3
[13:13:02.548] GLSL version: OpenGL ES GLSL ES 3.20
[13:13:02.548] GL vendor: Intel
[13:13:02.548] GL renderer: Mesa Intel(R) UHD Graphics (CML GT2)
[13:13:02.548] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1
GL_EXT_texture_compression_rgtc 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_float
GL_OES_texture_float_linear GL_OES_texture_half_float
GL_OES_texture_half_float_linear GL_OES_texture_npot
GL_OES_vertex_half_float GL_EXT_draw_instanced
GL_EXT_texture_sRGB_decode GL_OES_EGL_image
GL_OES_depth_texture GL_AMD_performance_monitor
GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV
GL_NV_conditional_render GL_OES_get_program_binary
GL_APPLE_texture_max_level GL_EXT_discard_framebuffer
GL_EXT_read_format_bgra GL_EXT_frag_depth
GL_NV_fbo_color_attachments GL_OES_EGL_image_external
GL_OES_EGL_sync GL_OES_vertex_array_object
GL_OES_viewport_array GL_ANGLE_pack_reverse_row_order
GL_ANGLE_texture_compression_dxt3
GL_ANGLE_texture_compression_dxt5
GL_EXT_occlusion_query_boolean GL_EXT_robustness
GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers
GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil
GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range
GL_KHR_debug GL_KHR_robustness
GL_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object
GL_OES_depth_texture_cube_map GL_OES_required_internalformat
GL_OES_surfaceless_context GL_EXT_color_buffer_float
GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects
GL_EXT_shader_framebuffer_fetch GL_EXT_shader_group_vote
GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix
GL_EXT_tessellation_point_size GL_EXT_tessellation_shader
GL_INTEL_conservative_rasterization GL_INTEL_performance_query
GL_ANDROID_extension_pack_es31a GL_EXT_base_instance
GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_copy_image
GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex
GL_EXT_gpu_shader5 GL_EXT_polygon_offset_clamp
GL_EXT_primitive_bounding_box GL_EXT_render_snorm
GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp
GL_EXT_texture_buffer GL_EXT_texture_cube_map_array
GL_EXT_texture_norm16 GL_EXT_texture_view
GL_KHR_blend_equation_advanced
GL_KHR_blend_equation_advanced_coherent
GL_KHR_context_flush_control
GL_KHR_robust_buffer_access_behavior GL_NV_image_formats
GL_OES_copy_image GL_OES_draw_buffers_indexed
GL_OES_draw_elements_base_vertex GL_OES_gpu_shader5
GL_OES_primitive_bounding_box GL_OES_sample_shading
GL_OES_sample_variables GL_OES_shader_io_blocks
GL_OES_shader_multisample_interpolation
GL_OES_tessellation_point_size GL_OES_tessellation_shader
GL_OES_texture_border_clamp GL_OES_texture_buffer
GL_OES_texture_cube_map_array GL_OES_texture_stencil8
GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view
GL_EXT_blend_func_extended GL_EXT_buffer_storage
GL_EXT_float_blend GL_EXT_geometry_point_size
GL_EXT_geometry_shader GL_EXT_shader_samples_identical
GL_EXT_texture_sRGB_R8 GL_KHR_no_error
GL_KHR_texture_compression_astc_sliced_3d
GL_NV_fragment_shader_interlock GL_OES_EGL_image_external_essl3
GL_OES_geometry_point_size GL_OES_geometry_shader
GL_OES_shader_image_atomic GL_EXT_clear_texture
GL_EXT_clip_cull_distance GL_EXT_disjoint_timer_query
GL_EXT_texture_compression_s3tc_srgb
GL_MESA_shader_integer_functions GL_EXT_clip_control
GL_EXT_color_buffer_half_float GL_EXT_memory_object
GL_EXT_memory_object_fd GL_EXT_semaphore GL_EXT_semaphore_fd
GL_EXT_texture_compression_bptc
GL_EXT_texture_mirror_clamp_to_edge
GL_KHR_parallel_shader_compile GL_EXT_EGL_image_storage
GL_EXT_shader_framebuffer_fetch_non_coherent
GL_EXT_texture_shadow_lod GL_INTEL_blackhole_render
GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives
GL_EXT_demote_to_helper_invocation GL_EXT_depth_clamp
GL_EXT_texture_query_lod GL_MESA_bgra
[13:13:02.552] GL ES 3.2 - renderer features:
read-back format: BGRA
EGL Wayland extension: yes
[13:13:02.565] event8 - HDA Intel PCH HDMI/DP,pcm=3: is tagged by udev as: Switch
[13:13:02.580] event8 - not using input device '/dev/input/event8'
[13:13:02.580] event0 - Microsoft Wired Keyboard 600: is tagged by udev as: Keyboard
[13:13:02.580] event0 - Microsoft Wired Keyboard 600: device is a keyboard
[13:13:02.581] event10 - HDA Intel PCH HDMI/DP,pcm=8: is tagged by udev as: Switch
[13:13:02.597] event10 - not using input device '/dev/input/event10'
[13:13:02.598] event2 - Sleep Button: is tagged by udev as: Keyboard
[13:13:02.598] event2 - Sleep Button: device is a keyboard
[13:13:02.598] event12 - HDA Intel PCH HDMI/DP,pcm=10: is tagged by udev as: Switch
[13:13:02.613] event12 - not using input device '/dev/input/event12'
[13:13:02.614] event4 - Power Button: is tagged by udev as: Keyboard
[13:13:02.614] event4 - Power Button: device is a keyboard
[13:13:02.615] event7 - HDA Intel PCH Headphone: is tagged by udev as: Switch
[13:13:02.629] event7 - not using input device '/dev/input/event7'
[13:13:02.631] event9 - HDA Intel PCH HDMI/DP,pcm=7: is tagged by udev as: Switch
[13:13:02.646] event9 - not using input device '/dev/input/event9'
[13:13:02.648] event1 - Microsoft Wired Keyboard 600: is tagged by udev as: Keyboard
[13:13:02.648] event1 - Microsoft Wired Keyboard 600: device is a keyboard
[13:13:02.650] event11 - HDA Intel PCH HDMI/DP,pcm=9: is tagged by udev as: Switch
[13:13:02.665] event11 - not using input device '/dev/input/event11'
[13:13:02.666] event3 - Power Button: is tagged by udev as: Keyboard
[13:13:02.667] event3 - Power Button: device is a keyboard
[13:13:02.668] event5 - Video Bus: is tagged by udev as: Keyboard
[13:13:02.669] event5 - Video Bus: device is a keyboard
[13:13:02.670] event6 - HDA Intel PCH Mic: is tagged by udev as: Switch
[13:13:02.685] event6 - not using input device '/dev/input/event6'
[13:13:02.699] libinput: configuring device "Microsoft Wired Keyboard 600".
[13:13:02.700] libinput: configuring device "Sleep Button".
[13:13:02.700] libinput: configuring device "Power Button".
[13:13:02.700] libinput: configuring device "Microsoft Wired Keyboard 600".
[13:13:02.700] libinput: configuring device "Power Button".
[13:13:02.700] libinput: configuring device "Video Bus".
[13:13:02.710] DRM: head 'DP-1' updated, connector 95 is connected, EDID make 'DEL', model 'DELL S2721QS', serial '4Q7XM43'
[13:13:02.710] DRM: head 'DP-1' found, connector 95 is connected, EDID make 'DEL', model 'DELL S2721QS', serial '4Q7XM43'
[13:13:02.758] DRM: head 'DP-2' updated, connector 106 is connected, EDID make 'DEL', model 'DELL S2721QS', serial '7S7XM43'
[13:13:02.758] DRM: head 'DP-2' found, connector 106 is connected, EDID make 'DEL', model 'DELL S2721QS', serial '7S7XM43'
[13:13:02.768] DRM: head 'HDMI-A-1' updated, connector 112 is disconnected.
[13:13:02.768] DRM: head 'HDMI-A-1' found, connector 112 is disconnected.
[13:13:02.768] Registered plugin API 'weston_drm_output_api_v1' of size 24
[13:13:02.768] Color manager: no-op
[13:13:02.768] Output 'DP-1' using color profile: built-in default sRGB SDR profile
[13:13:02.768] Chosen EGL config details: id: 61 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 1-1 type: win vis_id: XRGB8888 (0x34325258)
[13:13:02.768] Output DP-1 (crtc 51) video modes:
3840x2160@60.0, preferred, 533.2 MHz
3840x2160@60.0 16:9, 594.0 MHz
3840x2160@59.9 16:9, 593.4 MHz
3840x2160@30.0 16:9, 297.0 MHz
3840x2160@25.0 16:9, 297.0 MHz
3840x2160@24.0 16:9, 297.0 MHz
2560x1440@60.0, 241.5 MHz
2048x1280@60.0, 220.4 MHz
1920x1080@60.0, current, 148.5 MHz
1920x1080@60.0 16:9, 148.5 MHz
1920x1080@59.9 16:9, 148.4 MHz
1920x1080@60.0 16:9, 74.2 MHz
1920x1080@59.9 16:9, 74.2 MHz
1920x1080@50.0 16:9, 148.5 MHz
1920x1080@50.0 16:9, 74.2 MHz
1920x1080@25.0 16:9, 74.2 MHz
1920x1080@24.0 16:9, 74.2 MHz
1600x1200@60.0, 162.0 MHz
1600x900@60.0, 108.0 MHz
1280x1024@75.0, 135.0 MHz
1280x1024@60.0, 108.0 MHz
1152x864@75.0, 108.0 MHz
1280x720@60.0 16:9, 74.2 MHz
1280x720@59.9 16:9, 74.2 MHz
1024x768@75.0, 78.8 MHz
1024x768@60.0, 65.0 MHz
800x600@75.0, 49.5 MHz
800x600@60.3, 40.0 MHz
720x576@50.0 4:3, 27.0 MHz
720x576@50.0 16:9, 27.0 MHz
720x480@60.0 4:3, 27.0 MHz
720x480@60.0 16:9, 27.0 MHz
720x480@59.9 4:3, 27.0 MHz
720x480@59.9 16:9, 27.0 MHz
640x480@75.0, 31.5 MHz
640x480@60.0 4:3, 25.2 MHz
640x480@59.9, 25.2 MHz
640x480@59.9 4:3, 25.2 MHz
720x400@70.1, 28.3 MHz
[13:13:02.768] associating input device event0 with output DP-1 (none by udev)
[13:13:02.768] associating input device event2 with output DP-1 (none by udev)
[13:13:02.768] associating input device event4 with output DP-1 (none by udev)
[13:13:02.768] associating input device event1 with output DP-1 (none by udev)
[13:13:02.768] associating input device event3 with output DP-1 (none by udev)
[13:13:02.768] associating input device event5 with output DP-1 (none by udev)
[13:13:02.768] Output 'DP-1' enabled with head(s) DP-1
[13:13:02.768] Output 'DP-2' using color profile: built-in default sRGB SDR profile
[13:13:02.768] Chosen EGL config details: id: 61 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 1-1 type: win vis_id: XRGB8888 (0x34325258)
[13:13:02.768] Output DP-2 (crtc 72) video modes:
3840x2160@60.0, preferred, current, 594.0 MHz
3840x2160@60.0 16:9, 594.0 MHz
3840x2160@59.9 16:9, 593.4 MHz
3840x2160@30.0 16:9, 297.0 MHz
3840x2160@25.0 16:9, 297.0 MHz
3840x2160@24.0 16:9, 297.0 MHz
2560x1440@60.0, 241.5 MHz
1920x1080@60.0, 148.5 MHz
1920x1080@60.0 16:9, 148.5 MHz
1920x1080@59.9 16:9, 148.4 MHz
1920x1080@60.0 16:9, 74.2 MHz
1920x1080@59.9 16:9, 74.2 MHz
1920x1080@50.0 16:9, 148.5 MHz
1920x1080@50.0 16:9, 74.2 MHz
1920x1080@25.0 16:9, 74.2 MHz
1920x1080@24.0 16:9, 74.2 MHz
1600x1200@60.0, 162.0 MHz
1600x900@60.0, 108.0 MHz
1280x1024@75.0, 135.0 MHz
1280x1024@60.0, 108.0 MHz
1152x864@75.0, 108.0 MHz
1280x720@60.0 16:9, 74.2 MHz
1280x720@59.9 16:9, 74.2 MHz
1024x768@75.0, 78.8 MHz
1024x768@60.0, 65.0 MHz
800x600@75.0, 49.5 MHz
800x600@60.3, 40.0 MHz
720x576@50.0 4:3, 27.0 MHz
720x576@50.0 16:9, 27.0 MHz
720x480@60.0 4:3, 27.0 MHz
720x480@60.0 16:9, 27.0 MHz
720x480@59.9 4:3, 27.0 MHz
720x480@59.9 16:9, 27.0 MHz
640x480@75.0, 31.5 MHz
640x480@60.0 4:3, 25.2 MHz
640x480@59.9, 25.2 MHz
640x480@59.9 4:3, 25.2 MHz
720x400@70.1, 28.3 MHz
[13:13:02.768] Output 'DP-2' enabled with head(s) DP-2
[13:13:02.768] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
cursor planes: yes
arbitrary resolutions: no
view mask clipping: yes
explicit sync: yes
color operations: yes
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[13:13:02.768] Loading module '/usr/lib/weston/desktop-shell.so'
[13:13:02.768] launching '/usr/libexec/weston-keyboard'
[13:13:02.769] Note: support for the deprecated wl_shell interface is disabled. If a legacy client still needs it, it can be re-enabled by passing -Ddeprecated-wl-shell=true to Meson when building Weston.
[13:13:02.769] launching '/usr/libexec/weston-desktop-shell'
[repaint] Beginning repaint; pending_state 0xc35d50
Weston scene graph at 83567.414471261:
Output 0 (DP-1):
position: (0, 0) -> (1080, 1920)
mode: 1920x1080@60.000Hz
scale: 1
repaint status: repaint scheduled
next repaint: 83567.413446856
Head 0 (DP-1): connected
Output 1 (DP-2):
position: (1080, 0) -> (3240, 3840)
mode: 3840x2160@60.000Hz
scale: 1
repaint status: repaint scheduled
next repaint: 83567.413454327
Head 0 (DP-2): connected
Layer 0 (pos 0xffffffff):
View 0 (role (null), PID 0, surface ID 0, [no description available], 0xc41620):
position: (1080, 0) -> (3240, 3840)
[fully opaque]
outputs: 1 (DP-2) (primary)
[buffer not available]
View 1 (role (null), PID 0, surface ID 0, [no description available], 0xc40f10):
position: (0, 0) -> (1080, 1920)
[fully opaque]
outputs: 0 (DP-1) (primary)
[buffer not available]
Layer 1 (pos 0xfffffffe):
[no views]
Layer 2 (pos 0xb0000000):
[no views]
Layer 3 (pos 0x80000000):
[no views]
Layer 4 (pos 0x50000001):
[no views]
Layer 5 (pos 0x50000000):
[no views]
Layer 6 (pos 0x2):
[no views]
[repaint] preparing state for output DP-1 (0)
[repaint] trying planes-only build state
[view] evaluating view 0xc41620 for output DP-1 (0)
[view] ignoring view 0xc41620 (not on our output)
[view] evaluating view 0xc40f10 for output DP-1 (0)
[view] not assigning view 0xc40f10 to plane (no buffer available)
[view] failing state generation: placing view 0xc40f10 to renderer not allowed
[repaint] could not build planes-only state, trying mixed
[state] cannot propose mixed mode: for output DP-1 (0): no previous renderer fb
[repaint] could not build mixed-mode state, trying renderer-only
[view] evaluating view 0xc41620 for output DP-1 (0)
[view] ignoring view 0xc41620 (not on our output)
[view] evaluating view 0xc40f10 for output DP-1 (0)
[view] not assigning view 0xc40f10 to plane (no buffer available)
[view] view 0xc40f10 will be placed on the renderer
[repaint] Using render-only state composition
[repaint] view 0xc40f10 using renderer composition
[repaint] preparing state for output DP-2 (1)
[repaint] trying planes-only build state
[view] evaluating view 0xc41620 for output DP-2 (1)
[view] not assigning view 0xc41620 to plane (no buffer available)
[view] failing state generation: placing view 0xc41620 to renderer not allowed
[repaint] could not build planes-only state, trying mixed
[state] cannot propose mixed mode: for output DP-2 (1): no previous renderer fb
[repaint] could not build mixed-mode state, trying renderer-only
[view] evaluating view 0xc41620 for output DP-2 (1)
[view] not assigning view 0xc41620 to plane (no buffer available)
[view] view 0xc41620 will be placed on the renderer
[view] evaluating view 0xc40f10 for output DP-2 (1)
[view] ignoring view 0xc40f10 (not on our output)
[repaint] Using render-only state composition
[repaint] view 0xc41620 using renderer composition
[atomic] previous state invalid; starting with fresh state
[atomic] disabling inactive head HDMI-A-1
[CONN:112] 20 (CRTC_ID) -> 0
[atomic] starting with plane 89 disabled
[PLANE:89] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:89] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 81 disabled
[PLANE:81] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:81] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 73 disabled
[PLANE:73] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:73] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 68 disabled
[PLANE:68] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:68] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 60 disabled
[PLANE:60] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:60] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 52 disabled
[PLANE:52] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:52] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 47 disabled
[PLANE:47] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:47] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 39 disabled
[PLANE:39] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:39] 17 (FB_ID) -> 0 (0x0)
[atomic] starting with plane 31 disabled
[PLANE:31] 20 (CRTC_ID) -> 0 (0x0)
[PLANE:31] 17 (FB_ID) -> 0 (0x0)
[atomic] applying output 1 (DP-2) state
[atomic] DPMS state differs, modeset OK
[atomic] created new mode blob 128 for 3840x2160
[CRTC:72] 23 (MODE_ID) -> 128 (0x80)
[CRTC:72] 22 (ACTIVE) -> 1 (0x1)
[CONN:106] 20 (CRTC_ID) -> 72 (0x48)
[CONN:106] 104 (Content Protection) -> 0 (0x0)
[PLANE:52] 17 (FB_ID) -> 127 (0x7f)
[PLANE:52] 20 (CRTC_ID) -> 72 (0x48)
[PLANE:52] 9 (SRC_X) -> 0 (0x0)
[PLANE:52] 10 (SRC_Y) -> 0 (0x0)
[PLANE:52] 11 (SRC_W) -> 251658240 (0xf000000)
[PLANE:52] 12 (SRC_H) -> 141557760 (0x8700000)
[PLANE:52] 13 (CRTC_X) -> 0 (0x0)
[PLANE:52] 14 (CRTC_Y) -> 0 (0x0)
[PLANE:52] 15 (CRTC_W) -> 3840 (0xf00)
[PLANE:52] 16 (CRTC_H) -> 2160 (0x870)
[PLANE:52] FORMAT: XRGB8888
[atomic] applying output 0 (DP-1) state
[atomic] DPMS state differs, modeset OK
[atomic] created new mode blob 129 for 1920x1080
[CRTC:51] 23 (MODE_ID) -> 129 (0x81)
[CRTC:51] 22 (ACTIVE) -> 1 (0x1)
[CONN:95] 20 (CRTC_ID) -> 51 (0x33)
[CONN:95] 104 (Content Protection) -> 0 (0x0)
[PLANE:31] 17 (FB_ID) -> 126 (0x7e)
[PLANE:31] 20 (CRTC_ID) -> 51 (0x33)
[PLANE:31] 9 (SRC_X) -> 0 (0x0)
[PLANE:31] 10 (SRC_Y) -> 0 (0x0)
[PLANE:31] 11 (SRC_W) -> 125829120 (0x7800000)
[PLANE:31] 12 (SRC_H) -> 70778880 (0x4380000)
[PLANE:31] 13 (CRTC_X) -> 0 (0x0)
[PLANE:31] 14 (CRTC_Y) -> 0 (0x0)
[PLANE:31] 15 (CRTC_W) -> 1920 (0x780)
[PLANE:31] 16 (CRTC_H) -> 1080 (0x438)
[PLANE:31] FORMAT: XRGB8888
[atomic] drmModeAtomicCommit
[CRTC:72] setting pending flip
[CRTC:51] setting pending flip
[repaint] flushed pending_state 0xc35d50
[atomic][CRTC:72] flip processing started
[atomic][CRTC:72] flip processing completed
[repaint] Beginning repaint; pending_state 0xc5eb50
Weston scene graph at 83567.461179094:
Output 0 (DP-1):
position: (0, 0) -> (1080, 1920)
mode: 1920x1080@60.000Hz
scale: 1
repaint status: awaiting completion
Head 0 (DP-1): connected
Output 1 (DP-2):
position: (1080, 0) -> (3240, 3840)
mode: 3840x2160@60.000Hz
scale: 1
repaint status: repaint scheduled
next repaint: 83567.461434666
Head 0 (DP-2): connected
Layer 0 (pos 0xffffffff):
View 0 (role (null), PID 0, surface ID 0, [no description available], 0xc41620):
position: (1080, 0) -> (3240, 3840)
[fully opaque]
outputs: 1 (DP-2) (primary)
[buffer not available]
View 1 (role (null), PID 0, surface ID 0, [no description available], 0xc40f10):
position: (0, 0) -> (1080, 1920)
[fully opaque]
outputs: 0 (DP-1) (primary)
[buffer not available]
Layer 1 (pos 0xfffffffe):
[no views]
Layer 2 (pos 0xb0000000):
View 0 (role xdg_toplevel, PID 9846, surface ID 16, top-level window 'Wayland Terminal' of org.freedesktop.weston.wayland-terminal, 0xc7b5b0):
position: (0, 0) -> (1080, 1920)
[opaque: (0, 0) -> (1080, 1920)]
outputs: 0 (DP-1) (primary)
SHM buffer
format: 0x0 ARGB8888
View 1 (role (null), PID 0, surface ID 0, black background surface for top-level window 'Wayland Terminal' of org.freedesktop.weston.wayland-terminal, 0xc81a80):
position: (0, 0) -> (0, 0)
[fully opaque]
[no outputs]
[buffer not available]
Layer 3 (pos 0x80000000):
[no views]
Layer 4 (pos 0x50000001):
[no views]
Layer 5 (pos 0x50000000):
[no views]
Layer 6 (pos 0x2):
View 0 (role (null), PID 8489, surface ID 20, background for output DP-1, 0xc75650):
position: (0, 0) -> (0, 0)
[not opaque]
[no outputs]
SHM buffer
format: 0x0 ARGB8888
View 1 (role (null), PID 8489, surface ID 19, background for output DP-2, 0xc75070):
position: (0, 0) -> (0, 0)
[not opaque]
[no outputs]
SHM buffer
format: 0x0 ARGB8888
[repaint] preparing state for output DP-2 (1)
[repaint] trying planes-only build state
[view] evaluating view 0xc41620 for output DP-2 (1)
[view] not assigning view 0xc41620 to plane (no buffer available)
[view] failing state generation: placing view 0xc41620 to renderer not allowed
[repaint] could not build planes-only state, trying mixed
[state] using renderer FB ID 127 for mixed mode for output DP-2 (1)
[state] scanout will use for zpos 0
[view] evaluating view 0xc41620 for output DP-2 (1)
[view] not assigning view 0xc41620 to plane (no buffer available)
[view] view 0xc41620 will be placed on the renderer
[view] evaluating view 0xc40f10 for output DP-2 (1)
[view] ignoring view 0xc40f10 (not on our output)
[view] evaluating view 0xc7b5b0 for output DP-2 (1)
[view] ignoring view 0xc7b5b0 (not on our output)
[view] evaluating view 0xc81a80 for output DP-2 (1)
[view] ignoring view 0xc81a80 (not on our output)
[view] evaluating view 0xc75650 for output DP-2 (1)
[view] ignoring view 0xc75650 (not on our output)
[view] evaluating view 0xc75070 for output DP-2 (1)
[view] ignoring view 0xc75070 (occluded on our output)
[atomic] testing output 1 (DP-2) state
[CRTC:72] 23 (MODE_ID) -> 128 (0x80)
[CRTC:72] 22 (ACTIVE) -> 1 (0x1)
[CONN:106] 20 (CRTC_ID) -> 72 (0x48)
[CONN:106] 104 (Content Protection) -> 0 (0x0)
[PLANE:52] 17 (FB_ID) -> 127 (0x7f)
[PLANE:52] 20 (CRTC_ID) -> 72 (0x48)
[PLANE:52] 9 (SRC_X) -> 0 (0x0)
[PLANE:52] 10 (SRC_Y) -> 0 (0x0)
[PLANE:52] 11 (SRC_W) -> 251658240 (0xf000000)
[PLANE:52] 12 (SRC_H) -> 141557760 (0x8700000)
[PLANE:52] 13 (CRTC_X) -> 0 (0x0)
[PLANE:52] 14 (CRTC_Y) -> 0 (0x0)
[PLANE:52] 15 (CRTC_W) -> 3840 (0xf00)
[PLANE:52] 16 (CRTC_H) -> 2160 (0x870)
[PLANE:52] FORMAT: XRGB8888
[atomic] drmModeAtomicCommit
[repaint] Using mixed state composition
[repaint] view 0xc41620 using renderer composition
[repaint] view 0xc75070 using renderer composition
[atomic] applying output 1 (DP-2) state
[CRTC:72] 23 (MODE_ID) -> 128 (0x80)
[CRTC:72] 22 (ACTIVE) -> 1 (0x1)
[CONN:106] 20 (CRTC_ID) -> 72 (0x48)
[CONN:106] 104 (Content Protection) -> 0 (0x0)
[PLANE:52] 17 (FB_ID) -> 130 (0x82)
[PLANE:52] 20 (CRTC_ID) -> 72 (0x48)
[PLANE:52] 9 (SRC_X) -> 0 (0x0)
[PLANE:52] 10 (SRC_Y) -> 0 (0x0)
[PLANE:52] 11 (SRC_W) -> 251658240 (0xf000000)
[PLANE:52] 12 (SRC_H) -> 141557760 (0x8700000)
[PLANE:52] 13 (CRTC_X) -> 0 (0x0)
[PLANE:52] 14 (CRTC_Y) -> 0 (0x0)
[PLANE:52] 15 (CRTC_W) -> 3840 (0xf00)
[PLANE:52] 16 (CRTC_H) -> 2160 (0x870)
[PLANE:52] FORMAT: XRGB8888
[atomic] drmModeAtomicCommit
[CRTC:72] setting pending flip
[repaint] flushed pending_state 0xc5eb50
[atomic][CRTC:51] flip processing started
[atomic][CRTC:51] flip processing completed
[repaint] Beginning repaint; pending_state 0xc1c4a0
```
https://gitlab.freedesktop.org/wayland/weston/-/issues/811
Segfault when opening a program by pressing a stylus on a launcher
2024-02-23T08:43:36Z
Link Mauve
Segfault when opening a program by pressing a stylus on a launcher
```rust
Program terminated with signal SIGSEGV, Segmentation fault.
#0 has_keyboard_focused_child_callback (surface=<optimized out>, user_data=0x7fffb8759357) at ../desktop-shell/shell.c:1619
1619 ../desktop-shell/shell.c: No such fi...
```rust
Program terminated with signal SIGSEGV, Segmentation fault.
#0 has_keyboard_focused_child_callback (surface=<optimized out>, user_data=0x7fffb8759357) at ../desktop-shell/shell.c:1619
1619 ../desktop-shell/shell.c: No such file or directory.
[Current thread is 1 (Thread 0x7fb0e99cad00 (LWP 888708))]
(gdb) bt
#0 has_keyboard_focused_child_callback (surface=<optimized out>, user_data=0x7fffb8759357) at ../desktop-shell/shell.c:1619
#1 0x00007fb0e9fd8619 in weston_desktop_surface_foreach_child
(surface=0x557d22b348a0, callback=callback@entry=0x7fb0decb1b20 <has_keyboard_focused_child_callback>, user_data=user_data@entry=0x7fffb8759357) at ../libweston/desktop/surface.c:897
#2 0x00007fb0decb1c6e in has_keyboard_focused_child (shsurf=0x557d22913020) at ../desktop-shell/shell.c:1637
#3 sync_surface_activated_state (shsurf=<optimized out>) at ../desktop-shell/shell.c:1658
#4 0x00007fb0decb581e in shell_surface_deactivate (shsurf=<optimized out>) at ../desktop-shell/shell.c:1688
#5 activate (shell=shell@entry=0x557d22a00690, view=<optimized out>, seat=seat@entry=0x557d22125000, flags=1) at ../desktop-shell/shell.c:3702
#6 0x00007fb0decb6eba in map (shsurf=0x557d229ffdd0, shell=0x557d22a00690) at ../desktop-shell/shell.c:2328
#7 desktop_surface_committed (desktop_surface=<optimized out>, sx=<optimized out>, sy=<optimized out>, data=0x557d22a00690) at ../desktop-shell/shell.c:2382
#8 0x00007fb0e9fe0545 in weston_desktop_surface_surface_committed (listener=0x557d2297cf88, data=<optimized out>) at ../libweston/desktop/surface.c:193
#9 0x00007fb0e9fba849 in wl_signal_emit (data=0x557d22b6f1f0, signal=0x557d22b6f210) at /usr/include/wayland-server-core.h:496
#10 weston_surface_commit_state (surface=surface@entry=0x557d22b6f1f0, state=state@entry=0x557d22b6f318) at ../libweston/compositor.c:4432
#11 0x00007fb0e9fbb4d7 in weston_surface_commit (surface=0x557d22b6f1f0) at ../libweston/compositor.c:4446
#12 surface_commit (client=<optimized out>, resource=<optimized out>) at ../libweston/compositor.c:4531
#13 0x00007fb0e9ca44f6 in () at /usr/lib/libffi.so.8
#14 0x00007fb0e9ca0f5e in () at /usr/lib/libffi.so.8
#15 0x00007fb0e9ca3b73 in ffi_call () at /usr/lib/libffi.so.8
#16 0x00007fb0e9f8ea20 in wl_closure_invoke (closure=closure@entry=0x557d22b62a60, flags=flags@entry=2, target=<optimized out>,
target@entry=0x557d22925ce0, opcode=opcode@entry=6, data=<optimized out>, data@entry=0x557d22920200) at ../wayland/src/connection.c:1025
#17 0x00007fb0e9f8861f in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=0x557d22920200) at ../wayland/src/wayland-server.c:438
#18 0x00007fb0e9f8bd82 in wl_event_loop_dispatch (loop=0x557d22117480, timeout=<optimized out>, timeout@entry=-1) at ../wayland/src/event-loop.c:1104
#19 0x00007fb0e9f88ef7 in wl_display_run (display=display@entry=0x557d22117390) at ../wayland/src/wayland-server.c:1493
#20 0x00007fb0ea2b14cb in wet_main (argc=<optimized out>, argv=0x7fffb875a518, test_data=0x0) at ../compositor/main.c:4244
#21 0x00007fb0ea027cd0 in () at /usr/lib/libc.so.6
#22 0x00007fb0ea027d8a in __libc_start_main () at /usr/lib/libc.so.6
#23 0x0000557d212ce055 in _start ()
```
https://gitlab.freedesktop.org/wayland/weston/-/issues/810
Segfault when a graphics tablet is attached
2023-09-02T21:56:47Z
Link Mauve
Segfault when a graphics tablet is attached
I think this happened when coming back from another VT.
```rust
Program terminated with signal SIGSEGV, Segmentation fault.
#0 wl_resource_post_event (resource=resource@entry=0xffffffffffffffe0, opcode=opcode@entry=18) at ../wayland/sr...
I think this happened when coming back from another VT.
```rust
Program terminated with signal SIGSEGV, Segmentation fault.
#0 wl_resource_post_event (resource=resource@entry=0xffffffffffffffe0, opcode=opcode@entry=18) at ../wayland/src/wayland-server.c:254
254 ../wayland/src/wayland-server.c: No such file or directory.
[Current thread is 1 (Thread 0x7f76d584dd00 (LWP 886416))]
(gdb) bt
#0 wl_resource_post_event (resource=resource@entry=0xffffffffffffffe0, opcode=opcode@entry=18) at ../wayland/src/wayland-server.c:254
#1 0x00007f76d59ea023 in zwp_tablet_tool_v2_send_frame (time=<optimized out>, resource_=0xffffffffffffffe0) at protocol/tablet-unstable-v2-server-protocol.h:1075
#2 weston_tablet_tool_send_frame (tool=0x564502f047d0, time=<optimized out>) at ../libweston/input.c:1751
#3 0x00007f76d5a4adb5 in idle_notify_tablet_tool_frame (data=0x564502f047d0) at ../libweston/libinput-device.c:582
#4 0x00007f76d59a2b03 in wl_event_loop_dispatch_idle (loop=loop@entry=0x56450263a480) at ../wayland/src/event-loop.c:969
#5 0x00007f76d59a2ddd in wl_event_loop_dispatch (loop=0x56450263a480, timeout=<optimized out>, timeout@entry=-1) at ../wayland/src/event-loop.c:1109
#6 0x00007f76d599fef7 in wl_display_run (display=display@entry=0x56450263a390) at ../wayland/src/wayland-server.c:1493
#7 0x00007f76d5a734cb in wet_main (argc=<optimized out>, argv=0x7ffff3078ee8, test_data=0x0) at ../compositor/main.c:4244
#8 0x00007f76d5627cd0 in () at /usr/lib/libc.so.6
#9 0x00007f76d5627d8a in __libc_start_main () at /usr/lib/libc.so.6
#10 0x0000564501a48055 in _start ()
```
https://gitlab.freedesktop.org/wayland/weston/-/issues/809
Segfault when running mpv --vo=dmabuf-wayland after a while
2023-09-02T15:55:41Z
Link Mauve
Segfault when running mpv --vo=dmabuf-wayland after a while
I haven’t managed to figure out when that happens or why, it was 25 minutes after starting to watch a movie, with no user interaction whatsoever.
```rust
Program terminated with signal SIGSEGV, Segmentation fault.
#0 wl_shm_buffer_get_...
I haven’t managed to figure out when that happens or why, it was 25 minutes after starting to watch a movie, with no user interaction whatsoever.
```rust
Program terminated with signal SIGSEGV, Segmentation fault.
#0 wl_shm_buffer_get_stride (buffer=buffer@entry=0x0) at ../wayland/src/wayland-shm.c:436
436 ../wayland/src/wayland-shm.c: No such file or directory.
[Current thread is 1 (Thread 0x7fa7d06b0d00 (LWP 655234))]
(gdb) bt
#0 wl_shm_buffer_get_stride (buffer=buffer@entry=0x0) at ../wayland/src/wayland-shm.c:436
#1 0x00007fa7d019b29a in gl_renderer_attach_shm (buffer=0x559eb2aadf40, es=0x559eb2aa5390) at ../libweston/renderer-gl/gl-renderer.c:2319
#2 gl_renderer_attach (es=0x559eb2aa5390, buffer=0x559eb2aadf40) at ../libweston/renderer-gl/gl-renderer.c:3202
#3 0x00007fa7d0f0a665 in weston_surface_attach (status=<optimized out>, state=0x559eb2a9b950, surface=0x559eb2aa5390) at ../libweston/compositor.c:2919
#4 weston_surface_commit_state (surface=surface@entry=0x559eb2aa5390, state=state@entry=0x559eb2a9b950) at ../libweston/compositor.c:4337
#5 0x00007fa7d0f0aeea in weston_subsurface_commit_from_cache (sub=0x559eb2a9b8c0) at ../libweston/compositor.c:4712
#6 weston_subsurface_synchronized_commit (sub=sub@entry=0x559eb2a9b8c0) at ../libweston/compositor.c:4861
#7 0x00007fa7d0f0b267 in weston_subsurface_parent_commit (parent_is_synchronized=0, sub=0x559eb2a9b8c0) at ../libweston/compositor.c:4887
#8 weston_subsurface_commit (sub=<optimized out>) at ../libweston/compositor.c:4840
#9 surface_commit (client=<optimized out>, resource=<optimized out>) at ../libweston/compositor.c:4524
#10 0x00007fa7d098f4f6 in () at /usr/lib/libffi.so.8
#11 0x00007fa7d098bf5e in () at /usr/lib/libffi.so.8
#12 0x00007fa7d098eb73 in ffi_call () at /usr/lib/libffi.so.8
#13 0x00007fa7d0ecba20 in wl_closure_invoke (closure=closure@entry=0x559eb2b45570, flags=flags@entry=2, target=<optimized out>,
target@entry=0x559eb2986c00, opcode=opcode@entry=6, data=<optimized out>, data@entry=0x559eb2a93880) at ../wayland/src/connection.c:1025
#14 0x00007fa7d0ec561f in wl_client_connection_data (fd=<optimized out>, mask=<optimized out>, data=0x559eb2a93880) at ../wayland/src/wayland-server.c:438
#15 0x00007fa7d0ec8d82 in wl_event_loop_dispatch (loop=0x559eb210e480, timeout=<optimized out>, timeout@entry=-1) at ../wayland/src/event-loop.c:1104
#16 0x00007fa7d0ec5ef7 in wl_display_run (display=display@entry=0x559eb210e390) at ../wayland/src/wayland-server.c:1493
#17 0x00007fa7d0f9b4cb in wet_main (argc=<optimized out>, argv=0x7ffde8afbd88, test_data=0x0) at ../compositor/main.c:4244
#18 0x00007fa7d0c27cd0 in () at /usr/lib/libc.so.6
#19 0x00007fa7d0c27d8a in __libc_start_main () at /usr/lib/libc.so.6
#20 0x0000559eb16d8055 in _start ()
```
https://gitlab.freedesktop.org/wayland/weston/-/issues/808
unknown child process exited
2023-09-04T11:25:28Z
Kjeld Flarup
unknown child process exited
I'm trying to start weston on a system without systemd, but it gives me some problems.
Thus I'm trying to start weston manually on a target with systemd first to be sure that I got the configuration correct, and I ends up in the same p...
I'm trying to start weston on a system without systemd, but it gives me some problems.
Thus I'm trying to start weston manually on a target with systemd first to be sure that I got the configuration correct, and I ends up in the same problem as in non systemd.
My question is why do I get the message `unknown child process exited`
The primary difference is that when I run manually, I run as `root` and not `weston` user.
```
weston --debug --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/var/keys/deif/rdp/server.crt --rdp-tls-key=/var/keys/deif/rdp/server.key
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/0/bus"
export EDITOR="vi"
export HOME="/home/root"
export INVOCATION_ID="e2ffa4076d5545419708a020a07679f4"
export LISTEN_FDS="1"
export LOGNAME="root"
export NOTIFY_SOCKET="/run/systemd/notify"
export OLDPWD="/"
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PWD="/home/root"
export SHELL="/bin/sh"
export SHLVL="0"
export SSH_CLIENT="172.17.165.18 45760 22"
export SSH_CONNECTION="172.17.165.18 45760 172.17.165.40 22"
export SSH_TTY="/dev/pts/0"
export TERM="xterm-256color"
export USER="root"
export WAYLAND_DISPLAY="wayland-0"
export WESTON_CONFIG_FILE="/etc/xdg/weston/weston.ini"
export XDG_RUNTIME_DIR="/run/user/0"
export XDG_SEAT="seat0"
export XDG_SESSION_CLASS="user"
export XDG_SESSION_DESKTOP="weston"
export XDG_SESSION_ID="c4"
export XDG_SESSION_TYPE="wayland"
export XDG_VTNR="7"
export XWAYLAND_NO_GLAMOR="1"
Date: 2023-08-31 UTC
[13:40:20.318] weston 10.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: lf-5.15.52-2.1.0+
[13:40:20.323] Command line: weston --debug --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/var/keys/deif/rdp/server.crt --rdp-tls-key=/var/keys/deif/rdp/server.key
[13:40:20.323] OS: Linux, 5.15.32-rt39-06050-g9b4b5d3d25b3, #1 SMP PREEMPT_RT Fri Jul 28 08:37:26 UTC 2023, aarch64
[13:40:20.323] Flight recorder: enabled
[13:40:20.324] Using config file '/etc/xdg/weston/weston.ini'
WARNING: debug protocol has been enabled. This is a potential denial-of-service attack vector and information leak.
[13:40:20.325] Output repaint window is 16 ms maximum.
[13:40:20.328] Loading module '/usr/lib/libweston-10/rdp-backend.so'
[13:40:20.515] using FreeRDP version 2.6.1
[13:40:20.515] TLS support activated
[13:40:20:497] [3674:3674] [INFO][com.freerdp.core.listener] - Listening on [0.0.0.0]:3389
[13:40:20.533] Registered plugin API 'weston_rdp_output_api_v1' of size 8
[13:40:20.533] Color manager: no-op
[13:40:20.533] Output 'rdp' using color profile: built-in default sRGB SDR profile
[13:40:20.533] Output 'rdp' enabled with head(s) rdp
[13:40:20.533] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: no
cursor planes: no
arbitrary resolutions: yes
view mask clipping: yes
explicit sync: no
color operations: no
presentation clock: CLOCK_MONOTONIC_RAW, id 4
presentation clock resolution: 0.000000001 s
[13:40:20.538] Loading module '/usr/lib/weston/fullscreen-shell.so'
[13:40:20.541] Loading module '/usr/lib/weston/screen-share.so'
Date: 2023-08-31 UTC
[13:40:20.576] weston 10.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: lf-5.15.52-2.1.0+
[13:40:20.576] Command line: /usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/var/keys/deif/rdp/server.crt --rdp-tls-key=/var/keys/deif/rdp/server.key
[13:40:20.577] OS: Linux, 5.15.32-rt39-06050-g9b4b5d3d25b3, #1 SMP PREEMPT_RT Fri Jul 28 08:37:26 UTC 2023, aarch64
[13:40:20.577] Flight recorder: enabled
[13:40:20.577] Using config file '/etc/xdg/weston/weston.ini'
[13:40:20.577] Output repaint window is 16 ms maximum.
[13:40:20.577] Loading module '/usr/lib/libweston-10/rdp-backend.so'
[13:40:20.587] using FreeRDP version 2.6.1
[13:40:20.587] TLS support activated
[13:40:20.588] unable to bind rdp socket
[13:40:20.588] BUG: layer_list is not empty after shutdown. Calls to weston_layer_fini() are missing somwhere.
[13:40:20.588] fatal: failed to create compositor backend
[13:40:20.601] Screen share failed: No wl_shm found
[13:40:20.601] unknown child process exited
```
https://gitlab.freedesktop.org/wayland/weston/-/issues/807
unable to bind rdp socket
2023-09-05T11:14:35Z
Kjeld Flarup
unable to bind rdp socket
When I start rdp-backend on my Yocto imx8 system, I get these listings in syslog
```
# journalctl -b | grep rdp
Aug 31 13:08:05 iE250-0d02f9 weston[871]: [13:08:05.198] Command line: /usr/bin/weston --backend=rdp-backend.so --shell=fulls...
When I start rdp-backend on my Yocto imx8 system, I get these listings in syslog
```
# journalctl -b | grep rdp
Aug 31 13:08:05 iE250-0d02f9 weston[871]: [13:08:05.198] Command line: /usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/var/keys/deif/rdp/server.crt --rdp-tls-key=/var/keys/deif/rdp/server.key
Aug 31 13:08:05 iE250-0d02f9 weston[871]: [13:08:05.208] Loading module '/usr/lib/libweston-10/rdp-backend.so'
Aug 31 13:08:05 iE250-0d02f9 weston[871]: [13:08:05.401] Registered plugin API 'weston_rdp_output_api_v1' of size 8
Aug 31 13:08:05 iE250-0d02f9 weston[871]: [13:08:05.401] Output 'rdp' using color profile: built-in default sRGB SDR profile
Aug 31 13:08:05 iE250-0d02f9 weston[871]: [13:08:05.401] Output 'rdp' enabled with head(s) rdp
Aug 31 13:08:05 iE250-0d02f9 weston[872]: [13:08:05.440] Command line: /usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/var/keys/deif/rdp/server.crt --rdp-tls-key=/var/keys/deif/rdp/server.key
Aug 31 13:08:05 iE250-0d02f9 weston[872]: [13:08:05.441] Loading module '/usr/lib/libweston-10/rdp-backend.so'
Aug 31 13:08:05 iE250-0d02f9 weston[872]: [13:08:05.489] unable to bind rdp socket
Aug 31 13:08:05 iE250-0d02f9 weston[873]: [13:08:05.533] Command line: /usr/bin/weston --backend=rdp-backend.so --shell=fullscreen-shell.so --no-clients-resize --rdp-tls-cert=/var/keys/deif/rdp/server.crt --rdp-tls-key=/var/keys/deif/rdp/server.key
Aug 31 13:08:05 iE250-0d02f9 weston[873]: [13:08:05.534] Loading module '/usr/lib/libweston-10/rdp-backend.so'
Aug 31 13:08:05 iE250-0d02f9 weston[873]: [13:08:05.545] unable to bind rdp socket
```
What I can see it that weston forks twice, and these two forks each tries to start RDP, but only the parent succeeds on this.
I assume that "unable to bind rdp socket" is ignorable.
https://gitlab.freedesktop.org/wayland/weston/-/issues/806
Xwayland API header installation - should we always install it?
2023-08-29T12:45:19Z
Marius Vlad
Xwayland API header installation - should we always install it?
Our shells, desktop/kiosk-shells are using `weston_xwayland_surface_api` for their transform handler
but also to verify if the underlying surface is a xwayland one or not.
This is all fine, but when XWayland is disabled, we still seem ...
Our shells, desktop/kiosk-shells are using `weston_xwayland_surface_api` for their transform handler
but also to verify if the underlying surface is a xwayland one or not.
This is all fine, but when XWayland is disabled, we still seem to rely on the local header
rather than the installed one. For weston this again good, but for libweston users not so much, as that header
wouldn't be installed at all.
So I guess the question would be if we should install always the xwayland-api header and use `weston_xwayland_get_api()`
to determine if Xwayland support is built or not...?
https://gitlab.freedesktop.org/wayland/weston/-/issues/805
Segfault in weston_desktop_surface_get_maximized in desktop-shell during outp...
2023-09-13T15:25:17Z
Alexandros Frantzis
Segfault in weston_desktop_surface_get_maximized in desktop-shell during output resize
To reproduce with latest `main` (a414d379fb34c3438c31afa0198f91a1c8bed295):
1. Start weston nested under wayland/x11
2. Open weston-terminal within the nested weston window by clicking on the icon at the top-left
3. Close weston-termina...
To reproduce with latest `main` (a414d379fb34c3438c31afa0198f91a1c8bed295):
1. Start weston nested under wayland/x11
2. Open weston-terminal within the nested weston window by clicking on the icon at the top-left
3. Close weston-terminal
4. While the fade-out destruction animation is in progress resize the weston window. For nested under wayland switching the focus away from the nested weston window also works (this is treated internally as an output resize).
5. Crash
```
0x00007ffff7f4a141 in weston_desktop_surface_get_maximized (surface=0x0)
at ../libweston/desktop/surface.c:661
661 if (surface->implementation->get_maximized == NULL)
```
A log of the crash with `-l proto,log` including the full gdb backtrace at the end: [weston-nested-wayland-crash.txt](/uploads/37fb4476e75ae83fedc6cdf5a0476572/weston-nested-wayland-crash.txt)
https://gitlab.freedesktop.org/wayland/weston/-/issues/804
Display rotation on the fly
2024-02-01T10:20:08Z
Ajita Chavan
Display rotation on the fly
Hi all,
I am using IMX8MM with yocto 5.4.70 xwayland. I have a QT application running. I want to rotate display direction without restarting the weston as It will abrupt my running QT application. Can someone will provide a lead?
Thank...
Hi all,
I am using IMX8MM with yocto 5.4.70 xwayland. I have a QT application running. I want to rotate display direction without restarting the weston as It will abrupt my running QT application. Can someone will provide a lead?
Thanks & Regards,
Ajita
https://gitlab.freedesktop.org/wayland/weston/-/issues/803
`weston: ../libweston/output-capture.c:398: weston_output_pull_capture_task: ...
2023-09-12T22:52:05Z
Paul Menzel
`weston: ../libweston/output-capture.c:398: weston_output_pull_capture_task: Assertion `csi->width == width' failed.`
Using Debian sid/unstable with *weston* 12.0.1-1 after today’s update I get:
```
$ weston
Date: 2023-08-24 CEST
[22:54:50.946] weston 12.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.fr...
Using Debian sid/unstable with *weston* 12.0.1-1 after today’s update I get:
```
$ weston
Date: 2023-08-24 CEST
[22:54:50.946] weston 12.0.1
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: 12.0.1
[22:54:50.946] Command line: weston
[22:54:50.946] OS: Linux, 6.5.0-rc7-00181-g24d500f283b1, #499 SMP PREEMPT_DYNAMIC Thu Aug 24 20:29:53 UTC 2023, x86_64
[22:54:50.946] Flight recorder: enabled
[22:54:50.947] Using config file '/home/kodi/.config/weston.ini'
[22:54:50.947] Output repaint window is 7 ms maximum.
[22:54:50.947] Loading module '/usr/lib/i386-linux-gnu/libweston-12/drm-backend.so'
[22:54:50.962] initializing drm backend
[22:54:50.962] Trying libseat launcher...
[22:54:50.962] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
[22:54:50.962] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
[22:54:50.998] [libseat/libseat.c:73] Seat opened with backend 'logind'
[22:54:50.998] libseat: session control granted
[22:54:51.002] using /dev/dri/card0
[22:54:51.002] DRM: does not support atomic modesetting
[22:54:51.002] DRM: does not support GBM modifiers
[22:54:51.002] DRM: supports picture aspect ratio
[22:54:51.041] Loading module '/usr/lib/i386-linux-gnu/libweston-12/gl-renderer.so'
[22:54:51.048] Using rendering device: /dev/dri/renderD128
[22:54:51.048] EGL version: 1.5
[22:54:51.048] EGL vendor: Mesa Project
[22:54:51.048] EGL client APIs: OpenGL OpenGL_ES
[22:54:51.048] warning: Disabling render GPU timeline and explicit synchronization due to missing EGL_ANDROID_native_fence_sync extension
[22:54:51.048] EGL features:
EGL Wayland extension: yes
context priority: no
buffer age: yes
partial update: no
swap buffers with damage: no
configless context: yes
surfaceless context: yes
dmabuf support: modifiers
[22:54:51.053] GL version: OpenGL ES 3.1 Mesa 23.1.6-1
[22:54:51.053] GLSL version: OpenGL ES GLSL ES 3.10
[22:54:51.053] GL vendor: Mesa
[22:54:51.053] GL renderer: AMD ARUBA (DRM 2.50.0 / 6.5.0-rc7-00181-g24d500f283b1, LLVM 15.0.7)
[22:54:51.062] GL ES 3.1 - renderer features:
read-back format: ARGB8888
glReadPixels supports y-flip: yes
wl_shm 10 bpc formats: yes
wl_shm 16 bpc formats: yes
wl_shm half-float formats: yes
internal R and RG formats: yes
OES_EGL_image_external: yes
[22:54:51.062] Using GL renderer
[22:54:51.083] event0 - Power Button: is tagged by udev as: Keyboard
[22:54:51.083] event0 - Power Button: device is a keyboard
[22:54:51.087] event1 - HDA ATI HDMI HDMI/DP,pcm=3: is tagged by udev as: Switch
[22:54:51.089] event1 - not using input device '/dev/input/event1'
[22:54:51.093] event2 - HDA ATI HDMI HDMI/DP,pcm=7: is tagged by udev as: Switch
[22:54:51.094] event2 - not using input device '/dev/input/event2'
[22:54:51.099] event11 - DELL Dell QuietKey Keyboard: is tagged by udev as: Keyboard
[22:54:51.099] event11 - DELL Dell QuietKey Keyboard: device is a keyboard
[22:54:51.163] event12 - Logitech Optical USB Mouse: is tagged by udev as: Mouse
[22:54:51.164] event12 - Logitech Optical USB Mouse: device set to 400 DPI
[22:54:51.164] event12 - Logitech Optical USB Mouse: device is a pointer
[22:54:51.168] event10 - HD-Audio Generic Front Headphone: is tagged by udev as: Switch
[22:54:51.169] event10 - not using input device '/dev/input/event10'
[22:54:51.173] event3 - HD-Audio Generic Rear Mic: is tagged by udev as: Switch
[22:54:51.174] event3 - not using input device '/dev/input/event3'
[22:54:51.178] event4 - HD-Audio Generic Front Mic: is tagged by udev as: Switch
[22:54:51.179] event4 - not using input device '/dev/input/event4'
[22:54:51.183] event5 - HD-Audio Generic Line: is tagged by udev as: Switch
[22:54:51.185] event5 - not using input device '/dev/input/event5'
[22:54:51.189] event6 - HD-Audio Generic Line Out Front: is tagged by udev as: Switch
[22:54:51.190] event6 - not using input device '/dev/input/event6'
[22:54:51.194] event7 - HD-Audio Generic Line Out Surround: is tagged by udev as: Switch
[22:54:51.195] event7 - not using input device '/dev/input/event7'
[22:54:51.200] event8 - HD-Audio Generic Line Out CLFE: is tagged by udev as: Switch
[22:54:51.201] event8 - not using input device '/dev/input/event8'
[22:54:51.205] event9 - HD-Audio Generic Line Out Side: is tagged by udev as: Switch
[22:54:51.206] event9 - not using input device '/dev/input/event9'
[22:54:51.218] libinput: configuring device "Power Button".
[22:54:51.218] libinput: configuring device "DELL Dell QuietKey Keyboard".
[22:54:51.218] libinput: configuring device "Logitech Optical USB Mouse".
[22:54:51.249] DRM: head 'DP-1' found, connector 50 is disconnected.
[22:54:51.405] DRM: head 'VGA-1' found, connector 53 is connected, EDID make 'PTS', model 'CY-767C', serial 'FGZJ39012870'
Supported EOTF modes: SDR
[22:54:51.406] DRM: head 'HDMI-A-1' found, connector 55 is disconnected.
[22:54:51.406] Registered plugin API 'weston_drm_output_api_v1' of size 20
[22:54:51.406] Registered plugin API 'weston_drm_virtual_output_api_v2' of size 24
[22:54:51.406] Color manager: no-op
[22:54:51.407] Output 'VGA-1' attempts EOTF mode: SDR
[22:54:51.407] Output 'VGA-1' using color profile: built-in default sRGB SDR profile
[22:54:51.407] Chosen EGL config details: id: 49 rgba: 8 8 8 0 buf: 24 dep: 0 stcl: 0 int: 1-1 type: win vis_id: XRGB8888 (0x34325258)
[22:54:51.407] Output VGA-1 (crtc 42) video modes:
1280x1024@75.0, current, 135.0 MHz
1280x1024@60.0, 108.0 MHz
1024x768@75.0, 78.8 MHz
1024x768@70.1, 75.0 MHz
1024x768@60.0, 65.0 MHz
832x624@74.6, 57.3 MHz
800x600@75.0, 49.5 MHz
800x600@72.2, 50.0 MHz
800x600@60.3, 40.0 MHz
800x600@56.2, 36.0 MHz
640x480@75.0, 31.5 MHz
640x480@72.8, 31.5 MHz
640x480@66.7, 30.2 MHz
640x480@59.9, 25.2 MHz
720x405@70.0, 26.5 MHz
720x400@70.1, 28.3 MHz
640x400@70.0, 23.4 MHz
640x360@70.1, 20.6 MHz
[22:54:51.407] associating input device event0 with output VGA-1 (none by udev)
[22:54:51.407] associating input device event11 with output VGA-1 (none by udev)
[22:54:51.407] associating input device event12 with output VGA-1 (none by udev)
[22:54:51.407] Output 'VGA-1' enabled with head(s) VGA-1
[22:54:51.407] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
cursor planes: yes
arbitrary resolutions: no
view mask clipping: yes
explicit sync: no
color operations: yes
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[22:54:51.408] Loading module '/usr/lib/i386-linux-gnu/weston/desktop-shell.so'
[22:54:51.409] Loading module '/usr/lib/i386-linux-gnu/weston/systemd-notify.so'
[22:54:51.410] launching '/usr/lib/i386-linux-gnu/weston-keyboard'
[22:54:51.419] launching '/usr/lib/i386-linux-gnu/weston-desktop-shell'
weston: ../libweston/output-capture.c:398: weston_output_pull_capture_task: Assertion `csi->width == width' failed.
Failed to process Wayland connection: Connection reset by peer
failed to create display: Connection reset by peer
Failed to process Wayland connection: Connection reset by peer
failed to create display: Connection reset by peer
Aborted (core dumped)
```
The backtrace looks like below:
```
(gdb) bt
#0 0xf7f26579 in __kernel_vsyscall ()
#1 0xf7c89857 in __pthread_kill_implementation (threadid=threadid@entry=4159829248, signo=signo@entry=6, no_tid=no_tid@entry=0)
at ./nptl/pthread_kill.c:43
#2 0xf7c898cb in __pthread_kill_internal (signo=6, threadid=4159829248) at ./nptl/pthread_kill.c:78
#3 0xf7c39691 in __GI_raise (sig=6) at ../sysdeps/posix/raise.c:26
#4 0xf7c2227a in __GI_abort () at ./stdlib/abort.c:79
#5 0xf7c2217c in __assert_fail_base (fmt=<optimized out>, assertion=<optimized out>, file=<optimized out>, line=<optimized out>,
function=<optimized out>) at ./assert/assert.c:92
#6 0xf7c31bf9 in __assert_fail (assertion=0xf7ec4cfc "csi->width == width", file=0xf7ec4c78 "../libweston/output-capture.c", line=398,
function=0xf7ec9cc0 <__PRETTY_FUNCTION__.3> "weston_output_pull_capture_task") at ./assert/assert.c:101
#7 0xf7eb106f in weston_output_pull_capture_task (output=0x57d907e0, src=WESTON_OUTPUT_CAPTURE_SOURCE_WRITEBACK, width=1280, height=1024,
format=0xf7eebcc0 <pixel_format_table+1760>) at ../libweston/output-capture.c:398
#8 0xf710d7f8 in drm_output_pick_writeback_capture_task (output=0x57d907e0) at ../libweston/backend-drm/drm.c:556
#9 drm_output_repaint (output_base=0x57d907e0, damage=0xffef4308) at ../libweston/backend-drm/drm.c:639
#10 0xf7e9fa16 in weston_output_repaint (output=0x57d907e0) at ../libweston/compositor.c:3115
#11 weston_output_maybe_repaint (now=0xffef42d0, output=0x57d907e0) at ../libweston/compositor.c:3186
#12 output_repaint_timer_handler (data=0x57860b90) at ../libweston/compositor.c:3267
#13 0xf7e60f1f in wl_event_loop_dispatch () from /lib/i386-linux-gnu/libwayland-server.so.0
#14 0xf7e5e434 in wl_display_run () from /lib/i386-linux-gnu/libwayland-server.so.0
#15 0xf7f0c891 in wet_main () from /usr/lib/i386-linux-gnu/weston/libexec_weston.so.0
#16 0x5657b08a in ?? ()
#17 0xf7c237c5 in __libc_start_call_main (main=main@entry=0x5657b060, argc=argc@entry=1, argv=argv@entry=0xffef4bd4)
at ../sysdeps/nptl/libc_start_call_main.h:58
#18 0xf7c23888 in __libc_start_main_impl (main=0x5657b060, argc=1, argv=0xffef4bd4, init=0x0, fini=0x0, rtld_fini=0xf7f2cca0 <_dl_fini>,
stack_end=0xffef4bcc) at ../csu/libc-start.c:360
#19 0x5657b0c7 in ?? ()
```
[`(gdb) t a a bt f`](/uploads/aa2a9858125c1cec355a1bf580cd2e29/weston-taabtf.txt)
https://gitlab.freedesktop.org/wayland/weston/-/issues/802
Implement the drm-lease-v1 protocol
2024-01-19T14:20:45Z
Dallas Strouse
Implement the drm-lease-v1 protocol
I'm currently looking at [implementing DRM leasing in Mutter](https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3205), and would appreciate it if Weston supported DRM leasing as a reference implementation. I have the kwin and wlroot...
I'm currently looking at [implementing DRM leasing in Mutter](https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3205), and would appreciate it if Weston supported DRM leasing as a reference implementation. I have the kwin and wlroots implementations open right now to see how *they* do it, but both are more designed for *their* compositors (kwin being C++, and it's not too applicable to Mutter, and wlroots having some weird wlroots abstractions I can't apply here). As such, I'd appreciate it if a plain C reference implementation, with no (or little) additional abstractions, were available. Weston seems like the best place for that, especially as it is the reference Wayland compositor implementation.
https://gitlab.freedesktop.org/wayland/weston/-/issues/801
Invalid protocol error when a client starts maximized
2023-09-28T06:45:40Z
Link Mauve
Invalid protocol error when a client starts maximized
Here is such a log:
[WAYLAND_DEBUG of rnote](/uploads/9d3864f58599713f75c0729a3fd8c3e6/rnote.txt)
On first launch the client was not maximized and everything was fine, I maximized it, then closed it, and on any subsequent launch it exit...
Here is such a log:
[WAYLAND_DEBUG of rnote](/uploads/9d3864f58599713f75c0729a3fd8c3e6/rnote.txt)
On first launch the client was not maximized and everything was fine, I maximized it, then closed it, and on any subsequent launch it exits with this bogus protocol error.
Edit: this is a regression that already got fixed here: https://gitlab.freedesktop.org/wayland/weston/-/issues/645
Marius Vlad
Marius Vlad
https://gitlab.freedesktop.org/wayland/weston/-/issues/800
Factor out surface rotation into protocol?
2023-08-20T14:47:29Z
Marcel Partap
Factor out surface rotation into protocol?
In 460099f143f5e322be5381a4df241afa245c15eb (2012) @pq added the uber cool feature to rotate surfaces with `Super+MouseLeftButton`, presumably as a "stress test for input event coordinate transformations, damage region tracking, draw tra...
In 460099f143f5e322be5381a4df241afa245c15eb (2012) @pq added the uber cool feature to rotate surfaces with `Super+MouseLeftButton`, presumably as a "stress test for input event coordinate transformations, damage region tracking, draw transformations, and window move and resize orientation". Beyond that, it is a generally cool feature that can be useful at times, and it would be nice if it could find its way to the general wayland ecosystems by means of a proper protocol. The only other compositor that seems to provide something like this up to now is wayfire with its `wrot` plugin https://github.com/WayfireWM/wayfire/wiki/Configuration#window-rotate, that however is supposedly also capable of 3D transformations.
https://gitlab.freedesktop.org/wayland/weston/-/issues/799
Bad pointer address causes weston crash
2023-08-14T15:48:49Z
Jamie Randall
Bad pointer address causes weston crash
I've got an app that uses a webkitgtk based browser that runs on our LCD display.
I can sometimes start up the app and all works well for hours with the app running and LCD behaving as expected.
Other times, the browser and app quits - o...
I've got an app that uses a webkitgtk based browser that runs on our LCD display.
I can sometimes start up the app and all works well for hours with the app running and LCD behaving as expected.
Other times, the browser and app quits - often within seconds or minutes of launching.
When weston gets killed, the display itself may be updating due to what's on the browser, but it's not being used otherwise.
I first thought I might be running out of memory, but I've got couple hundred megabytes free as far as I can tell. I did try to increase galcore continuous memory from 32M to 64M, but that didn't help.
I also used the weston log, with logging scopes log, proto, drm_backend but I didn't get any useful information from the crash.
With strace I think I've determined that it's the weston process that quits with a SIGSEGV signal.
From the snippet below, it looks like a memory access error at address 0x10 during a g2d_alloc call. Am I reading that right?
Can anyone suggest a way to debug further so that I can solve this problem?
Thanks!
Architecture arm64 with linux build from Yocto Kirkstone.
Snippet from weston.log to show version and kernel version
```
[19:37:52.551] weston 10.0.0
https://wayland.freedesktop.org
Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
Build: lf-5.15.32-2.0.0
[19:37:52.551] Command line: /usr/bin/weston --debug -l log,proto,drm-backend --log=/run/user/0/weston.log --modules=systemd-n
otify.so
[19:37:52.551] OS: Linux, 5.15.32+g1ce8a2b83886, #1 SMP PREEMPT Tue Jun 7 02:34:46 UTC 2022, aarch64
[19:37:52.551] Flight recorder: enabled
[19:37:52.552] Using config file '/etc/xdg/weston/weston.ini'
[19:37:52.553] Output repaint window is 16 ms maximum.
[19:37:52.554] Loading module '/usr/lib/libweston-10/drm-backend.so'
[19:37:52.564] initializing drm backend
[19:37:52.564] Trying logind launcher...
[19:37:52.581] logind: session control granted
[19:37:52.597] using /dev/dri/card1
[19:37:52.597] DRM: supports atomic modesetting
[19:37:52.597] DRM: does not support GBM modifiers
[19:37:52.597] DRM: supports picture aspect ratio
[19:37:52.598] Loading module '/usr/lib/libweston-10/g2d-renderer.so'
[19:37:52.654] event0 - 30370000.snvs:snvs-powerkey: is tagged by udev as: Keyboard
[19:37:52.654] event0 - 30370000.snvs:snvs-powerkey: device is a keyboard
[19:37:52.664] event1 - fts_ts: is tagged by udev as: Touchscreen
[19:37:52.666] event1 - fts_ts: device is a touch device
[19:37:52.710] libinput: configuring device "30370000.snvs:snvs-powerkey".
[19:37:52.710] Touchscreen - fts_ts - /sys/devices/platform/soc@0/30800000.bus/30a40000.i2c/i2c-2/2-0038/input/input1/event1
[19:37:52.710] libinput: configuring device "fts_ts".
[19:37:52.710] input device event1 has no enabled output associated (none named), skipping calibration for now.
[19:37:52.710] DRM: head 'DSI-1' updated, connector 35 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[19:37:52.711] DRM: head 'DSI-1' found, connector 35 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
[19:37:52.712] Registered plugin API 'weston_drm_output_api_v1' of size 24
[19:37:52.712] Color manager: no-op
[19:37:52.712] Module '/usr/lib/libgbm.so' already loaded
[19:37:52.712] Output 'DSI-1' using color profile: built-in default sRGB SDR profile
[19:37:52.716] Create File /run/user/0/use-g2d-renderer
[19:37:52.716] Output DSI-1 (crtc 33) video modes:
720x1280@60.0, preferred, current, 59.8 MHz
[19:37:52.716] associating input device event0 with output DSI-1 (none by udev)
[19:37:52.716] associating input device event1 with output DSI-1 (none by udev)
[19:37:52.717] Output 'DSI-1' enabled with head(s) DSI-1
[19:37:52.717] Compositor capabilities:
arbitrary surface rotation: yes
screen capture uses y-flip: yes
cursor planes: yes
arbitrary resolutions: no
view mask clipping: yes
explicit sync: yes
color operations: no
presentation clock: CLOCK_MONOTONIC, id 1
presentation clock resolution: 0.000000001 s
[19:37:52.718] Loading module '/usr/lib/weston/desktop-shell.so'
[19:37:52.723] launching '/usr/libexec/weston-keyboard'
[19:37:52.725] Warning: support for deprecated wl_shell interface is enabled. Please migrate legacy clients to xdg-shell.
[19:37:52.727] Loading module '/usr/lib/weston/screen-share.so'
[19:37:52.729] Loading module '/usr/lib/weston/systemd-notify.so'
[19:37:52.730] info: add 1 socket(s) provided by systemd
[19:37:52.730] launching '/usr/libexec/weston-desktop-shell'
```
Snippet from strace:
```
write(4, "[atomic] drmModeAtomicCommit\n", 29) = 29
write(4, "[repaint] flushed pending_state "..., 47) = 47
epoll_pwait(5, [{events=EPOLLIN, data={u32=3678100672, u64=187650799262912}}], 32, -1, NULL, 8) = 1
recvmsg(43, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\25\0\0\0\1\0\24\0\33\0\0\0\0\0\0\0\0\0\0\0\25\0\0\0\10\0\f\0\1\0\0\0"..., iov_len=2580}, {iov_base="", iov_len=1516}], msg_iovlen=2, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 132
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(4, "[2023-08-11 18:05:02.641][proto]"..., 99) = 99
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(4, "[2023-08-11 18:05:02.641][proto]"..., 92) = 92
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(4, "[2023-08-11 18:05:02.641][proto]"..., 96) = 96
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(4, "[2023-08-11 18:05:02.641][proto]"..., 95) = 95
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(4, "[2023-08-11 18:05:02.642][proto]"..., 93) = 93
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(4, "[2023-08-11 18:05:02.642][proto]"..., 110) = 110
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(4, "[2023-08-11 18:05:02.642][proto]"..., 101) = 101
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
write(4, "[2023-08-11 18:05:02.642][proto]"..., 81) = 81
ioctl(17, _IOC(_IOC_NONE, 0x75, 0x30, 0), 0xfffffbf95078) = 0
ioctl(17, _IOC(_IOC_NONE, 0x75, 0x30, 0), 0xfffffbf95078) = 0
ioctl(17, _IOC(_IOC_NONE, 0x75, 0x30, 0), 0xfffffbf94cc8) = 0
ioctl(17, _IOC(_IOC_NONE, 0x75, 0x30, 0), 0xfffffbf94d38) = 0
ioctl(17, _IOC(_IOC_NONE, 0x75, 0x30, 0), 0xfffffbf95028) = 0
write(2, "g2d_alloc: alloc memory fail wit"..., 48) = 48
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x10} ---
+++ killed by SIGSEGV +++
```
https://gitlab.freedesktop.org/wayland/weston/-/issues/798
weston-launch
2023-08-11T07:19:28Z
jax wang
weston-launch
Hi everyone, I try to compile weston9.0.0 for my machine.
And now when I launch `weston-launch`, it shows
> weston: weston-launch must be run from a virtual terminal
I launch `weston-launch` by serial and ssh, it's the same.
I don't fi...
Hi everyone, I try to compile weston9.0.0 for my machine.
And now when I launch `weston-launch`, it shows
> weston: weston-launch must be run from a virtual terminal
I launch `weston-launch` by serial and ssh, it's the same.
I don't find the available information in the network, what happened to it?
Thank you,
Best regards.
https://gitlab.freedesktop.org/wayland/weston/-/issues/797
Weston 12 segfaults when running "x11perf -reps 1 -repeat 1 -all" under XWayland
2023-08-11T11:22:44Z
Brendan King
Weston 12 segfaults when running "x11perf -reps 1 -repeat 1 -all" under XWayland
Running "x11perf -reps 1 -repeat 1 -all" with XWayland and Weston 12.0.1 or 12.0.2 quickly results in a segfault in Weston, although the tests continue to run until completion, as the XWayland server remains active, despite the crash. T...
Running "x11perf -reps 1 -repeat 1 -all" with XWayland and Weston 12.0.1 or 12.0.2 quickly results in a segfault in Weston, although the tests continue to run until completion, as the XWayland server remains active, despite the crash. The exact segfault varies from run to run, but I've attached one example, from Weston 12.0.2 (gdb.txt). I ran Weston 12.0.2 under valgrind, and have attached an edited log, showing a large number of invalid reads and writes (valgrind.out.txt).
The problem appears to be due to commit 87881e2cf621c95fd2d583474161a7167ad2541f ("xwm: Add support for xwayland_shell_v1"). Reverting that change for Weston 12.0.1 stopped the segfaults (I didn't retry the workaround for Weston 12.0.2). I've also attached a workaround that stops the segfaults with the commit in place (0001-xwayland-fix-segfault-when-running-X11-perf.patch). As I haven't taken the time to understand the xwayland/window-manager.c code fully, I realise the workaround may not be a proper fix.
[gdb.txt](/uploads/e8963923ae6490e3ccae7ea5d45b5613/gdb.txt)
[valgrind.out.txt](/uploads/37e009dfd9fc1b95afb87eee8d473dc8/valgrind.out.txt)
[0001-xwayland-fix-segfault-when-running-X11-perf.patch](/uploads/7a03dd7de865f85aa38b2e0228651e89/0001-xwayland-fix-segfault-when-running-X11-perf.patch)
https://gitlab.freedesktop.org/wayland/weston/-/issues/796
Xwayland test intermittently fails with timeout
2023-08-09T11:58:14Z
Daniel Stone
daniel@fooishbar.org
Xwayland test intermittently fails with timeout
Sometimes Xwayland fails with a timeout. It's not really clear why, but for some reason the client doesn't seem to get its `PROPERTY_NOTIFY` back, so presumably there's a race ... somewhere.
Compositor log:
```
[12:49:31.079] created w...
Sometimes Xwayland fails with a timeout. It's not really clear why, but for some reason the client doesn't seem to get its `PROPERTY_NOTIFY` back, so presumably there's a race ... somewhere.
Compositor log:
```
[12:49:31.079] created wm, root 1298
[2023-08-09 12:49:31.080][xwm-wm-x11] XCB_CREATE_NOTIFY (window 2097153, at (0, 0), width 10, height 10, ours)
[2023-08-09 12:49:31.080][xwm-wm-x11] XCB_CREATE_NOTIFY (window 2097154, at (0, 0), width 8192, height 8192, ours)
[2023-08-09 12:49:31.082][xwm-wm-x11] XCB_CREATE_NOTIFY (window 2097191, at (0, 0), width 10, height 10, ours)
[2023-08-09 12:49:31.082][xwm-wm-x11] XCB_CREATE_NOTIFY (window 4194305, at (100, 100), width 100, height 100)
handle_event_set_pending: Added pending event id 28 - name PROPERTY_NOTIFY, wid 4194305
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Unsupported maximum keycode 708, clipping.
> X11 cannot support keycodes above 255.
Errors from xkbcomp are not fatal to the X server
[2023-08-09 12:49:31.099][xwm-wm-x11] XCB_MAPPING_NOTIFY
[2023-08-09 12:49:31.099][xwm-wm-x11] XCB_MAPPING_NOTIFY
[2023-08-09 12:49:31.100][xwm-wm-x11] XCB_PROPERTY_NOTIFY: window 4194305, _NET_WM_NAME: STRING/8, length 20 (value_len 20): "Xwayland Test Window"
```
Test backtrace:
```
(gdb) t a a bt
Thread 2 (Thread 0x7f44f592b6c0 (LWP 699519) "client"):
#0 0x00007f44f9af7450 in ppoll () at /lib64/libc.so.6
#1 0x00007f44fa091302 in ppoll () at /lib64/libasan.so.8
#2 0x00000000002266b0 in poll_for_event (conn=0x62a00000c200) at ../tests/xcb-client-helper.c:393
#3 0x0000000000226e0f in handle_events_x11 (window=0x60e000007120) at ../tests/xcb-client-helper.c:481
#4 0x0000000000212d64 in handle_events_and_check_flags (win=0x60e000007120, flag=PROPERTY_NAME) at ../tests/xcb-client-helper.h:193
#5 0x00000000002137cc in xwayland_client_test (_wet_suite_data=0x611000000918) at ../tests/xwayland-test.c:135
#6 0x000000000021362d in wrapxwayland_client_test (_wet_suite_data=0x611000000918, data=0x0) at ../tests/xwayland-test.c:115
#7 0x0000000000222fcd in run_test (suite_data=0x611000000918, fixture_nr=1, t=0x210e80 <testxwayland_client_test>, data=0x0, iteration=0) at ../tests/weston-test-runner.c:169
#8 0x0000000000223688 in run_case (suite_data=0x611000000918, t=0x210e80 <testxwayland_client_test>, test_data=0x0, iteration=0) at ../tests/weston-test-runner.c:284
#9 0x000000000022340f in for_each_test_case (data=0x611000000918, cb=0x2234f2 <run_case>) at ../tests/weston-test-runner.c:242
#10 0x000000000022395e in testsuite_run (data=0x611000000918) at ../tests/weston-test-runner.c:319
#11 0x00007f44f83188cd in client_thread_routine (data_=0x611000000918) at ../tests/weston-test.c:639
#12 0x00007f44f9a7e907 in start_thread () at /lib64/libc.so.6
#13 0x00007f44f9b04870 in clone3 () at /lib64/libc.so.6
Thread 1 (Thread 0x7f44f8d4d940 (LWP 699514) "test-xwayland"):
#0 0x00007f44f9b04c72 in epoll_wait () at /lib64/libc.so.6
#1 0x00007f44f9d7eae2 in wl_event_loop_dispatch (loop=0x60d000000450, timeout=timeout@entry=-1) at ../src/event-loop.c:1004
#2 0x00007f44f9d7c8a5 in wl_display_run (display=0x611000000b80) at ../src/wayland-server.c:1493
#3 0x00007f44f9fe3cf6 in wet_main (argc=1, argv=0x60e0000003c0, test_data=0x7f44f6f00140) at ../compositor/main.c:4244
#4 0x0000000000220faf in execute_compositor (setup=0x7f44f6f00030, data=0x611000000918) at ../tests/weston-test-fixture-compositor.c:410
#5 0x00000000002248c1 in weston_test_harness_execute_as_client (harness=0x611000000900, setup=0x7f44f6f00030) at ../tests/weston-test-runner.c:536
#6 0x0000000000212f06 in fixture_setup (harness=0x611000000900) at ../tests/xwayland-test.c:63
#7 0x0000000000212f81 in fixture_setup_run_ (harness=0x611000000900, arg_=0x0) at ../tests/xwayland-test.c:65
#8 0x0000000000224ee1 in main (argc=1, argv=0x7ffd74051968) at ../tests/weston-test-runner.c:684
```
https://gitlab.freedesktop.org/wayland/weston/-/issues/795
Qt program run faild on weston8
2023-08-09T09:50:13Z
jax wang
Qt program run faild on weston8
Hi everyone,
I have a custom QT program. It runs normally at gnome desktop, but when I run it at weston8 using `./xxx -platform wayland`, it shows the following message
> wl_display@1: error 1: invalid arguments for xdg_toplevel@21.resi...
Hi everyone,
I have a custom QT program. It runs normally at gnome desktop, but when I run it at weston8 using `./xxx -platform wayland`, it shows the following message
> wl_display@1: error 1: invalid arguments for xdg_toplevel@21.resize
> The Wayland connection experienced a fatal error: Invalid argument
When I open DEBUG option, it shows
```
[3618367.997] -> wl_display@1.get_registry(new id wl_registry@2)
[3618368.127] -> wl_display@1.sync(new id wl_callback@3)
[3618369.335] wl_display@1.delete_id(3)
[3618369.368] wl_registry@2.global(1, "wl_compositor", 4)
[3618369.400] -> wl_registry@2.bind(1, "wl_compositor", 3, new id [unknown]@4)
[3618369.440] wl_registry@2.global(2, "wl_subcompositor", 1)
[3618369.465] -> wl_registry@2.bind(2, "wl_subcompositor", 1, new id [unknown]@5)
[3618369.497] wl_registry@2.global(3, "wp_viewporter", 1)
[3618369.520] wl_registry@2.global(4, "zxdg_output_manager_v1", 2)
[3618369.551] -> wl_registry@2.bind(4, "zxdg_output_manager_v1", 2, new id [unknown]@6)
[3618369.589] -> wl_display@1.sync(new id wl_callback@7)
[3618369.603] wl_registry@2.global(5, "wp_presentation", 1)
[3618369.625] wl_registry@2.global(6, "zwp_relative_pointer_manager_v1", 1)
[3618369.648] wl_registry@2.global(7, "zwp_pointer_constraints_v1", 1)
[3618369.672] wl_registry@2.global(8, "zwp_input_timestamps_manager_v1", 1)
[3618369.695] wl_registry@2.global(9, "wl_data_device_manager", 3)
[3618369.722] -> wl_registry@2.bind(9, "wl_data_device_manager", 1, new id [unknown]@8)
[3618369.752] wl_registry@2.global(10, "wl_shm", 1)
[3618369.777] -> wl_registry@2.bind(10, "wl_shm", 1, new id [unknown]@9)
[3618369.811] wl_registry@2.global(11, "wayland_buffer_backend", 4)
[3618369.835] wl_registry@2.global(12, "wl_seat", 7)
[3618369.863] -> wl_registry@2.bind(12, "wl_seat", 5, new id [unknown]@10)
[3618369.901] -> wl_data_device_manager@8.get_data_device(new id wl_data_device@11, wl_seat@10)
[3618369.923] wl_registry@2.global(13, "zwp_linux_dmabuf_v1", 3)
[3618369.944] wl_registry@2.global(14, "weston_direct_display_v1", 1)
[3618369.968] wl_registry@2.global(15, "gbm_buffer_backend", 1)
[3618369.991] wl_registry@2.global(16, "weston_qti_extn", 1)
[3618370.020] wl_registry@2.global(17, "zwp_linux_explicit_synchronization_v1", 2)
[3618370.044] wl_registry@2.global(18, "weston_content_protection", 1)
[3618370.065] wl_registry@2.global(19, "wl_output", 3)
[3618370.093] -> wl_registry@2.bind(19, "wl_output", 2, new id [unknown]@12)
[3618370.134] -> zxdg_output_manager_v1@6.get_xdg_output(new id zxdg_output_v1@13, wl_output@12)
[3618370.159] wl_registry@2.global(20, "zwp_input_panel_v1", 1)
[3618370.181] wl_registry@2.global(21, "zwp_input_method_v1", 1)
[3618370.204] wl_registry@2.global(22, "zwp_text_input_manager_v1", 1)
[3618370.228] wl_registry@2.global(23, "xdg_wm_base", 1)
[3618370.251] wl_registry@2.global(24, "zxdg_shell_v6", 1)
[3618370.274] wl_registry@2.global(25, "wl_shell", 1)
[3618370.298] wl_registry@2.global(26, "weston_desktop_shell", 1)
[3618370.321] wl_registry@2.global(27, "weston_screenshooter", 1)
[3618370.344] wl_callback@3.done(613)
[3618371.500] wl_display@1.delete_id(7)
[3618371.528] wl_callback@7.done(613)
[3618371.556] wl_shm@9.format(0)
[3618371.579] wl_shm@9.format(1)
[3618371.589] wl_shm@9.format(909199186)
[3618371.601] wl_shm@9.format(842093913)
[3618371.611] wl_shm@9.format(842094158)
[3618371.621] wl_shm@9.format(1448695129)
[3618371.631] wl_seat@10.capabilities(2)
[3618371.661] -> wl_seat@10.get_keyboard(new id wl_keyboard@7)
[3618371.678] wl_seat@10.name("default")
[3618371.690] wl_output@12.geometry(0, 0, 720, 1280, 0, "unknown", "unknown", 0)
[3618371.745] wl_output@12.scale(1)
[3618371.756] wl_output@12.mode(1, 720, 1280, 60000)
[3618371.802] wl_output@12.done()
[3618371.811] zxdg_output_v1@13.logical_position(0, 0)
[3618371.827] zxdg_output_v1@13.logical_size(720, 1280)
[3618371.842] zxdg_output_v1@13.name("DSI-32")
[3618371.853] zxdg_output_v1@13.done()
[3618374.895] -> wl_display@1.get_registry(new id wl_registry@3)
[3618374.928] -> wl_display@1.sync(new id wl_callback@14)
[3618378.545] wl_display@1.delete_id(14)
[3618378.583] wl_registry@3.global(1, "wl_compositor", 4)
[3618378.607] wl_registry@3.global(2, "wl_subcompositor", 1)
[3618378.638] wl_registry@3.global(3, "wp_viewporter", 1)
[3618378.659] wl_registry@3.global(4, "zxdg_output_manager_v1", 2)
[3618378.681] wl_registry@3.global(5, "wp_presentation", 1)
[3618378.702] wl_registry@3.global(6, "zwp_relative_pointer_manager_v1", 1)
[3618378.723] wl_registry@3.global(7, "zwp_pointer_constraints_v1", 1)
[3618378.745] wl_registry@3.global(8, "zwp_input_timestamps_manager_v1", 1)
[3618378.765] wl_registry@3.global(9, "wl_data_device_manager", 3)
[3618378.787] wl_registry@3.global(10, "wl_shm", 1)
[3618378.808] wl_registry@3.global(11, "wayland_buffer_backend", 4)
[3618378.829] wl_registry@3.global(12, "wl_seat", 7)
[3618378.849] wl_registry@3.global(13, "zwp_linux_dmabuf_v1", 3)
[3618378.879] -> wl_registry@3.bind(13, "zwp_linux_dmabuf_v1", 3, new id [unknown]@15)
[3618378.950] wl_registry@3.global(14, "weston_direct_display_v1", 1)
[3618378.971] wl_registry@3.global(15, "gbm_buffer_backend", 1)
[3618378.992] wl_registry@3.global(16, "weston_qti_extn", 1)
[3618379.021] wl_registry@3.global(17, "zwp_linux_explicit_synchronization_v1", 2)
[3618379.042] wl_registry@3.global(18, "weston_content_protection", 1)
[3618379.064] wl_registry@3.global(19, "wl_output", 3)
[3618379.085] wl_registry@3.global(20, "zwp_input_panel_v1", 1)
[3618379.106] wl_registry@3.global(21, "zwp_input_method_v1", 1)
[3618379.128] wl_registry@3.global(22, "zwp_text_input_manager_v1", 1)
[3618379.149] wl_registry@3.global(23, "xdg_wm_base", 1)
[3618379.171] wl_registry@3.global(24, "zxdg_shell_v6", 1)
[3618379.217] wl_registry@3.global(25, "wl_shell", 1)
[3618379.238] wl_registry@3.global(26, "weston_desktop_shell", 1)
[3618379.260] wl_registry@3.global(27, "weston_screenshooter", 1)
[3618379.281] wl_callback@14.done(613)
[3618379.299] -> zwp_linux_dmabuf_v1@15.destroy()
[3618379.318] -> wl_display@1.get_registry(new id wl_registry@14)
[3618379.332] -> wl_display@1.sync(new id wl_callback@16)
[3618381.044] wl_display@1.delete_id(15)
[3618381.084] wl_display@1.delete_id(16)
[3618381.096] wl_registry@14.global(1, "wl_compositor", 4)
[3618381.117] wl_registry@14.global(2, "wl_subcompositor", 1)
[3618381.143] wl_registry@14.global(3, "wp_viewporter", 1)
[3618381.164] wl_registry@14.global(4, "zxdg_output_manager_v1", 2)
[3618381.185] wl_registry@14.global(5, "wp_presentation", 1)
[3618381.206] wl_registry@14.global(6, "zwp_relative_pointer_manager_v1", 1)
[3618381.227] wl_registry@14.global(7, "zwp_pointer_constraints_v1", 1)
[3618381.249] wl_registry@14.global(8, "zwp_input_timestamps_manager_v1", 1)
[3618381.270] wl_registry@14.global(9, "wl_data_device_manager", 3)
[3618381.291] wl_registry@14.global(10, "wl_shm", 1)
[3618381.313] -> wl_registry@14.bind(10, "wl_shm", 1, new id [unknown]@15)
[3618381.343] wl_registry@14.global(11, "wayland_buffer_backend", 4)
[3618381.364] wl_registry@14.global(12, "wl_seat", 7)
[3618381.385] wl_registry@14.global(13, "zwp_linux_dmabuf_v1", 3)
[3618381.407] wl_registry@14.global(14, "weston_direct_display_v1", 1)
[3618381.429] wl_registry@14.global(15, "gbm_buffer_backend", 1)
[3618381.450] wl_registry@14.global(16, "weston_qti_extn", 1)
[3618381.471] wl_registry@14.global(17, "zwp_linux_explicit_synchronization_v1", 2)
[3618381.493] wl_registry@14.global(18, "weston_content_protection", 1)
[3618381.514] wl_registry@14.global(19, "wl_output", 3)
[3618381.535] wl_registry@14.global(20, "zwp_input_panel_v1", 1)
[3618381.557] wl_registry@14.global(21, "zwp_input_method_v1", 1)
[3618381.578] wl_registry@14.global(22, "zwp_text_input_manager_v1", 1)
[3618381.599] wl_registry@14.global(23, "xdg_wm_base", 1)
[3618381.621] wl_registry@14.global(24, "zxdg_shell_v6", 1)
[3618381.642] wl_registry@14.global(25, "wl_shell", 1)
[3618381.663] wl_registry@14.global(26, "weston_desktop_shell", 1)
[3618381.684] wl_registry@14.global(27, "weston_screenshooter", 1)
[3618381.706] wl_callback@16.done(613)
[3618381.717] -> wl_display@1.sync(new id wl_callback@16)
[3618382.004] wl_display@1.delete_id(16)
[3618382.022] wl_shm@15.format(0)
[3618382.033] wl_shm@15.format(1)
[3618382.043] wl_shm@15.format(909199186)
[3618382.052] wl_shm@15.format(842093913)
[3618382.069] wl_shm@15.format(842094158)
[3618382.080] wl_shm@15.format(1448695129)
[3618382.090] wl_callback@16.done(613)
[3618440.707] -> wl_compositor@4.create_surface(new id wl_surface@16)
[3618442.361] -> wl_compositor@4.create_region(new id wl_region@17)
[3618442.410] -> wl_region@17.add(0, 0, 239, 84)
[3618442.442] -> wl_surface@16.set_opaque_region(wl_region@17)
[3618442.453] -> wl_region@17.destroy()
[3618442.530] -> wl_compositor@4.create_region(new id wl_region@18)
[3618442.548] -> wl_region@18.add(231, 558, 239, 84)
[3618442.575] -> wl_surface@16.set_opaque_region(wl_region@18)
[3618442.585] -> wl_region@18.destroy()
[3618443.973] -> wl_registry@2.bind(23, "xdg_wm_base", 1, new id [unknown]@19)
[3618444.069] -> xdg_wm_base@19.get_xdg_surface(new id xdg_surface@20, wl_surface@16)
[3618444.110] -> xdg_surface@20.get_toplevel(new id xdg_toplevel@21)
[3618444.144] -> xdg_toplevel@21.set_title("TEST for WESTON")
[3618444.170] -> xdg_toplevel@21.set_app_id("test for weston")
[3618444.184] -> wl_surface@16.set_buffer_scale(1)
[3618444.715] -> wl_surface@16.set_buffer_transform(0)
[3618444.742] -> wl_surface@16.commit()
[3618444.752] wl_keyboard@7.repeat_info(40, 400)
[3618444.771] wl_keyboard@7.keymap(1, fd 4, 47298)
[3618446.094] -> xdg_surface@20.set_window_geometry(0, 0, 245, 117)
[3618451.571] wl_display@1.delete_id(17)
[3618451.612] wl_display@1.delete_id(18)
[3618451.623] xdg_toplevel@21.configure(0, 0, array)
[3618451.649] xdg_surface@20.configure(614)
[3618451.698] -> xdg_surface@20.set_window_geometry(0, 0, 245, 117)
[3618451.763] -> xdg_toplevel@21.set_min_size(239, 84)
[3618451.783] -> xdg_toplevel@21.set_max_size(239, 84)
[3618451.798] -> xdg_surface@20.ack_configure(614)
[3618452.040] -> wl_shm@9.create_pool(new id wl_shm_pool@18, fd 7, 114660)
[3618452.078] -> wl_shm_pool@18.create_buffer(new id wl_buffer@17, 0, 245, 117, 980, 0)
[3618454.107] -> wl_surface@16.damage(0, 0, 251, 30)
[3618454.159] -> wl_surface@16.damage(0, 30, 3, 117)
[3618454.186] -> wl_surface@16.damage(248, 30, 3, 117)
[3618454.216] -> wl_surface@16.damage(0, 147, 251, 3)
[3618454.336] -> wl_surface@16.frame(new id wl_callback@22)
[3618454.373] -> wl_surface@16.attach(wl_buffer@17, 0, 0)
[3618454.396] -> wl_surface@16.damage(3, 30, 239, 84)
[3618454.427] -> wl_surface@16.commit()
[3618454.460] wl_display@1.error(wl_display@1, 1, "invalid arguments for xdg_toplevel@21.resize")
```
BTW
The system is ubuntu20 for aarch64
Weston's version is 8.0.0
The Display resolution is 720x1280