#10333·lvgl

LVGL with lv_port_linux wayland.defaults fails

Author: rmk92Created Jul 5, 2026Updated Sep 9, 2026
LabelswaylandWaiting for author

LVGL version

v9.4 (or v9.3.x as per lv_port_linux)

Platform

Current up to date Debian Stable on x86 with Wayland/KDE

What happened?

When running lvglsim, the following is observed:

[Error] (0.000, +0) lv_wayland_init: Asserted at expression: shm_ready (Couldn't initialize wayland SHM) lv_wayland.c:257 lvglsim: /home/rmk/esp32/test/lv_port_linux/lvgl/src/drivers/wayland/lv_wayland.c:257: lv_wayland_init: Assertion `0' failed. Aborted (core dumped)

gdb reports the following trace:

#0 __pthread_kill_implementation (threadid=, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 #1 0x00007f994e1b09ff in __pthread_kill_internal (threadid=, signo=6) at ./nptl/pthread_kill.c:89 #2 0x00007f994e15bcc2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007f994e1444ac in __GI_abort () at ./stdlib/abort.c:77 #4 0x00007f994e144420 in __assert_fail_base (fmt=, assertion=, file=, line=257, function=) at ./assert/assert.c:118 #5 0x000055be19f34644 in lv_wayland_init () at /home/rmk/esp32/test/lv_port_linux/lvgl/src/drivers/wayland/lv_wayland.c:257 #6 0x000055be19f370e0 in lv_wayland_window_create (hor_res=800, ver_res=480, title=0x55be1a0616b1 "LVGL Simulator", close_cb=0x0) at /home/rmk/esp32/test/lv_port_linux/lvgl/src/drivers/wayland/lv_wl_window.c:89 #7 0x000055be19f0b8dc in init_wayland () at /home/rmk/esp32/test/lv_port_linux/src/lib/display_backends/wayland.c:94 #8 0x000055be19f0b207 in driver_backends_init_backend ( backend_name=0x55be1a061600 "WAYLAND") at /home/rmk/esp32/test/lv_port_linux/src/lib/driver_backends.c:181 #9 0x000055be19f0adfc in main (argc=1, argv=0x7fff63e9bb78) at /home/rmk/esp32/test/lv_port_linux/src/main.c:169

How to reproduce?

Clone lv_port_linux, copy config/wayland.defaults to lvgl.defaults, build, install and attempt to run lvglsim.