From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 59C76114C8 for ; Sun, 20 Jul 2025 08:21:05 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 15B42114C3; Sun, 20 Jul 2025 08:21:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) by atuin.qyliss.net (Postfix) with ESMTPS id 41375114BC for ; Sun, 20 Jul 2025 08:21:03 +0000 (UTC) Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 630671D0012B; Sun, 20 Jul 2025 04:21:02 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Sun, 20 Jul 2025 04:21:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1752999662; x=1753086062; bh=O++IYSp69t 9J9oNwS5DbYhW3WPz5ChffeccKTvIyQ3Q=; b=lpa/3mbPLTyhiYxt1DoSv6Htco 5rVjygOuvBxHIty/Z9UxNWB4gsT4xhYYqlYMFgzZ4uRoH2pmOnFwvt1mmlaiTXcj hQ/VMtdiuDMTvMT5OMvq31saaqALeA3OpG9/gueEdWBFb4MLAmrTceN/t8XGMzxY GFDgSv7+mgMpCdcD/sC3L4SMvAWVt2L6QnGjdpBA7dW3Pr3SBDxsC2yBum3IKM++ vIARqnz24NFwbp+NB3BfMS9MqynQW7v7SE4uxK6h6Dy4rH7/CULB7c6bDRwUBi1x WFSLc7SVM+m/zYyMQ6FiPhKAwL7DW8BBTU1yjnZV+7CJGnUxCQAAtuylXEIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1752999662; x=1753086062; bh=O++IYSp69t9J9oNwS5DbYhW3WPz5Chffecc KTvIyQ3Q=; b=DXT/le1IVoqnhYnBGeRhStf6n8vu0C2A33uQ3cECqdCXIQwEhP4 V4bmlhyF+ezM1vK6JE686qtxyTJfoV9j0he0RtySBFIcek2bo1YiXalom3J/Xg7B mVM5LRtm2DOGCtk1BYPHoPb/hr6+NrEBu2wWOIDZ2QB8mQNT0ojjImRiOxQnEujE wTQq1gnI2aJdJcjRlQbJbBkJsgsv70DO7eb2dtF/HggNRcx9sFVwtEgkSjlZm6u2 8hu77SoU7s7lg6M2Bf9Ixec3zsr70ix4GD7eMpOM86ic/fJ8HBpgh0DEyyUk45oD agdpbrD5szWy/pZfBysMhHm/Uh0hrjzBS9w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdeikeejudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefhvffujghffffkgggtsehgtderredttdejnecuhfhrohhmpeetlhihshhsrgcutfho shhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpefgtefgkeehff ejtedtueehgeefkeffledvieehheffjeeugffhveetleektdekgfenucffohhmrghinhep ghhithhhuhgsrdgtohhmpdhqvghmuhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihsshgrrdhishdpnhgspghrtghp thhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepuggvmhhiohgsvghnoh hurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlsehsphgvtghtrhhumhdq ohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 20 Jul 2025 04:21:01 -0400 (EDT) Received: by sf.qyliss.net (Postfix, from userid 1000) id 1B73A2C62CBC1; Sun, 20 Jul 2025 10:21:01 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour , Spectrum OS Development Subject: Re: "make run-qemu" gets Wayland protocol error In-Reply-To: <87cy9vjmtg.fsf@alyssa.is> References: <013e1c97-7fd7-4a3d-9d13-d1d93965f9be@gmail.com> <87frerjnxt.fsf@alyssa.is> <87cy9vjmtg.fsf@alyssa.is> Date: Sun, 20 Jul 2025 10:20:59 +0200 Message-ID: <87a54zjms4.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: VHESTSV7F34VC3HMNAGLJFSTN22TDVCF X-Message-ID-Hash: VHESTSV7F34VC3HMNAGLJFSTN22TDVCF X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alyssa Ross writes: > Demi Marie Obenour writes: > >> On 7/20/25 03:55, Alyssa Ross wrote: >>> Demi Marie Obenour writes: >>>=20 >>>> If I run `make run-qemu` under a Wayland compositor (tested with both >>>> Sway and Weston), I get a Wayland protocol error ("invalid object 0") >>>> and QEMU exits. It appears that there is a problem with >>>> wayland-proxy-virtwl. I get the following error from foot: >>>> >>>> warn: main.c:437: 'C' is not a UTF-8 locale, falling back to 'C.UTF-8' >>>> warn: config.c:3520: no configuration found, using defaults >>>> Fontconfig warning: no elements found. Check configuration. >>>> Fontconfig warning: adding /var/cache/fontconfig >>>> Fontconfig warning: adding fontconfig >>>> err: wayland.c:1714: no compositor >>>> err: wayland.c:2248: failed to flush wayland socket: Connection reset= by peer >>>> >>>> And the following from wayland-proxy-virtwl: >>>> >>>> 2025-07-20 02:14:48.638 wl-proxy [WARNING]: Error handling client: = Invalid_argument("invalid bounds in Cstruct.LE.get_uint32 [0,0](4096) off= =3D0 len=3D4") >>>=20 >>> This is partially fixed with , >>> which is more recent than Spectrum's pinned Nixpkgs. I expect to >>> update that in the next few days, but until then, you can apply it on >>> top of the Nixpkgs revision in lib/nixpkgs.default.nix, and then pass >>> --arg config '{pkgsFun =3D import /path/to/nixpkgs;}' to any Spectrum >>> Nix command. >>>=20 >>> With that change, I'm able to run foot fine in QEMU. gnome-text-editor >>> runs but prints errors and looks weird, and Firefox doesn't even start. >>> crosvm built from the same tag as rutabaga_gfx used by QEMU works fine, >>> so I think it must be a QEMU bug. I spent some time yesterday trying to >>> debug it, but didn't get anywhere so far. If I can't figure it out soon >>> I'll open an upstream bug report. >> >> That's a good idea. Would it be possible to use vhost-user as a >> workaround? That would use crosvm's implementation instead. > > No. crosvm and QEMU have different ideas of what vhost-user-gpu. > QEMU expects to provide all the graphical stuff itself, using the > vhost-user-gpu protocol[1], whereas the crosvm one has the backend do > almost everything (like every other vhost-user device =E2=80=94 also much= better > for sandboxing). > > [1]: https://www.qemu.org/docs/master/interop/vhost-user-gpu.html#vhost-u= ser-gpu-protocol Possibly the best way to test this would be to use crosvm, which also supports virtio-sound. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaHym6wAKCRBbRZGEIw/w olvHAP91DVZQ5vO05PEKT2HosxCJ+MJziSuzD+hqwMWVlWCXaQD/SzEx6a/NAksm OYEIswBboQBX2J5Zs0vANJRw+lQ10gU= =dQ7Y -----END PGP SIGNATURE----- --=-=-=--