From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Herman Newsgroups: gmane.emacs.bugs Subject: bug#67628: Emacs 29.1: (x-open-connection (getenv "DISPLAY")) gets "Display :0.0 does not exist" error Date: Mon, 4 Dec 2023 19:31:38 +0200 Message-ID: <20231204193138.3bb398b8@Elitebook> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28628"; mail-complaints-to="usenet@ciao.gmane.io" To: 67628@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 04 21:02:11 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rAF8t-0007FM-By for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Dec 2023 21:02:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAF8c-0002lO-NF; Mon, 04 Dec 2023 15:01:55 -0500 Original-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 1rAF8Z-0002l4-KM for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2023 15:01:51 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rAF8Z-0001f8-Bk for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2023 15:01:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rAF8j-0000tA-Nd for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2023 15:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Herman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Dec 2023 20:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67628 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17017200693318 (code B ref -1); Mon, 04 Dec 2023 20:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Dec 2023 20:01:09 +0000 Original-Received: from localhost ([127.0.0.1]:35798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAF7t-0000rR-6L for submit@debbugs.gnu.org; Mon, 04 Dec 2023 15:01:09 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:53910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rACne-00052P-3G for submit@debbugs.gnu.org; Mon, 04 Dec 2023 12:32:06 -0500 Original-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 1rACnM-0001H0-S8 for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2023 12:31:49 -0500 Original-Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rACnL-0006wF-5s for bug-gnu-emacs@gnu.org; Mon, 04 Dec 2023 12:31:48 -0500 Original-Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-7b37405f64aso192195639f.2 for ; Mon, 04 Dec 2023 09:31:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701711105; x=1702315905; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=ItzsFS/R4rOmvnMSfwWLQk1ucY7wg3RekFiQn++NIag=; b=WOJMedH2TUoFN6IfJFMqGjmTrg25YPp3l3W6ZwKW+kF7i0+9Xl/P5M78uWvBa4VxdM 4Kgv2sTFjAVng77EC69ddDwwNGv/okmSDgiActIwsAHnS9N2XAWU0RS2w24T2550VzWj pR0ZAyRxKHT+8VGqKAutGBJQj1R8wThzVF2i3p7SouqAOoJr6w25F9ekiH3Bd7416xn0 SoxLxLq8C+FId6QgKl0Vez4B15cJTjsYL7iA/I9vuVvpLxLAEEtErCRFhNw3ZkbDq00Z IiZQnuhC604mAEmTIOn/jp4Gjeq0OfTaZG6MPzkSsLSmAx5V9jKRKlJnVSyzmUsUqxvt uy9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701711105; x=1702315905; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ItzsFS/R4rOmvnMSfwWLQk1ucY7wg3RekFiQn++NIag=; b=TxUPc1ItDrJbASFLP4C1PF7ZkCU0+Eh262CUuVg/An5TcMdO8p/Pr06sRNq4xvu59D va4JXd0k6R5xCOz6Lud2CaUDp5qFa4r3m6P3lWC3CvKQkegtPpOwzNiTl/4HdTyNZoti Fgifv/7MFlZilq/P/eglgRuPXU4m5jCVB+Mv35+4jncjoHtXt7rIGfu2rHmO98fCT0dD gc9R5dTOlkCV0CWExIKy1+jOqp/XHvpnvTpz5+F2Wi/pJqC/XUvdPChWFWK849fEcuBJ 3zV+H8X4kjt+sBAWwdQKdqYyYE37Add+p6ClYWhIasMZ5jcckXzvtTye1gjSrgWXE1mj LONg== X-Gm-Message-State: AOJu0YzXQbww9r3UCRNdinI3k7jlxorzyjIBfSiFEdaX6syacM5MS0Pd hDptdg/+XIqXD5Lk6aI/sR7OtavR2e6aFg== X-Google-Smtp-Source: AGHT+IESLNjXCZnX8KuXMn/B0okjDpcQJY84fV8sGAUTUGG1tPpCYaFeR9WKGnmIV5NShYoD5kioLw== X-Received: by 2002:a5e:c807:0:b0:7b4:28f8:15ca with SMTP id y7-20020a5ec807000000b007b428f815camr5701939iol.42.1701711105381; Mon, 04 Dec 2023 09:31:45 -0800 (PST) Original-Received: from Elitebook ([2a09:bac5:30a9:5f5::98:1c]) by smtp.gmail.com with ESMTPSA id x10-20020a5eda0a000000b007b442283c5csm969823ioj.44.2023.12.04.09.31.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 09:31:44 -0800 (PST) X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2d; envelope-from=mahlamytsike@gmail.com; helo=mail-io1-xd2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 04 Dec 2023 15:01:07 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275532 Archived-At: Hi ! 'x-create-frame' succeeds, but 'x-open-connection' fails with same display argument. This error "Display :0.0 does not exist" happens only, when variable 'debug-on-error' is non-nil. When 'debug-on-error' is nil, the error is not present. I.e. it works on the principle - you get what you are looking for. Tested also on Emacs 28.2 and there error is not present regardless of the value of the variable 'debug-on-error'. xfwm4 4.18.0 xorg-server 21.1.9 Emacs 29.1 Archlinux How to reproduce: ################# $ emacs --fg-daemon -Q ... Starting Emacs daemon. $ emacsclient --eval "(setq debug-on-error t)" t $ emacsclient --eval "(x-open-connection (getenv \"DISPLAY\"))" nil ... Debugger entered--Lisp error: (error "Display :0.0 does not exist") signal(error ("Display :0.0 does not exist")) error("Display %s does not exist" ":0.0") get-device-terminal(":0.0") frames-on-display-list(":0.0") font-setting-change-default-font(":0.0" nil) dynamic-setting-handle-config-changed-event((config-changed-event font-render ":0.0")) funcall-interactively(dynamic-setting-handle-config-changed-event (config-changed-event font-render ":0.0")) call-interactively(dynamic-setting-handle-config-changed-event nil [(config-changed-event font-render ":0.0")]) command-execute(dynamic-setting-handle-config-changed-event nil [(config-changed-event font-render ":0.0")] t) The full testing: ################# $ emacs --fg-daemon -Q ... Starting Emacs daemon. $ emacsclient --eval "(setq debug-on-error t)" t $ emacsclient --eval "debug-ignored-errors" (beginning-of-line beginning-of-buffer end-of-line end-of-buffer end-of-file buffer-read-only file-supersession mark-inactive user-error) $ emacsclient --eval "debug-on-signal" nil $ emacsclient --eval "debug-on-event" sigusr2 $ emacsclient --eval "(terminal-list)" (#) $ emacsclient --eval "(get-device-terminal nil)" # $ emacsclient --eval "(x-display-list)" nil $ emacsclient --eval "(x-open-connection (getenv \"DISPLAY\"))" nil ... Debugger entered--Lisp error: (error "Display :0.0 does not exist") signal(error ("Display :0.0 does not exist")) error("Display %s does not exist" ":0.0") get-device-terminal(":0.0") frames-on-display-list(":0.0") font-setting-change-default-font(":0.0" nil) dynamic-setting-handle-config-changed-event((config-changed-event font-render ":0.0")) funcall-interactively(dynamic-setting-handle-config-changed-event (config-changed-event font-render ":0.0")) call-interactively(dynamic-setting-handle-config-changed-event nil [(config-changed-event font-render ":0.0")]) command-execute(dynamic-setting-handle-config-changed-event nil [(config-changed-event font-render ":0.0")] t) $ emacs --fg-daemon -Q ... Starting Emacs daemon. $ emacsclient --eval "(setq debug-on-error t)" t $ emacsclient --eval "(x-create-frame \`((display . ,(getenv \"DISPLAY\"))))" # $ emacsclient --eval "(terminal-list)" (# #) $ emacsclient --eval "(get-device-terminal nil)" # $ emacsclient --eval "(x-display-list)" (":0.0") $ emacsclient --eval "(kill-emacs)" $ emacs --fg-daemon -Q ... Starting Emacs daemon. $ emacsclient --eval "(x-open-connection (getenv \"DISPLAY\"))" nil $ emacsclient --eval "(x-display-list)" (":0.0") $ emacsclient --eval "(terminal-list)" (# #) $ emacsclient --eval "(get-device-terminal nil)" #