[BUG] hwcomposer.waydroid.so crashes on startup on both Sway and GNOME — two distinct, environment-independent failures, both confirmed unrelated to GPU vendor/SELinux/config state
Describe the bug
Environment
- Distro: Fedora 43 (x86_64)
- Waydroid: 1.6.3-1.fc43 (from Fedora updates repo — latest available)
- Kernel: 7.2.5-100.fc43.x86_64
- Mesa: 25.3.6-3.fc43
- GPU: Intel Tiger Lake-H GT1 [UHD Graphics] (i915)
- vendor_type: MAINLINE
- ROM: LineageOS, GAPPS, vendor MAINLINE — system image built 2026-04-03, vendor image built 2026-04-28 (both current per OTA channel at time of report; already includes #63 "Rework/Cleanup hwcomposer", merged 2025-07-16)
- waydroid.prop (relevant): gralloc.gbm.device=/dev/dri/renderD128 ro.hardware.egl=mesa ro.hardware.gralloc=gbm ro.hardware.vulkan=intel ro.opengles.version=196610
Tested under two compositors, both fail, with different crash signatures:
Signature 1 — Sway 1.11 / wlroots 0.19.3
hwcomposer: Waydroid hwcomposer services are ready. wayland-hwc: [destroyed object]: error 5: Tried to set invalid xdg-surface geometry hwcomposer: *** void *hwc_wayland_thread(void ): Wayland client was disconnected: Unknown error -1 DEBUG: Cmdline: /vendor/bin/hw/[email protected] DEBUG: #01 pc 000000000004701f /vendor/lib64/hw/hwcomposer.waydroid.so (hwc_wayland_thread(void)+95)
After this, SurfaceFlinger also fails to attach a composer, and hwservicemanager/servicemanager loop forever (~1/sec) trying to lazy-restart both services: hwservicemanager: Tried to start [email protected]::IComposer/default as a lazy HAL... Unable to set property "ctl.interface_start"... error code: 0x20 servicemanager: Tried to start aidl service SurfaceFlinger as a lazy service... error code: 0x20 No display ever renders. waydroid status reports Session: RUNNING / Container: RUNNING but IP address: UNKNOWN indefinitely.
Signature 2 — GNOME 49 / Mutter (Wayland session)
hwcomposer: eglInitialize: EGL_SUCCESS hwcomposer: eglChooseConfig: EGL_SUCCESS hwcomposer: eglCreateContext: EGL_SUCCESS hwcomposer: eglCreatePbufferSurface: EGL_SUCCESS EGL-MAIN: dri2_image_front allocation failed hwcomposer: eglMakeCurrent: EGL_SUCCESS hwcomposer: *** void *hwc_wayland_thread(void *): Wayland client was disconnected: Unknown error -1 Same downstream result: composer HAL dies, SurfaceFlinger/hwservicemanager loop forever, no display, IP address: UNKNOWN forever.
Note: EGL context creation itself fully succeeds (eglInitialize/eglChooseConfig/eglCreateContext/eglCreatePbufferSurface/eglMakeCurrent all report EGL_SUCCESS) — only the front-buffer image allocation for presenting to the compositor fails.
Reproduction matrix (ruling out environment causes)
I went through an extensive isolation process before concluding this isn't local misconfiguration:
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────┐ │ Variable changed │ Result │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────┤ │ Sway output scale: fractional (1.15) → forced integer (1.0) │ Signature 1, unchanged │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────┤ │ Sway monitors: dual (HDMI+eDP) → single (eDP only) │ Signature 1, unchanged │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────┤ │ GNOME with NVIDIA (RTX A3000 Mobile, hybrid mode) driving a second monitor over HDMI │ Signature 2 │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────┤ │ GNOME with that HDMI monitor unplugged, NVIDIA driver still loaded │ Signature 2, unchanged │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────┤ │ GNOME with NVIDIA driver fully removed (envycontrol -s integrated + reboot; confirmed via lsmod/lspci — single Intel GPU only) │ Signature 2, unchanged │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────┤ │ Full waydroid init -f reinitialize (fresh config, confirmed-current cached system/vendor images) │ Signature 2, unchanged │ ├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼────────────────────────┤ │ ausearch -m avc across full day, all waydroid/lxc/composer/render-node activity │ Zero denials logged │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────────────────────┘
So: not fractional scaling, not monitor count, not GPU vendor/hybrid-graphics, not SELinux, not stale local config. Both failures reproduce deterministically on a clean, single-GPU, freshly-initialized install.
Related upstream issues
- #74 / PR #76 (output-scale handling on wlroots, still open as of 2026-07-31) — plausible related area for Signature 1, but my scale-forcing test above shows it isn't the sole trigger, since the crash is identical at integer scale.
- #63 (merged 2025-07-16, author notes primary testing was on Sway) is already included in the vendor image used here, so this isn't a case of running stale code.
Ask
Both signatures point at hwcomposer.waydroid.so's Wayland client failing to hand a usable buffer to the compositor on first frame — via a protocol-level rejection on wlroots (Signature 1) and a DRI2 image allocation failure on Mesa/Mutter (Signature 2). Given both are compositor-agnostic in their reproduction matrix, they may share a common root cause in how hwcomposer.waydroid.so negotiates/creates its first presentable buffer. Happy to provide full waydroid --details-to-stdout logcat captures, waydroid.cfg/waydroid.prop, and LXC config on request.
Waydroid version
1.6.3-1.fc43 (from Fedora updates repo — latest available)
Device
Linux Desktop
Operating System
Fedora 43 (x86_64)
Kernel version
7.2.5-100.fc43.x86_64
Desktop Environment
Sway 1.11 / wlroots 0.19.3 and GNOME 49 / Mutter (Wayland session)
GPU
Nvidia RTX A3000 6GB
Logs
/var/lib/waydroid/waydroid.cfg
/var/lib/waydroid/waydroid.prop
/var/lib/waydroid/waydroid_base.prop
/var/lib/waydroid/waydroid.log
sudo waydroid shell -- logcat -d | tee logcat.txt
sudo dmesg | tee dmesg.txt
Source: waydroid/waydroid