From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#29067: 26.0.90; "Invalid client frame" when doing save-buffers-kill-terminal Date: Wed, 01 Nov 2017 13:32:17 +0000 Message-ID: References: <59F83755.7020609@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114fbe68215467055cebe794" X-Trace: blaine.gmane.org 1509543203 787 195.159.176.226 (1 Nov 2017 13:33:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Nov 2017 13:33:23 +0000 (UTC) Cc: 29067@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 01 14:33:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9t8p-0007gn-Dy for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Nov 2017 14:33:11 +0100 Original-Received: from localhost ([::1]:55899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9t8w-0002eg-LH for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Nov 2017 09:33:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9t8m-0002eW-Qi for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 09:33:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9t8g-0003wB-LG for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 09:33:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36433) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e9t8g-0003w1-IB for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 09:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e9t8f-0005AP-U6 for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 09:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Nov 2017 13:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29067 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: "bug-gnu-emacs@gnu.org" , Eli Zaretskii Original-Received: via spool by submit@debbugs.gnu.org id=B.150954316619839 (code B ref -1); Wed, 01 Nov 2017 13:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2017 13:32:46 +0000 Original-Received: from localhost ([127.0.0.1]:45114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9t8P-00059u-5k for submit@debbugs.gnu.org; Wed, 01 Nov 2017 09:32:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9t8M-00059f-DV for submit@debbugs.gnu.org; Wed, 01 Nov 2017 09:32:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9t8F-0003kk-Oa for submit@debbugs.gnu.org; Wed, 01 Nov 2017 09:32:37 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e9t8F-0003kU-Km for submit@debbugs.gnu.org; Wed, 01 Nov 2017 09:32:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9t8A-0002bf-S2 for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 09:32:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9t89-0003fd-Ek for bug-gnu-emacs@gnu.org; Wed, 01 Nov 2017 09:32:30 -0400 Original-Received: from mail-yw0-x235.google.com ([2607:f8b0:4002:c05::235]:46633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e9t89-0003fT-84; Wed, 01 Nov 2017 09:32:29 -0400 Original-Received: by mail-yw0-x235.google.com with SMTP id t71so1839091ywc.3; Wed, 01 Nov 2017 06:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iBUVDcPbTpPTCTALOtGEk2esfsXMmyu6oYJhIdBodgA=; b=bPKBxxojjSRwgHR4UmiXW1FHolpRa1XQvm4w7y/n9IUOzkrFpU1EnoBt9mlDAhsoNz 1Y2tpiifTxWMSn/vbbKPeZ0JQZC+jjwXrSJorK6CGGKheVEmzUIfBY7uU0dPsy//dtQ7 yP5fjgfXkByp01Xrg8MhF8D7AvNmOdsS6HKzcqlb1h8lc7lxCX+yo+ayFeqKmEEuANpV lKIGC8QbFYfW4O9m1doPT7dQ/ADUHCZIRfyKMMDvIgM3FMvdOtFIZJYkqyB6bHNB9HhH Lj+5O25lpG3LpC/U9T3nqgM1OfMFFjv9dwS/LcWpBTnwSJUJH1axzWuZP2yhuBR28NaB +k5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iBUVDcPbTpPTCTALOtGEk2esfsXMmyu6oYJhIdBodgA=; b=j2BCU8UUHPBBZgLHv42s+ub2w9YGigkqj6fPbWo7zO228KbHFiKXS/PXq5gcSUNnyx LSVoE0hnvtfaYZfcVXUe4/DhOMR13VEI1N3HH2nd/G387jO2gMytJA02G5oDXgCA4a+W LOXBGfYz5WIZRn0gPXgAtFnD7b0PAqj533N5ATRgXV/7gpeE4NS2bHp6JqJHD93oa6wn oAsJzpto/Z4Ct/FgNRJ8ImafxH3jtni+F0ja03YgnW2WGwFIX0Uv5XcxBYP8WTRn9GPg DqshUl5i5+Smco4nTKW33ADvtM6aBseLehQF/rInN+3Q8BO90VdWa8dZpauVB6kAmhO+ xQlQ== X-Gm-Message-State: AMCzsaVpxN3SbsPBM4Pn07GVgkq2iFSQxr7vhqXqvuZpnFw0JIPJgSAy P8ve5Q8IoRVttWGHtYZdIvrGkgVvuM2d7WtzU88= X-Google-Smtp-Source: ABhQp+Qp5g9qAyETVbmR4/NRp3Y5Bb/f9aujH8tSjNsL0tGR1pVZmUzKWpoKUmiEVtP5XFKAQRcGfAgAOkVjfwqCCv4= X-Received: by 10.13.213.7 with SMTP id x7mr3259952ywd.185.1509543148342; Wed, 01 Nov 2017 06:32:28 -0700 (PDT) In-Reply-To: <59F83755.7020609@gmx.at> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:139314 Archived-At: --001a114fbe68215467055cebe794 Content-Type: text/plain; charset="UTF-8" On Tue, Oct 31, 2017 at 4:42 AM martin rudalics wrote: > > Evaluate (frame-parameter nil 'client) first after starting emacs with > the -Q option and then with your customizations and tell us what you > get. In a non-client session this parameter should be always nil. > Hello, After bisecting my config, turns out that this issue happens only when I restore my session using desktop. Copying Eli as he can throw in some light on cross-compatibility of a desktop.el saved .desktop file between emacs (non-daemon) and emacsclient (daemon) sessions. I cannot share my whole .desktop file for obvious reasons, but I see this in my .desktop file, which seems to be the culprit: (setq desktop-saved-frameset [frameset 1 (23033 51555 32954 566000) (desktop . "208") "kmodi@foo.company.com" nil nil ((((minibuffer . t) (undecorated) (override-redirect) (font-backend xft x) (font . "-unknown-PragmataPro-normal-normal-normal-*-18-*-*-*-*-0-iso10646-1") (font-parameter . "-unknown-PragmataPro-normal-normal-normal-*-18-*-*-*-*-0-iso10646-1") (border-width . 0) (internal-border-width . 0) (right-divider-width . 1) (bottom-divider-width . 0) (vertical-scroll-bars) (horizontal-scroll-bars) (foreground-color . "#f7f7f7") (background-color . "#282828") (mouse-color . "black") (border-color . "black") (screen-gamma) (line-spacing) (left-fringe . 8) (right-fringe . 8) (no-special-glyphs) (scroll-bar-foreground) (scroll-bar-background) (menu-bar-lines . 0) (tool-bar-lines . 0) (title) (wait-for-wm . t) (tool-bar-position . top) (inhibit-double-buffering) (icon-type . t) (auto-raise) (auto-lower) (cursor-type . box) (scroll-bar-width . 0) (scroll-bar-height . 0) (alpha) (no-focus-on-map) (no-accept-focus) (fullscreen) (visibility . t) (skip-taskbar) (z-group) (display-type . color) (background-mode . dark) (cursor-color . "white") (sticky) (client . "Unprintable entity") (tty-type . "xterm-24bits") (tty . "/dev/pts/10") (display . ":1.0") (frameset--id . "D44A-14E2-2416-0AA9") (frameset--mini t . t) (modeline . t) (unsplittable) (icon-name) (explicit-name) (fullscreen-restore) (height . 67) (width . 282) (left . 2560) (top . 0)) ((min-height . 4) (min-width . 10) (min-height-ignore . 2) (min-width-ignore . 4) (min-height-safe . 1) (min-width-safe . 2) (min-pixel-height . 80) (min-pixel-width . 90) (min-pixel-height-ignore . 40) (min-pixel-width-ignore . 36) (min-pixel-height-safe . 20) (min-pixel-width-safe . 18)) leaf (pixel-width . 2554) (pixel-height . 1320) (total-width . 284) (total-height . 66) (normal-height . 1.0) (normal-width . 1.0) (buffer "setup-desktop.el" (selected . t) (hscroll . 0) (fringes 8 8 nil) (margins nil) (scroll-bars nil 0 t nil 0 t) (vscroll . 0) (dedicated) (point . 6143) (start . 4847))))]) Note the "(client . "Unprintable entity")" in there. PS: I have removed the (environment . ..) form from that (setq desktop-saved-frameset ..) for privary reasons and also it just added a lot of noise. Also I don't believe that has anything to do with this issue. I use emacsclient 99.99% percent of times. So my .desktop file is saves from those sessions. When I started emacs (non-daemon), it did desktop-read of that .desktop file saved from the last emacsclient session. So it looks like emacsclient shouldn't save stuff to the .desktop file (like the 'client parameter) that would cause a future non-daemon emacs session to think that it's running in daemon mode. So the root cause analysis would be to figure out what causes the client parameter to be set to "Unprintable entity". Where is that client parameter derived from? How can I help debug this further? As a side, wouldn't doing (daemonp) check instead of (frame-parameter nil 'client) work? -- Kaushal Modi --001a114fbe68215467055cebe794 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Oct 31= , 2017 at 4:42 AM martin rudalics <ru= dalics@gmx.at> wrote:

Evaluate (frame-parameter nil 'client) first after starting emacs with<= br> the -Q option and then with your customizations and tell us what you
get.=C2=A0 In a non-client session this parameter should be always nil.
=

Hello,

After bise= cting my config, turns out that this issue happens only when I restore my s= ession using desktop. Copying Eli as he can throw in some light on cross-co= mpatibility of a desktop.el saved .desktop file between emacs (non-daemon) = and emacsclient (daemon) sessions.

I cannot share = my whole .desktop file for obvious reasons, but I see this in my .desktop f= ile, which seems to be the culprit:

(setq desktop-= saved-frameset [frameset 1 (23033 51555 32954 566000) (desktop . "208&= quot;) "kmodi@foo.company.com= " nil nil ((((minibuffer . t) (undecorated) (override-redirect) (f= ont-backend xft x) (font . "-unknown-PragmataPro-normal-normal-normal-= *-18-*-*-*-*-0-iso10646-1") (font-parameter . "-unknown-PragmataP= ro-normal-normal-normal-*-18-*-*-*-*-0-iso10646-1") (border-width . 0)= (internal-border-width . 0) (right-divider-width . 1) (bottom-divider-widt= h . 0) (vertical-scroll-bars) (horizontal-scroll-bars) (foreground-color . = "#f7f7f7") (background-color . "#282828") (mouse-color = . "black") (border-color . "black") (screen-gamma) (lin= e-spacing) (left-fringe . 8) (right-fringe . 8) (no-special-glyphs) (scroll= -bar-foreground) (scroll-bar-background) (menu-bar-lines . 0) (tool-bar-lin= es . 0) (title) (wait-for-wm . t) (tool-bar-position . top) (inhibit-double= -buffering) (icon-type . t) (auto-raise) (auto-lower) (cursor-type . box) (= scroll-bar-width . 0) (scroll-bar-height . 0) (alpha) (no-focus-on-map) (no= -accept-focus) (fullscreen) (visibility . t) (skip-taskbar) (z-group) (disp= lay-type . color) (background-mode . dark) (cursor-color . "white"= ;) (sticky)=C2=A0 (client . "Unprintable entity") (tty-type . &qu= ot;xterm-24bits") (tty . "/dev/pts/10") (display . ":1.= 0") (frameset--id . "D44A-14E2-2416-0AA9") (frameset--mini t= . t) (modeline . t) (unsplittable) (icon-name) (explicit-name) (fullscreen= -restore) (height . 67) (width . 282) (left . 2560) (top . 0)) ((min-height= . 4) (min-width . 10) (min-height-ignore . 2) (min-width-ignore . 4) (min-= height-safe . 1) (min-width-safe . 2) (min-pixel-height . 80) (min-pixel-wi= dth . 90) (min-pixel-height-ignore . 40) (min-pixel-width-ignore . 36) (min= -pixel-height-safe . 20) (min-pixel-width-safe . 18)) leaf (pixel-width . 2= 554) (pixel-height . 1320) (total-width . 284) (total-height . 66) (normal-= height . 1.0) (normal-width . 1.0) (buffer "setup-desktop.el" (se= lected . t) (hscroll . 0) (fringes 8 8 nil) (margins nil) (scroll-bars nil = 0 t nil 0 t) (vscroll . 0) (dedicated) (point . 6143) (start . 4847))))])

=C2=A0Note the "(client . "Unprintable en= tity")" in there.=C2=A0

PS: I have remov= ed the (environment . ..) form from that (setq desktop-saved-frameset ..) f= or privary reasons and also it just added a lot of noise. Also I don't = believe that has anything to do with this issue.

I= use emacsclient 99.99% percent of times. So my .desktop file is saves from= those sessions. When I started emacs (non-daemon), it did desktop-read of = that .desktop file saved from the last emacsclient session.=C2=A0

So it looks like emacsclient shouldn't save stuff to th= e .desktop file (like the 'client parameter) that would cause a future = non-daemon emacs session to think that it's running in daemon mode.

So the root cause analysis would be to figure out wha= t causes the client parameter to be set to "Unprintable entity". = Where is that client parameter derived from? How can I help debug this furt= her?

As a side, wouldn't doing (daemonp) check= instead of (frame-parameter nil 'client) work?
--

Kaushal Modi

--001a114fbe68215467055cebe794--