`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.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 ?? ()
Edited by Paul Menzel