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 2BE3C114A4 for ; Sun, 20 Jul 2025 08:20:21 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 15BC91150E; Sun, 20 Jul 2025 08:20:19 +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 2B8111150A for ; Sun, 20 Jul 2025 08:20:17 +0000 (UTC) Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.stl.internal (Postfix) with ESMTP id CF3411D0013C; Sun, 20 Jul 2025 04:20:15 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Sun, 20 Jul 2025 04:20:15 -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=1752999615; x=1753086015; bh=m3CQyrGEoU 5zAQAuFtziM+qzWgWMx0sB2tIfPE73h0s=; b=RDQKaC9jZtZktrF5c4YaaQIxP5 PBUzxBtkNAoZkLLSeNlVyEA21jFloKGWoChlAW0Ce9TiXHZLU6VYUZq7W0RWfrDN 1pdVpY7CSN575NIqfq+8yi52BCgDToVXVR+lNVwpwwpqqc3Dkv/O+gN7g7Ra0tvU 95yDcmH9zvwUe4fdgs+uwJG1O2fXlLXOYymQX7CIIVUqLUihRUkoCtGZldiYhJ7G GoTplOYb/qDlfpiJzaUH9B4vslOPqWYDPTIg30Zf8tMw8ljec9qHpVlEOQipP4Rg hniNWRfaXYf0McNxjysNHmPQ77GquMyCAp6HSvmrVd5mOJEqqU8oD1kCQzag== 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= 1752999615; x=1753086015; bh=m3CQyrGEoU5zAQAuFtziM+qzWgWMx0sB2tI fPE73h0s=; b=NueKFEKHG5/2jnmYLTGqKCo/kyTujauMS3GMUaddRY00QsPeu69 YvGrfK1Hidvt7s3nuGsQt9SBoXBJA4YBpaBOV8DYav7p7ew8B0zP8SBTjLt5d0AF bPZDcXWRBDGTtb4cYfG+LuSYFlbeawOCbQP83iw39lg9o+goS6veAZjxV8rCuisi uyhXBTZD7fURmG2fF4P8CJw1Tc+hxNOUNn0rg4sPRrqGg05btD4gLcroJttA1VMC XXh/gl8l8AGDtNz/wz4bcQAWYGvV8L8Qwj22DGweHL3lNEx1s1eBJwFFItb+BS85 NkLu3PKTg7wAt/xikUBCIUmG/+/eyif4ypQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdeikeejtdcutefuodetggdotefrod 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:20:14 -0400 (EDT) Received: by sf.qyliss.net (Postfix, from userid 1000) id 49D172C62CB4E; Sun, 20 Jul 2025 10:20:13 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour , Spectrum OS Development Subject: Re: "make run-qemu" gets Wayland protocol error In-Reply-To: References: <013e1c97-7fd7-4a3d-9d13-d1d93965f9be@gmail.com> <87frerjnxt.fsf@alyssa.is> Date: Sun, 20 Jul 2025 10:20:11 +0200 Message-ID: <87cy9vjmtg.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: BSIZHWSRKCRCF34XORQCYVGHFXQOEXPT X-Message-ID-Hash: BSIZHWSRKCRCF34XORQCYVGHFXQOEXPT 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 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: I= nvalid_argument("invalid bounds in Cstruct.LE.get_uint32 [0,0](4096) off=3D= 0 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 b= etter for sandboxing). [1]: https://www.qemu.org/docs/master/interop/vhost-user-gpu.html#vhost-use= r-gpu-protocol --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaHymuwAKCRBbRZGEIw/w ovkPAQCLHdivW7aFhPuqUIm5WvyZBdU1kV3Rwfh3vtqaflkosAEA1bk8nnvX7qIg 1GEhICNumZg/4CPzKcKaszo/TOd/xwo= =M0yB -----END PGP SIGNATURE----- --=-=-=--