Repository navigation
Fix Weston crash on mouse move on Raspberry Pi - #13
Open
rahul-thakoor wants to merge 1 commit into
Open
rahul-thakoor wants to merge 1 commit into
rahul-thakoor wants to merge 1 commit into
Conversation
Debian trixie's Weston 14.0.2 aborts with assert(fb) in drm_output_find_plane_for_view (state-propose.c) when the mouse moves on a Raspberry Pi. The assert was removed upstream after 14.x. Trixie has no newer Weston, so build 16.0.1 from source in a separate stage. - Build only the DRM backend, GL renderer, kiosk and desktop shells and weston-debug, install them under /usr/local and copy them into the runtime image. - Take wayland-protocols >= 1.46 from trixie-backports; it is only needed at build time. - Keep runtime libraries (glibc, Mesa, libdrm, libinput, ...) as trixie packages, and fail the build if a Weston binary has an unresolved library. - Pass dpkg-buildflags to meson with DEB_BUILD_MAINT_OPTIONS=hardening=+all. Fixes #9 Change-type: minor Signed-off-by: rahul-thakoor <13220877+rahul-thakoor@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9.
On Raspberry Pi, moving a USB mouse crashes Weston 14 with
Assertion 'fb' failedindrm_output_find_plane_for_view(state-propose.c). The assert was removed upstream ind3ead778,
which first shipped after 14.x; Debian trixie only has 14.0.2.
This builds Weston 16.0.1 from source in a separate build stage. Only what the block uses is
built: the DRM backend, GL renderer, kiosk and desktop shells, and weston-debug. Runtime
libraries (glibc, Mesa, libdrm, libinput, ...) are still trixie packages.
Tested
Each device ran the display block from this branch with the browser block's latest release.
A USB mouse was plugged in after Weston started and moved across the screen, including over
the browser. Weston kept running with no assertion (
restarts=0).Raspberry Pi 4 (DSI touchscreen + USB mouse)
Raspberry Pi 5 (HDMI + USB mouse)
Intel NUC (generic-amd64, DisplayPort + USB mouse)