Crash when reconnecting display cord
While reconnecting HDMI cable on my device under test I got Weston crashing with following logs:
[3913748.221] -> wl_viv@15.create_buffer(new id wl_buffer@47, 1920, 1080, 7680, 212, 4456452, 67, 6, 8355840, 68, 6, 16384, fd 18)
[3913752.353] wl_display@1.delete_id(21)
[3913752.532] wl_display@1.delete_id(41)
[3913752.570] wl_display@1.delete_id(29)
[3913752.595] wl_display@1.error(xdg_wm_base@17, 4, "Wrong configure serial: 0")
xdg_wm_base@17: error 4: Wrong configure serial: 0
The Wayland connection experienced a fatal error: Protocol error
Bigger log: hdmi-reconnect-weston-crash.md
Steps to reproduce:
#/bin/bash
loops=10
iters=10
l=1
while [ $l -le $loops ]
do
echo "Iteration: $l/$loops"
i=1
while [ $i -le $iters ]
do
echo "Reconnecting display: $i/$iters"
echo off > /sys/class/drm/card0-HDMI-A-1/status
sleep 0.5;
echo on > /sys/class/drm/card0-HDMI-A-1/status
sleep 0.5;
i=$((i + 1))
done
sleep 5;
l=$((l + 1))
done
In most of the cases it takes a minute or two to reproduce this issue with the script above.
Hardware/software info:
root@verdin-imx8mp-07174536:~# uname -a
Linux verdin-imx8mp-07174536 5.15.148-07074-gbfdbfb2c85fb-dirty #3 SMP PREEMPT Mon Jul 8 10:47:57 CEST 2024 aarch64 aarch64 aarch64 GNU/Linux
root@verdin-imx8mp-07174536:~# cat /etc/issue
TDX Wayland with XWayland 6.7.0-devel-20240701103314+build.0 (kirkstone) \n \l
Verdin-iMX8MP_Reference-Multimedia-Image
root@verdin-imx8mp-07174536:~# weston --version
weston 10.0.1
wayland-info
: wayland-info.md
Please let me know if you need further details.
Edited by Andrejs Cainikovs