From unknown Sat Sep 20 01:09:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#79295 <79295@debbugs.gnu.org> To: bug#79295 <79295@debbugs.gnu.org> Subject: Status: [Bug] Artifacts in margin with display-line-numbers-mode (relative) Reply-To: bug#79295 <79295@debbugs.gnu.org> Date: Sat, 20 Sep 2025 08:09:57 +0000 retitle 79295 [Bug] Artifacts in margin with display-line-numbers-mode (rel= ative) reassign 79295 emacs submitter 79295 Marco severity 79295 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 23 16:58:03 2025 Received: (at submit) by debbugs.gnu.org; 23 Aug 2025 20:58:03 +0000 Received: from localhost ([127.0.0.1]:41875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1upvJI-0004HY-HG for submit@debbugs.gnu.org; Sat, 23 Aug 2025 16:58:03 -0400 Received: from lists.gnu.org ([2001:470:142::17]:48844) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1upuhJ-0002R0-6z for submit@debbugs.gnu.org; Sat, 23 Aug 2025 16:18:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1upuhD-0005eP-Ro for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2025 16:18:39 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1upuhA-0001Y4-NG for bug-gnu-emacs@gnu.org; Sat, 23 Aug 2025 16:18:39 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-afcb79db329so452367066b.2 for ; Sat, 23 Aug 2025 13:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755980314; x=1756585114; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Y29uNBu1iChp9Bn1mIJ4mnB/kWOpj61PsTzjWK0BgVg=; b=kLvB3k7334U1WXpy3Bo9cyEusk9xJhvIP+jKUVA7DI+Xmzh4yVO/1acSiinNb+1KVT tI0QGSQrKhV/HWJ6AxiZEl9Gm78pmybN4CdxDSOXN0d2NC9d6fAnp+hmwEC6/T+r4AA1 bBz6ZI0dfsx2JFIU7AoZlnNbQtgzI835snnVv1I3K8dZYCRjLSQOSzMZCG5R8aAT5q3W RSOsX1T4YlV4fLEdV7BIFlw1qgTBRj/7Ogsa/vuatYKGwqeq8cCjBfvADcMkA365NxBB qfsOzkIZQYHf98p8yeRw03cuYRKKT+vYIjYf372pSk03HE6hKQu7Bo0mQh7n+YKzkpyj DgOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755980314; x=1756585114; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Y29uNBu1iChp9Bn1mIJ4mnB/kWOpj61PsTzjWK0BgVg=; b=X9uozm4CQBQsGniOGrBzO60gXsPgpyIGNlkmRzmIUd+jgoZtP8CTgcK0tN6MrqmOgy OzSN7K0GPFCQQ/M68SGo+yzczJjFZH1nmFgNoExcWrdCdE2l9HfiWLWbcNuT+9eravl/ RpHDTbXY5SDdBQsVgG0LoFD7sWJvqBXWGhCzOvjqfetxtX+FzS8F2kuWJKYo/VhFpxdb 6EwAyQlsvhHdvrXh1P0s9Mz3LTRysn80s0OCuYpXzc1e1FgXPZnw+YAiM8kiolJg6QKF cUoH0ikLrttXLc1WRY4vBpELL9fNXwmd76jTCrL6pnKrJEdq1A/KRuIxUjyER9g6rE6R moZw== X-Gm-Message-State: AOJu0YwZDsF/+8ux8dygUEacfOhnioXEbtoRipJe58COxNLZDrTRbdvl 5/zfSkOO0e2DXbyTTbExoheYikvd5fTqCZ3f6YHEu3YD1VsqB7m72iiDJAxt0Q== X-Gm-Gg: ASbGncvvZzMyxyme5BnnTOGTihZGbO1zb3qxDtjfp/y6VUlHpIuSbbnJ6g0a1qZIv9z XXK1Q8n8vr3BdcLpCA2zEsb0nFARYibHVcDagMOsKPfK3VdCXkBYhLhS/BZw+o2XH1gyM96SddA T6Szil6gF2faPWyidkOFxUYv0N9UClJRbHA/veF2YykvQc75NTrXINMk5EBdxyFF6LPVHXdnBFY JWWCW9roVtC8BUYj1gSp+omof53eH1DtmRPPgK1u7t/6qMy8KhrRcsQ41lbB70hrhzKHki7R9/U RmmCLTMCA4eOdLuDXCEwv5y+LKF3PpWmOVPblKaU9vXxR9A2G0qaVmh9v95QVjqcNmy6+PS03gs 9hj9P6d+vz0bqsSGCATD1tMbnX6hifD/tfGyc50cLeYiVDslyqoOhlcYrFylgVgp1eXwuIJbV2k 301UXCqrGN+FnqVVshclIKFtVvw1ROssIs4cyOUIwl7v+f7rtoBj+90TEB0mgEoxOIS6fD+YdLq q9XlMCQkgP1T9nxt3OZT0V62yne/ZyoTEnn/liqNmI0qSSOSeZqUIfoBxrvZScACaBflOCiwaoF KGRfP9KH1iH+KKf21MQ9UGFGd7DUoLQwDhLKyF+6x5G2IL0= X-Google-Smtp-Source: AGHT+IFj4prJcYllWOS/NBuBy0q60yy40zxF52xn+vN1+4wEuR8RYSbF1EIXI598AyW0cyUr/huAmw== X-Received: by 2002:a17:906:6a1f:b0:ae3:bb0a:1ccd with SMTP id a640c23a62f3a-afe28f2750dmr675613966b.26.1755980314047; Sat, 23 Aug 2025 13:18:34 -0700 (PDT) Received: from ?IPV6:2a02:3100:5f8f:be00:9213:563b:7074:9fdd? (dynamic-2a02-3100-5f8f-be00-9213-563b-7074-9fdd.310.pool.telefonica.de. [2a02:3100:5f8f:be00:9213:563b:7074:9fdd]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-afe487ffceasm237230066b.0.2025.08.23.13.18.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Aug 2025 13:18:33 -0700 (PDT) Message-ID: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> Date: Sat, 23 Aug 2025 22:18:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Marco Subject: [Bug] Artifacts in margin with display-line-numbers-mode (relative) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=marconeumaier@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, LONGWORDS=2.035, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.8 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Description: Hi, when using `display-line-numbers-mode` with relative numbering, scrolling a buffer sometimes produces colored horizontal lines or dots in the line-number margin. Steps to reproduce: 1. Start Emacs with GTK. 2. Enable relative line numbers:    (setq display-line-numbers-type 'relative)    (global-display-line-numbers-mode 1) 3. Scroll the buffer up and down [...] Content analysis details: (2.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (marconeumaier[at]gmail.com) 1.8 LONGWORDS Long string of long words X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 23 Aug 2025 16:57:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Description: Hi, when using `display-line-numbers-mode` with relative numbering, scrolling a buffer sometimes produces colored horizontal lines or dots in the line-number margin. Steps to reproduce: 1. Start Emacs with GTK. 2. Enable relative line numbers:    (setq display-line-numbers-type 'relative)    (global-display-line-numbers-mode 1) 3. Scroll the buffer up and down [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (marconeumaier[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 1.8 LONGWORDS Long string of long words -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Description: Hi, when using `display-line-numbers-mode` with relative numbering, scrolling a buffer sometimes produces colored horizontal lines or dots in the line-number margin. Steps to reproduce: 1. Start Emacs with GTK. 2. Enable relative line numbers:    (setq display-line-numbers-type 'relative)    (global-display-line-numbers-mode 1) 3. Scroll the buffer up and down. Observed behavior: - Horizontal bars or dots appear in the line-number margin while scrolling. - Artifacts are colored (green/magenta/white on monitor) but screenshots show them as dark blue. - Absolute line numbers render correctly without artifacts. Environment: - Emacs version: GNU Emacs 30.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2025-08-15 - GTK version: 3.24.41 - OS: Ubuntu 24.04 with Gnome and Wayland - Theme: Dracula Additional observations: - The issue persists with GDK_DEBUG=nogl and GDK_BACKEND=x11. - Forcing a solid background for 'line-number' and 'line-number-current-line' mitigates the issue:   (set-face-attribute 'line-number nil :background "#282a36" :foreground "#6272a4")   (set-face-attribute 'line-number-current-line nil :background "#282a36" :foreground "#f8f8f2") - Increasing display-line-numbers-width does not affect the artifacts. Expected behavior: Line-number margin should update cleanly without leaving visual artifacts. This appears to be related specifically to the redraw path of relative line numbers in `display-line-numbers-mode`. additional useful info: In GNU Emacs 30.2 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.41,  cairo version 1.18.0) of 2025-08-15 built on lcy02-amd64-116 Repository revision: 32909ac267415e06a8b18a8b89827d7bbf180b58 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12302006 System Description: Ubuntu 24.04.3 LTS Configured using:  'configure --prefix=/snap/emacs/current/usr --with-x-toolkit=gtk3  --without-xaw3d --with-modules --with-cairo  --with-native-compilation=aot --without-pgtk --with-xinput2  --with-tree-sitter 'CFLAGS=-isystem  /build/emacs/parts/emacs/install/usr/include -isystem  /build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu -isystem  /build/emacs/stage/usr/include -O2' 'CPPFLAGS=-isystem  /build/emacs/parts/emacs/install/usr/include -isystem  /build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu -isystem  /build/emacs/stage/usr/include'  'LDFLAGS=-L/build/emacs/parts/emacs/install/lib  -L/build/emacs/parts/emacs/install/usr/lib  -L/build/emacs/parts/emacs/install/lib/x86_64-linux-gnu  -L/build/emacs/parts/emacs/install/usr/lib/x86_64-linux-gnu  -L/build/emacs/stage/usr/lib'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings:   value of $LANG: de_DE.UTF-8   value of $XMODIFIERS: @im=ibus   locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect:   global-company-mode: t   company-mode: t   global-display-line-numbers-mode: t   display-line-numbers-mode: t   override-global-mode: t   tooltip-mode: t   global-eldoc-mode: t   eldoc-mode: t   show-paren-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   tool-bar-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   font-lock-mode: t   blink-cursor-mode: t   minibuffer-regexp-mode: t   line-number-mode: t   indent-tabs-mode: t   transient-mark-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date company-oddmuse company-keywords company-etags etags fileloop generator xref project company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company pcase sclang sclang-widgets tree-widget wid-edit sclang-server sclang-help sclang-help-minor-mode sclang-minor-mode sclang-mode derived sclang-dev sclang-document sclang-language sclang-interp compile text-property-search comint ansi-osc ansi-color ring sclang-browser view sclang-util dracula-theme display-line-numbers use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf site-start comp comp-cstr cl-extra help-mode comp-common warnings rx company-autoloads dracula-theme-autoloads ement-autoloads lua-mode-autoloads persist-autoloads plz-autoloads svg-lib-autoloads taxy-magit-section-autoloads taxy-autoloads info magit-section-autoloads llama-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 204139 13238) (symbols 48 14132 0) (strings 32 48749 4819)  (string-bytes 1 1433272) (vectors 16 24295)  (vector-slots 8 289139 15606) (floats 8 93 160)  (intervals 56 993 357) (buffers 992 16)) From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 23 18:21:49 2025 Received: (at 79295) by debbugs.gnu.org; 23 Aug 2025 22:21:49 +0000 Received: from localhost ([127.0.0.1]:41990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1upwcO-0002P5-RL for submit@debbugs.gnu.org; Sat, 23 Aug 2025 18:21:49 -0400 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]:51391) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1upvQG-0004da-UV for 79295@debbugs.gnu.org; Sat, 23 Aug 2025 17:05:13 -0400 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-afcb7a2befdso455531366b.2 for <79295@debbugs.gnu.org>; Sat, 23 Aug 2025 14:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755983106; x=1756587906; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=chXkYxP69znAQshIyw2oXrLu0vp+K6qW1ipe/AhJymY=; b=FHqIGb5tdU6nWsSfsX5YZlz83A+0MqeBO9LShbTBGkVNCqLpjpDjv8iEtbPffWF5du wZksxRcu6fSWF+DpEpCVaKRBOqFNZHdFQddoOFCDYaLrq7UPKcw311dTSndlV1x1hYYj 0ufUzo8QdBeeLS3omBiHQVE1XC0B9zhvcLjd97sN28/7+WoLJ3at332he2SpemsKGvvD UiPfcrIXcpSo0xrFDB3MW6ypiwCIq1eok9A3Y7MozIJvcYgyULGpUM1frsqh4pNyzVl6 L4e1MwsDDb5rwMtEnEWfVsGpBuJ+OIPAMhmeDr27qAhSPkQangM7gmpDNspJORz79fFY SllQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755983106; x=1756587906; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=chXkYxP69znAQshIyw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HDq434uAQILvy/lIAE0y6yXx 0B8e27LhTokQ2shrLCIA/tYgUEBjlIFHfrbXS3+wUE1VBhI= X-Google-Smtp-Source: AGHT+IGHnhBJL8fKzyQtFfKGEnH28Dh2c15WmFo8+rNFIyVw0tiIYPVddtBcc0el0Sh7PmCW6AsDog== X-Received: by 2002:a17:907:3da9:b0:af9:3116:e107 with SMTP id a640c23a62f3a-afe2979f3femr671329366b.58.1755983106103; Sat, 23 Aug 2025 14:05:06 -0700 (PDT) Received: from ?IPV6:2a02:3100:5f8f:be00:9213:563b:7074:9fdd? (dynamic-2a02-3100-5f8f-be00-9213-563b-7074-9fdd.310.pool.telefonica.de. [2a02:3100:5f8f:be00:9213:563b:7074:9fdd]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-afe6973cc17sm41622066b.48.2025.08.23.14.05.05 for <79295@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Aug 2025 14:05:05 -0700 (PDT) Message-ID: Date: Sat, 23 Aug 2025 23:05:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#79295: Acknowledgement ([Bug] Artifacts in margin with display-line-numbers-mode (relative)) To: 79295@debbugs.gnu.org References: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> Content-Language: en-US From: Marco In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79295 X-Mailman-Approved-At: Sat, 23 Aug 2025 18:21:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, unfortunately the fix ( as suggested by chatGPT) described in the bug report does not work: "- Forcing a solid background for 'line-number' and 'line-number-current-line' mitigates the issue:   (set-face-attribute 'line-number nil :background "#282a36" :foreground "#6272a4")   (set-face-attribute 'line-number-current-line nil :background "#282a36" :foreground "#f8f8f2")" The only way to get rid of these artifact pixels is to use absolute line numbering. Best, Marco Am 23.08.25 um 22:59 schrieb GNU bug Tracking System: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-gnu-emacs@gnu.org > > If you wish to submit further information on this problem, please > send it to 79295@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 24 00:45:24 2025 Received: (at 79295) by debbugs.gnu.org; 24 Aug 2025 04:45:24 +0000 Received: from localhost ([127.0.0.1]:42872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uq2bb-00070v-Ap for submit@debbugs.gnu.org; Sun, 24 Aug 2025 00:45:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41582) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uq2bZ-0006zh-Fc for 79295@debbugs.gnu.org; Sun, 24 Aug 2025 00:45:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uq2bT-00063F-On; Sun, 24 Aug 2025 00:45:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=4PULTn5DMOSLBhut+/He7YInuk2Vr6KW0bEhsFbSmcU=; b=kz4uaDs82grO79t4LSUI p3q/UlYPhehmtqxZHFw34SSlekDZzpWGzn3Es8w1CWLRjC3j/r5LHjdUMnP4fGzmxefikBkeErJiF TCjW566uT+7ymqeA15wa2L2VvuDNK+Dc+96TZKh1z2a2FNxjOK0uImi1jm08gFGU8OzkRvU0ecDDE ThIJM3TZTcc5HeWgsTMROpVnSITUT8gmaQC6euJgYO6X3qVPqNeSu9H+28CsFjl6XqBGIvTTQuv/B Ut++UacbemC/40qMJmOL/v14nejGM6cFgtTu9lWYbN/o/3d68L774zybWLiVaHHVwuTbTF9OasRh/ WeX9sSlsHFV6nA==; Date: Sun, 24 Aug 2025 07:45:08 +0300 Message-Id: <86v7md8h0r.fsf@gnu.org> From: Eli Zaretskii To: Marco In-Reply-To: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> (message from Marco on Sat, 23 Aug 2025 22:18:33 +0200) Subject: Re: bug#79295: [Bug] Artifacts in margin with display-line-numbers-mode (relative) References: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79295 Cc: 79295@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 23 Aug 2025 22:18:33 +0200 > From: Marco > > Description: > > Hi, when using `display-line-numbers-mode` with relative numbering, > scrolling a buffer sometimes produces > colored horizontal lines or dots in the line-number margin. > > Steps to reproduce: > 1. Start Emacs with GTK. > 2. Enable relative line numbers: >    (setq display-line-numbers-type 'relative) >    (global-display-line-numbers-mode 1) > 3. Scroll the buffer up and down. > > Observed behavior: > - Horizontal bars or dots appear in the line-number margin while scrolling. > - Artifacts are colored (green/magenta/white on monitor) but screenshots > show them as dark blue. > - Absolute line numbers render correctly without artifacts. > > Environment: > - Emacs version: GNU Emacs 30.2 (build 2, x86_64-pc-linux-gnu, GTK+ > Version 3.24.41, cairo version 1.18.0) of 2025-08-15 > > - GTK version: 3.24.41 > > - OS: Ubuntu 24.04 with Gnome and Wayland > > - Theme: Dracula > > Additional observations: > - The issue persists with GDK_DEBUG=nogl and GDK_BACKEND=x11. > - Forcing a solid background for 'line-number' and > 'line-number-current-line' mitigates the issue: >   (set-face-attribute 'line-number nil :background "#282a36" > :foreground "#6272a4") >   (set-face-attribute 'line-number-current-line nil :background > "#282a36" :foreground "#f8f8f2") > - Increasing display-line-numbers-width does not affect the artifacts. > > Expected behavior: > Line-number margin should update cleanly without leaving visual artifacts. > > This appears to be related specifically to the redraw path of relative > line numbers in `display-line-numbers-mode`. I cannot reproduce this, but I don't have access to a GTK build. It is possible that the problem is due to some "display optimization" features in your video display driver software, so if you can try disabling any such features, please do, and then try again. Failing that, perhaps someone else who has access to such a build will be able to reproduce and debug this. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 24 01:46:18 2025 Received: (at 79295) by debbugs.gnu.org; 24 Aug 2025 05:46:18 +0000 Received: from localhost ([127.0.0.1]:42996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uq3YX-0001g6-PF for submit@debbugs.gnu.org; Sun, 24 Aug 2025 01:46:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53542) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uq3YV-0001fs-94 for 79295@debbugs.gnu.org; Sun, 24 Aug 2025 01:46:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uq3YP-0003RP-US; Sun, 24 Aug 2025 01:46:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GuKEQUjIphsUdDQsgBOZKkseI84ewjY3kYPzYe+cHF4=; b=qgHP4sC3Q8RY 84O00VH84ZUGXF4ekrxBeUYERY2i502HU5lnF1dmRUXetM/52Y/+MLJ9GkyU0f/Rlb4J6blLPNGmf v4K8XXzNixFnV8MQZFazrIHmmH7/mMkp182v4Q/dZwaheojPzvjie69EzVeLVi88dMKto3m87+eB5 jgQI4rsXTo91YbYKTMIx+8IRBULfCqjZWD3BcqcjGfB5XuM90kdOdPwxdwok499Wi5TxWnx6aPXhK IWSHcOxcJFaTamsOJ/0Z2b3JxKAVOcl477i0Fa7DNKZ1NmGPj35DOqOnvybjAsWVf8b8X/wuTRHB+ EzURmo2O42jgziiJU36n1w==; Date: Sun, 24 Aug 2025 08:46:08 +0300 Message-Id: <86ldn98e73.fsf@gnu.org> From: Eli Zaretskii To: Marco In-Reply-To: (message from Marco on Sat, 23 Aug 2025 23:05:05 +0200) Subject: Re: bug#79295: [Bug] Artifacts in margin with display-line-numbers-mode (relative) References: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79295 Cc: 79295@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 23 Aug 2025 23:05:05 +0200 > From: Marco > > unfortunately the fix ( as suggested by chatGPT) described in the bug > report does not work: What made you think that ChatGPT understands the Emacs display code enough to provide any useful advice about it? Anyway, like I said: I'm unable to reproduce this, and suspect it's caused by some "display optimization" features of your video driver software. From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 24 15:18:21 2025 Received: (at 79295) by debbugs.gnu.org; 24 Aug 2025 19:18:21 +0000 Received: from localhost ([127.0.0.1]:46749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uqGEO-0005Gj-Uz for submit@debbugs.gnu.org; Sun, 24 Aug 2025 15:18:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51460) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uqGEM-0005GT-Re for 79295@debbugs.gnu.org; Sun, 24 Aug 2025 15:18:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uqGEH-0005Dp-9Q; Sun, 24 Aug 2025 15:18:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=fFF/lVo50eRvjUGoLE78rkvxl9xi6nt4PpDde7q0X8g=; b=Y28LQ0Rl/lfuPKPzorRN st7fxfTiMmv3rraEXptgnUamzqEDVbVkGZ2QlBKrq/uI0kg3Ln4RU7EFseAbPPazb2/f6Ga/DeDmJ i50VJoSrxDu1Ksb2w0uSElmXriMByvPE5MgDEnKWQGgDA37K99V8istTG+wFCuQS7LmrkqBqz0Yf4 tJ40bn8TCNfOo2uKQsAQqUxS5F2vcNaep4Tr6JPcbKU6H740QLaQC2HyOb2bVNtyeqTYims4z/DOB l6sGNCfidwJyR1cnZ2nNL1FYPE0njvXcqYv88lNxP7D7ga+YSzkKa/IHOFhNi7xyeah650RFaLN9c 8xNOQu0a1OcO/g==; Date: Sun, 24 Aug 2025 22:18:10 +0300 Message-Id: <86v7mc5y19.fsf@gnu.org> From: Eli Zaretskii To: Marco , Po Lu In-Reply-To: (message from Marco on Sun, 24 Aug 2025 21:07:05 +0200) Subject: Re: bug#79295: [Bug] Artifacts in margin with display-line-numbers-mode (relative) References: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> <86ldn98e73.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79295 Cc: 79295@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [Please use Reply All to reply, to keep the bug tracker on the CC list.] > Date: Sun, 24 Aug 2025 21:07:05 +0200 > From: Marco > > Hi, > > thanks for looking into it. I made some more tests today. > > Findings: > > The issue occurs only in a Wayland session. > > When running Emacs in a true X11 session, the problem does not appear at > all. If I'm wrong I'll correct myself. > > Setting GDK_BACKEND=x11 while under Wayland does not eliminate the > problem, which suggests it still goes through XWayland and the > compositor path. > > The artifacts are visible in screenshots and occur sometimes across the > whole display width, though their colors sometimes differ slightly, > which suggests this is a rendering bug. > > Most of the time they look similar to what you see here: > https://lists.gnu.org/archive/html/bug-gnu-emacs/2012-05/msg00023.html > or > https://lists.gnu.org/archive/html/bug-gnu-emacs/2018-01/png1wmnm51YOW.png > > It only seem to occur when the emacs window is maximized! > > With absolute line numbers, I cannot reproduce the problem — it only > appears with relative line numbers. > > Conclusion: > This looks like a rendering bug in the GTK/Wayland (or XWayland) stack, > but Emacs may be triggering it in a specific way when drawing relative > line numbers. > > This is maybe related: When opening emacs in nw mode and using relative > line number I also see artifacts, i.e.  lines across the whole window > width in a color slightly darker than the background. The height of the > line is the same like the block cursor height. > > Again: This does not happen in a real x11 session. Thanks for the footwork. Po Lu, any ideas? Are problems like this with Wayland known to exist? From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 25 03:29:06 2025 Received: (at 79295) by debbugs.gnu.org; 25 Aug 2025 07:29:06 +0000 Received: from localhost ([127.0.0.1]:48039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uqRdZ-0000Kg-QL for submit@debbugs.gnu.org; Mon, 25 Aug 2025 03:29:06 -0400 Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]:42586) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uqRdV-0000K5-DM for 79295@debbugs.gnu.org; Mon, 25 Aug 2025 03:29:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1756106935; bh=bxMz1iVcbo88chfX8ANVTAc1GD+o5gssvZP2sVUZeWY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=gX/6kV65waG649nn+nD6N4EW2St5gDAgfg3Yu+W3w1VJGImINbUGT7anPumO4fiC40oR4FMEu7Y2P0sVZbHTL8M+cb7jiNEikRixBMa/Jcqhmd6mXc1oAu15vvr88ynYNWVXtjmJpW//frNKUBnm7/JhHOOkfXLMslasFwpWLQ6PSoN5Uf42MqpsUEeLKBoA0EfMvaJMZirLYj2elnvG24btxp+vXj+DtRZa4+9MdsiwipKSJOwrhuvar+2gdQqcwU1KKCFSFq1WuJm3XXfi87lbqI/3bVF9L2g6L+s/Xz7BTgNCvtKkevH0gKc7PTOGeKE+auxoCuQhZ5EjLlW5xA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1756106935; bh=0ttclgJVqFeSt8FhJB+b5db2Wo+ZUVCE6R28UE6kJLK=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ZnGuVbsr3Layina3lpzSGQUUncMO90Rl/YP1LsuZoi4PP9HE/E5Q/zXoaXN0iw1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y6B867HSyWDX_9K7Mcu336mCtEwuCH yf.pYRyZRSbg58WMOklrhfIOtKvTGdiyhzVCzy7qTg3dkjU1SPn95ylo1.4PSuDdpDVwl7Rmkoyv uFBNMeJdnauyxQEB0tbJU9KUtcY83Hs1yo8HPd23t.6B2zrInQhOJ5d7Q0rpplYSSe2N9vzMHAOi gZQr5kbZypQNE_nkLT6oX0vgtO0nhjkBmj1OpwINRSGEH9bbetYiDzHos3xNz1SoucELI2WnWE7G K9KVcjSB3sYkdIseEIY48gFjSgz7wHn0aCuGCI4CZhf9broVPbqmqmMb0vMlT8MEuaZMO0lMRp0y Cx1lWZ29jbEoUPM22RPMtMZ.JhGedT4Lzqma4duFJlSJKSimrfYFwdMDGIo_Zcs1YFqOlEL7Y9pe iJeC0kmQ_mD7wwwjrM_hEObccm.nxn_66uRiVRYGqdlgRan8zu0PFDSpQag-- X-Sonic-MF: X-Sonic-ID: a655f5fd-9fc7-405a-aeba-b0ea03d71818 Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Mon, 25 Aug 2025 07:28:55 +0000 Received: by hermes--production-sg3-cdfd77c9c-8r75d (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e63a314c8305afa4aef3b494c4418757; Mon, 25 Aug 2025 07:28:49 +0000 (UTC) From: Po Lu To: Eli Zaretskii Subject: Re: bug#79295: [Bug] Artifacts in margin with display-line-numbers-mode (relative) In-Reply-To: <86v7mc5y19.fsf@gnu.org> References: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> <86ldn98e73.fsf@gnu.org> <86v7mc5y19.fsf@gnu.org> Date: Mon, 25 Aug 2025 15:28:45 +0800 Message-ID: <87wm6rn9le.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.24362 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 2238 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 79295 Cc: 79295@debbugs.gnu.org, Marco X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > [Please use Reply All to reply, to keep the bug tracker on the CC list.] > >> Date: Sun, 24 Aug 2025 21:07:05 +0200 >> From: Marco >>=20 >> Hi, >>=20 >> thanks for looking into it. I made some more tests today. >>=20 >> Findings: >>=20 >> The issue occurs only in a Wayland session. >>=20 >> When running Emacs in a true X11 session, the problem does not appear at= =20 >> all. If I'm wrong I'll correct myself. >>=20 >> Setting GDK_BACKEND=3Dx11 while under Wayland does not eliminate the=20 >> problem, which suggests it still goes through XWayland and the=20 >> compositor path. >>=20 >> The artifacts are visible in screenshots and occur sometimes across the= =20 >> whole display width, though their colors sometimes differ slightly,=20 >> which suggests this is a rendering bug. >>=20 >> Most of the time they look similar to what you see here:=20 >> https://lists.gnu.org/archive/html/bug-gnu-emacs/2012-05/msg00023.html=20 >> or=20 >> https://lists.gnu.org/archive/html/bug-gnu-emacs/2018-01/png1wmnm51YOW.p= ng >>=20 >> It only seem to occur when the emacs window is maximized! >>=20 >> With absolute line numbers, I cannot reproduce the problem =E2=80=94 it = only=20 >> appears with relative line numbers. >>=20 >> Conclusion: >> This looks like a rendering bug in the GTK/Wayland (or XWayland) stack,= =20 >> but Emacs may be triggering it in a specific way when drawing relative=20 >> line numbers. >>=20 >> This is maybe related: When opening emacs in nw mode and using relative= =20 >> line number I also see artifacts, i.e.=C2=A0 lines across the whole wind= ow=20 >> width in a color slightly darker than the background. The height of the= =20 >> line is the same like the block cursor height. >>=20 >> Again: This does not happen in a real x11 session. > > Thanks for the footwork. > > Po Lu, any ideas? Are problems like this with Wayland known to exist? I'm not aware of any such problems, but I would still ask the OP whether he has enabled fractional scaling on his Wayland desktop, which is a recent innovation that has the potential to produce artifacts in rendered text (particularly if the compositor believes a frame to be completely opaque). From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 25 04:35:30 2025 Received: (at 79295) by debbugs.gnu.org; 25 Aug 2025 08:35:30 +0000 Received: from localhost ([127.0.0.1]:48156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uqSfp-0003QM-TT for submit@debbugs.gnu.org; Mon, 25 Aug 2025 04:35:30 -0400 Received: from mail-oi1-x22d.google.com ([2607:f8b0:4864:20::22d]:45249) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uqSfl-0003P2-SI for 79295@debbugs.gnu.org; Mon, 25 Aug 2025 04:35:27 -0400 Received: by mail-oi1-x22d.google.com with SMTP id 5614622812f47-435de7aebb7so2815586b6e.2 for <79295@debbugs.gnu.org>; Mon, 25 Aug 2025 01:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756110919; x=1756715719; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=I7gXoPXXhNstwQTVBFk/x+P1HN9/F5x222nguVhH7Ss=; b=VVSlfKdGPU3eezAAqsvg4+QuQPEnQvUkGV8K92Wr1yoQU+wwEL1iGl/soRwrSRc6T0 jSym7dAtCU9jxto3AOXo9aN82iplM7Zh8qNQWOHMdYlsZjg3ch1s2mBEJaBX8h0m2Gyq vUuvxTuOUyzEQ8ddCbUHqXFOP6Iz+6HgdXgQDK7h1qLy40dkb1DAVMrkSys/N1ZfJKy8 qEoTSss9IQjhJh3Dl1fJkSiLsQHcerE9nO1CRV12wDhcdq8SDN4ikfKNjUb7p1gf9cm1 7FqHF+Ylp3LL7fm5MDTJ6Z3AeoUnGxgrKgtDZjMJ1HhnyEMVXVYHQvato7nZkTf3nTao wIlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756110919; x=1756715719; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I7gXoPXXhNstwQTVBFk/x+P1HN9/F5x222nguVhH7Ss=; b=QdzWcGFSR/7/+7dmRzI9x/NmIRdjoLeEGVuyjciD1+veligivACs9CmWiX4822AuM+ a3KTptgcY3leLjxrYS0COE83bxrBOq1iQzSFd2uesNbOGDOm0nVrLgXHNgAGTfbwy7oy 4OgzZzBdZ4+u1Go2V8pkSuRjrxm1x3s69vfv0pu7PO8BJXP2rpp32oCvYLnx6ztWHr0b 4aVPowTgRplu0dq5ebgjrER5gSkAEMcYoHqDhBQhdYqVCSg7y5lLeldlwjXrbmPJIlSN bS/waGw5kyj9u8EpM4KyW5uKpIJVcIck4BczY496sovmJkrK9c1ztbrWayZoQUqOAK1f XcBQ== X-Forwarded-Encrypted: i=1; AJvYcCUA+PXD8CR7VuN+5Shquc3tI+bEywwdrDjysunmaPQFesGIlavM6fYK8bBkVZ7KGqiE+YRK6w==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzGfKplM2ff3/YrTzMcEb9vLNgg9edfe6A77USPFjSvhD1pUi/C pXnat7b20An8bjYphqUr9M6pOAbr2s+ZT3MdKemj04fFjwAWcfcMW3wm40CM0lY9C0x3x2Fr+ie 92rCF+oAfYAsKMzUrVT0OQNyJpvk8m2M= X-Gm-Gg: ASbGncvwTxQ8y6s8a7tPSaXnWihyj+iBdSIgaEpBWmA8LcF6WuC/tOHNN+7E2YwBscW zRyioIs4PXVS40NmzAzX53SzBKVnZpuPr/eQMFd3XBRmY8E+tqkcDvIcT6T/fcu3Z9yLzUVB/Ka UjMKtlhFqZ/bXwSdqjtOo90RYPBUFWEUu/ceNWBoCRpCOJWdA1zA5T591ub61fCDfp2mA7g97a2 Da1OJWA4AGAYxAJZiLKCdojy1gIjEakadrixRNAptwYe2btmPQY+jiCbnP+ly3J7uR8Gk8b/6OW gGq8kF6L/BnsFTw7auDAlViL/FQJRmDYGYm8PqmRXlpC8fcWMNFGS4CHe0SF0iuo1QFk8hs= X-Google-Smtp-Source: AGHT+IHWxotZqtA93yz9BE14fIlns5RBMBMs7vl6yRuGtbgVnMRSpMjwb31N3MbIxWD/X87i8Ux6YV21Hc2Y3m/yY0c= X-Received: by 2002:a05:6808:221b:b0:437:7577:d457 with SMTP id 5614622812f47-437852867c1mr5597433b6e.43.1756110919426; Mon, 25 Aug 2025 01:35:19 -0700 (PDT) MIME-Version: 1.0 References: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> <86ldn98e73.fsf@gnu.org> <86v7mc5y19.fsf@gnu.org> <87wm6rn9le.fsf@yahoo.com> In-Reply-To: <87wm6rn9le.fsf@yahoo.com> From: Marco Neumaier Date: Mon, 25 Aug 2025 10:35:07 +0200 X-Gm-Features: Ac12FXxIkxOlRj5CmNXrbVDkCtrTH1h-URCoHF-dBAGFj9cUgX5UVwp2CAUEvqs Message-ID: Subject: Re: bug#79295: [Bug] Artifacts in margin with display-line-numbers-mode (relative) To: Po Lu Content-Type: multipart/alternative; boundary="00000000000089e83e063d2c6fa3" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79295 Cc: Eli Zaretskii , 79295@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000089e83e063d2c6fa3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I checked already if it depends on fractional scaling, but that=C2=B4s not = the case. Will double check though. My CPU is an AMD 9700X and i=C2=B4m using its iGPU. I=C2=B4m also running a= very recent MESA version (25.x, I have to check the exact version) and I also just found this thread: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12809 where also Emacs is mentioned. Maybe it=C2=B4s related. Am Mo., 25. Aug. 2025 um 09:28 Uhr schrieb Po Lu : > Eli Zaretskii writes: > > > [Please use Reply All to reply, to keep the bug tracker on the CC list.= ] > > > >> Date: Sun, 24 Aug 2025 21:07:05 +0200 > >> From: Marco > >> > >> Hi, > >> > >> thanks for looking into it. I made some more tests today. > >> > >> Findings: > >> > >> The issue occurs only in a Wayland session. > >> > >> When running Emacs in a true X11 session, the problem does not appear > at > >> all. If I'm wrong I'll correct myself. > >> > >> Setting GDK_BACKEND=3Dx11 while under Wayland does not eliminate the > >> problem, which suggests it still goes through XWayland and the > >> compositor path. > >> > >> The artifacts are visible in screenshots and occur sometimes across th= e > >> whole display width, though their colors sometimes differ slightly, > >> which suggests this is a rendering bug. > >> > >> Most of the time they look similar to what you see here: > >> https://lists.gnu.org/archive/html/bug-gnu-emacs/2012-05/msg00023.html > >> or > >> > https://lists.gnu.org/archive/html/bug-gnu-emacs/2018-01/png1wmnm51YOW.pn= g > >> > >> It only seem to occur when the emacs window is maximized! > >> > >> With absolute line numbers, I cannot reproduce the problem =E2=80=94 i= t only > >> appears with relative line numbers. > >> > >> Conclusion: > >> This looks like a rendering bug in the GTK/Wayland (or XWayland) stack= , > >> but Emacs may be triggering it in a specific way when drawing relative > >> line numbers. > >> > >> This is maybe related: When opening emacs in nw mode and using relativ= e > >> line number I also see artifacts, i.e. lines across the whole window > >> width in a color slightly darker than the background. The height of th= e > >> line is the same like the block cursor height. > >> > >> Again: This does not happen in a real x11 session. > > > > Thanks for the footwork. > > > > Po Lu, any ideas? Are problems like this with Wayland known to exist? > > I'm not aware of any such problems, but I would still ask the OP whether > he has enabled fractional scaling on his Wayland desktop, which is a > recent innovation that has the potential to produce artifacts in > rendered text (particularly if the compositor believes a frame to be > completely opaque). > --00000000000089e83e063d2c6fa3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I checked already if it depends on fractional scaling= , but that=C2=B4s not the case. Will double check though.=C2=A0
M= y CPU is an AMD 9700X and i=C2=B4m using its iGPU. I=C2=B4m also running a = very recent MESA version (25.x, I have to check the exact version)
and I also just found this thread:=C2=A0https://gitlab.freedesktop.org/mesa/mesa= /-/issues/12809 where also Emacs is mentioned.=C2=A0
Maybe it= =C2=B4s related.=C2=A0

Am Mo., 25. Aug. 2025 um 09:28=C2=A0Uhr schri= eb Po Lu <luangr= uo@yahoo.com>:
Eli Zaretskii <e= liz@gnu.org> writes:

> [Please use Reply All to reply, to keep the bug tracker on the CC list= .]
>
>> Date: Sun, 24 Aug 2025 21:07:05 +0200
>> From: Marco <marconeumaier@gmail.com>
>>
>> Hi,
>>
>> thanks for looking into it. I made some more tests today.
>>
>> Findings:
>>
>> The issue occurs only in a Wayland session.
>>
>> When running Emacs in a true X11 session, the problem does not app= ear at
>> all. If I'm wrong I'll correct myself.
>>
>> Setting GDK_BACKEND=3Dx11 while under Wayland does not eliminate t= he
>> problem, which suggests it still goes through XWayland and the >> compositor path.
>>
>> The artifacts are visible in screenshots and occur sometimes acros= s the
>> whole display width, though their colors sometimes differ slightly= ,
>> which suggests this is a rendering bug.
>>
>> Most of the time they look similar to what you see here:
>> https://lists.gnu.org= /archive/html/bug-gnu-emacs/2012-05/msg00023.html
>> or
>> https://lists.gnu= .org/archive/html/bug-gnu-emacs/2018-01/png1wmnm51YOW.png
>>
>> It only seem to occur when the emacs window is maximized!
>>
>> With absolute line numbers, I cannot reproduce the problem =E2=80= =94 it only
>> appears with relative line numbers.
>>
>> Conclusion:
>> This looks like a rendering bug in the GTK/Wayland (or XWayland) s= tack,
>> but Emacs may be triggering it in a specific way when drawing rela= tive
>> line numbers.
>>
>> This is maybe related: When opening emacs in nw mode and using rel= ative
>> line number I also see artifacts, i.e.=C2=A0 lines across the whol= e window
>> width in a color slightly darker than the background. The height o= f the
>> line is the same like the block cursor height.
>>
>> Again: This does not happen in a real x11 session.
>
> Thanks for the footwork.
>
> Po Lu, any ideas?=C2=A0 Are problems like this with Wayland known to e= xist?

I'm not aware of any such problems, but I would still ask the OP whethe= r
he has enabled fractional scaling on his Wayland desktop, which is a
recent innovation that has the potential to produce artifacts in
rendered text (particularly if the compositor believes a frame to be
completely opaque).
--00000000000089e83e063d2c6fa3-- From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 26 21:44:54 2025 Received: (at 79295) by debbugs.gnu.org; 27 Aug 2025 01:44:55 +0000 Received: from localhost ([127.0.0.1]:57880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ur5Da-00047l-Cq for submit@debbugs.gnu.org; Tue, 26 Aug 2025 21:44:54 -0400 Received: from sonic303-22.consmr.mail.ne1.yahoo.com ([66.163.188.148]:38927) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1ur5DV-00047H-Qa for 79295@debbugs.gnu.org; Tue, 26 Aug 2025 21:44:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1756259083; bh=B9YppbGFg9EDvYnOc8qeEpR74dMnnNTudoVOTteKdKw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=qa8EnmR8ayXUhupjUFkeUHQ5CLXUbjEjpmD21a4YYf3ez5jk3Xa6FkZukTwS60Lq0zzYh6msdG+AxGyhfKwFnx4ZlqobP4geG+Zezk8125xpa7ly57ehomau3gtesAyEJ1vFGdGQZVewY428IsQfP8adJqvtzgKmuqjyps/mrjhKoTK9JqtfUKmc7wc1PxlmgCWnz8BJvoGscBa5LQbRqUbxcc/9p8O9SxvaTEQ5EnpYtffBXDLP7Kt+5wxWaKPi8YHDumyIiLeMfEzexp+xdYiOFbOrDhhJB6QMI3wQUaIUi4fOSPXpVMJhHOgMww2WzO+tKMHZEi86qDU1+Fpd7g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1756259083; bh=tIZ3A91RP3j4DvGnIoFm7OiPHdMXcNVU0ynjcSmlv/y=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=dKwPiT03VcjXQ+tAEPMfgKjWUVYqXX00kw/B9+7AeVbf1A1pit/gbJdIGGkG5AckYwRkWxLZhH+XU9jEIiEmlFdeVxMzlV+CJU5MM1IJm9BQqqJ8rD1L6wIYGUYeKA+luz0rON2I+16nT+feAZvUdikIi3iy1PLEjooZfVxUBurLGjoefwGsjnC58wjxfJ5ky5c1JPjbx7tAjYIgAql17PgWG00t6yEffvn5qI4xpLHgcGMy3xAvKBtWPih+3+vPpMV8MmP9eFVaoLG64P9lKmn4mFPmR6tPMayUbN6zEZEIGOZ1q0Gq4mfndtQCiDYumv4MYkplfXXDL2e5Mjvofw== X-YMail-OSG: Gv9h1T8VM1mDKfIEm.22yuFvKPZ5eBneHiciJYFPipmY9ZDkS8ZyqvG9TZj8wJ7 R.veDgqL5jX1JYARjj8tnDpzYCOP_FSjLym0c9RszfYH4fDZiRoml7L09eJrWBy8gPqgddFw64du o1k2kxKNO9sUPanMZ7VZ0CRM.jm0kSROHbRi.oFmFv76iqSIEzAoIDc4yVy14tiWN1tEYWykg.br n2clCQ9wplqJtHHfuk0iW4vg57jvhNdWSCK59pRz_NbFu6ZwYBJWrFTfFADvfWCnUEY0VIRdE_CM TRA75anKNB1yqVhYoI3vEpfD3Z8Y5_G.VPD4pVcuuGmUfyB.WfXn1UQraQdXxLOuObFEqclVT0WS iTld1cruTmFujFSui2Uks0EKU3JtmPyq8iqyMjqNhM9qnTFXmEIE4IjGRiIEK2nqkMmB0XNmXfYI xyBpgSnLl9wqXP5R62IMmultS9zfjUuNRjme9.JoZBc4LBacXcHZdV6sqtkBEx7Z0Cb7cMTc4D0U 3fy9qR8zWHWJrJKmpEiJdsLKSNaElsZIv7sRA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f81Pk8gtfIvuqOSi6iUpSeGEiUKkVNTooG48 t1e8aC4ehqfDmIZLAsSa3Ybwy5F2.TMCh6Jn.V5FgVBNCAXgl.C9OzSVVUK8TksJNDqEv.WY_xXA zH2bLIezfadA6jwf.dSlrd9iPFd2_IZqIZrcd6bLG8AKHdj9owUWcL6uCkc1FVN4za.b9tfU1QSN 1vmLbvXssZJB4dLhrLssyYaCfh6mQTMn5vi0I0c_xaAbUgt0Cn0B1nWVWOOJVfmhvfInszJuHegg X_tZuq0eQku3PGpXKQEqrOk6RXLVoOPH0PaboBOfGiNEn3bmA6KHmMt8davVc.nPwITFPTKBknVu 29iCnCEZdltn3CqHj5T8PB2WnPAlGz257YAZxsN2KtR_lTyT5jpilb4GI1NaUcq2S5ZDHgqkF3Tu suGCDmrXwsFs3UXGSmfRdna5pFa13UcK6rCDpMO0CCZQBkDH2OkYABY2IiWhuFQnZnbcHN6rXXai 7WCwqcdkeP4oM_VA9YxkJTCgiHii1cdWe3uSzKqQJ2bIt3I33aN4IYLt8DFz2EM87I4SfrUiowu2 V6yqkjzPJRSAnUg92nlQxQwxD5x9gFFCj24469c6bXeqQTqT5GOWoT3VZ8lDAXmEBnjBrI933m0T h9B3QnPJWO4iRtLLfmYQ6UqVlbD6ahx76VDN8RG.L3B_daE3sMzbqx.HntanG X-Sonic-MF: X-Sonic-ID: c2784dde-e4fe-4912-b052-92a4adbd3d9c Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Wed, 27 Aug 2025 01:44:43 +0000 Received: by hermes--production-sg3-5db55ff658-pvgjk (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2eaa6a7a0d52690f9f001342f6746e23; Wed, 27 Aug 2025 01:44:40 +0000 (UTC) From: Po Lu To: Marco Neumaier Subject: Re: bug#79295: [Bug] Artifacts in margin with display-line-numbers-mode (relative) In-Reply-To: References: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> <86ldn98e73.fsf@gnu.org> <86v7mc5y19.fsf@gnu.org> <87wm6rn9le.fsf@yahoo.com> Date: Wed, 27 Aug 2025 09:44:36 +0800 Message-ID: <87ldn5mtbv.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.24362 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 711 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79295 Cc: Eli Zaretskii , 79295@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Marco Neumaier writes: > I checked already if it depends on fractional scaling, but that=C2=B4s not > the case. Will double check though. My CPU is an AMD 9700X and i=C2=B4m > using its iGPU. I=C2=B4m also running a very recent MESA version (25.x, I > have to check the exact version) and I also just found this thread: > https://gitlab.freedesktop.org/mesa/mesa/-/issues/12809 where also > Emacs is mentioned. Maybe it=C2=B4s related. What if you configure `alpha-background' to a nearly opaque value such as 99? It should suffice to prevent the compositor from regarding Emacs's frames as completely opaque and disable the optimizations I suspect are producing these artifacts. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 28 14:25:53 2025 Received: (at 79295) by debbugs.gnu.org; 28 Aug 2025 18:25:53 +0000 Received: from localhost ([127.0.0.1]:39958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urhJn-0001rS-7b for submit@debbugs.gnu.org; Thu, 28 Aug 2025 14:25:53 -0400 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:48215) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1urhJj-0001q0-HN for 79295@debbugs.gnu.org; Thu, 28 Aug 2025 14:25:48 -0400 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-afcb7322da8so227062366b.0 for <79295@debbugs.gnu.org>; Thu, 28 Aug 2025 11:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756405540; x=1757010340; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=q0Wh0AP0jL4o5OksCOWzJLknvEsWUeIvfk6UhGv1STs=; b=i45ON17A828Zf8HHXVgnv+i6DcG56b5NI0IWbQEE4sKnKViBfsZn6A0B5GJp8/9P92 0hEpK17aFbkhOMZqcY3LThzYv4O/oIswjWcpW3tBPnhIFFJDmwnYhZg/HcPsd7m6W5ZY Xh5/Z45ir7CnC/GwxA6vWHNv00p1PUYBp1Hwn/F+CKKkW2IGYPr/GHY3Avczz0bFbo3Y vzwh0c4lIfjH1+0FthXT1tcMzBjoldbY4y6vIPRkdVY0btoaKVNCj9lCa1D+iPTPnSNi 825QwZrbd/+ia8DLoNmgWmIR9hLEExr7z9xAVehpxAoCIM7OnRUcsN2isJpYN+NGc1Rm JckQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756405540; x=1757010340; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=q0Wh0AP0jL4o5OksCOWzJLknvEsWUeIvfk6UhGv1STs=; b=TnuzqH4OFu7zdgoZkaXW82z5XEj0cLbE0nLcoSdvEPySZV6AHE5LRKwmNkqUZYUbTK MKaN6T5RQKFDV751qzNkOYB/aX6rUyXhzmntWLhMDY/yYfbMmhZpFPUMkDSNWCTuU7rU hRHcyPAYqs7ZMDZ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3o= X-Google-Smtp-Source: AGHT+IEUJeO18dRI07jEC4hdAdayQ/saSki6XvrLWZO0PRL5Y5EOXdB43VQ3ZYH9sfhLpft0BLWehQ== X-Received: by 2002:a17:907:3e1d:b0:afe:af0f:5556 with SMTP id a640c23a62f3a-afeaf0f8463mr968468666b.17.1756405539912; Thu, 28 Aug 2025 11:25:39 -0700 (PDT) Received: from ?IPV6:2a02:3100:62f3:ca00:2c1:5732:55f1:758b? (dynamic-2a02-3100-62f3-ca00-02c1-5732-55f1-758b.310.pool.telefonica.de. [2a02:3100:62f3:ca00:2c1:5732:55f1:758b]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-afefe05445csm4863066b.28.2025.08.28.11.25.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Aug 2025 11:25:39 -0700 (PDT) Message-ID: Date: Thu, 28 Aug 2025 20:25:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#79295: [Bug] Artifacts in margin with display-line-numbers-mode (relative) To: Po Lu References: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> <86ldn98e73.fsf@gnu.org> <86v7mc5y19.fsf@gnu.org> <87wm6rn9le.fsf@yahoo.com> <87ldn5mtbv.fsf@yahoo.com> Content-Language: en-US From: Marco In-Reply-To: <87ldn5mtbv.fsf@yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79295 Cc: Eli Zaretskii , 79295@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, I checked the `alpha-background' option yesterday and it still occured. Then there was some update also updating MESA to 25.2.1 (https://docs.mesa3d.org/relnotes/25.2.1.html) and since installing this I didn't see these artifacts again. It's strange cause there was no bug report pointing to this, but maybe something changed under the hood. If it comes back I´ll revive the thread. Best and thanks! Marco Am 27.08.25 um 03:44 schrieb Po Lu: > Marco Neumaier writes: > >> I checked already if it depends on fractional scaling, but that´s not >> the case. Will double check though. My CPU is an AMD 9700X and i´m >> using its iGPU. I´m also running a very recent MESA version (25.x, I >> have to check the exact version) and I also just found this thread: >> https://gitlab.freedesktop.org/mesa/mesa/-/issues/12809 where also >> Emacs is mentioned. Maybe it´s related. > What if you configure `alpha-background' to a nearly opaque value such > as 99? It should suffice to prevent the compositor from regarding > Emacs's frames as completely opaque and disable the optimizations I > suspect are producing these artifacts. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 28 14:56:12 2025 Received: (at 79295-done) by debbugs.gnu.org; 28 Aug 2025 18:56:12 +0000 Received: from localhost ([127.0.0.1]:40032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1urhn8-0006O9-NJ for submit@debbugs.gnu.org; Thu, 28 Aug 2025 14:56:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51770) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1urhn5-0006Mt-Ij for 79295-done@debbugs.gnu.org; Thu, 28 Aug 2025 14:56:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1urhmz-0001U3-IM; Thu, 28 Aug 2025 14:56:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=q6ce4wqvbiw5nkez/4ReTji6B7IhPzI5OelKN8uMRGs=; b=Hv2jywfsZ+C0qrekPYhK qK/7n62BbkFq/lkopCtoAOJDeglhWRw2/KB3/ZBW21GgAuaIOGWZjQEaK58JthLmzB/YgY5CMetVx iuDAXwhZCSpbQ5T8HYg4RXBt4wQGY/LpH43Wuce+V1MVAEuqrhKBDEZL3wnnRGv8WSfqVxllDqUGj Aw7GQjfVaYtb5fLClLh/bNbHZJbB8tus575u8ijTy/QfSzBYDJ/6bM1WFv2bVUoaEYZ0VF6DnJPkD rCl5GjMC/EPD3Un74uHNHlAm81BQn1t98Fpo8+7U1tmAN1qy0Z5fMQ0zWQazP03jesfW/U09BtyzL QTSujIFtvmEpmw==; Date: Thu, 28 Aug 2025 21:55:58 +0300 Message-Id: <86o6rzs2bl.fsf@gnu.org> From: Eli Zaretskii To: Marco In-Reply-To: (message from Marco on Thu, 28 Aug 2025 20:25:38 +0200) Subject: Re: bug#79295: [Bug] Artifacts in margin with display-line-numbers-mode (relative) References: <1899cfe6-e1bc-4e23-963b-d37a3f7e6da8@gmail.com> <86ldn98e73.fsf@gnu.org> <86v7mc5y19.fsf@gnu.org> <87wm6rn9le.fsf@yahoo.com> <87ldn5mtbv.fsf@yahoo.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79295-done Cc: luangruo@yahoo.com, 79295-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 28 Aug 2025 20:25:38 +0200 > Cc: Eli Zaretskii , 79295@debbugs.gnu.org > From: Marco > > I checked the `alpha-background' option yesterday and it still occured. > > Then there was some update also updating MESA to 25.2.1 > (https://docs.mesa3d.org/relnotes/25.2.1.html) and since installing this > I didn't see these artifacts again. > > It's strange cause there was no bug report pointing to this, but maybe > something changed under the hood. If it comes back I´ll revive the thread. Thanks, I'm therefore closing this bug.