From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#21509: 25.0.50; X11 error: BadPixmap when creating first emacsclient frame; and memory leak Date: Sun, 03 Sep 2017 12:15:18 +0200 Message-ID: <59ABD636.3070302@gmx.at> References: <877fno9w6b.fsf@secretsauce.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1504433798 12661 195.159.176.226 (3 Sep 2017 10:16:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 3 Sep 2017 10:16:38 +0000 (UTC) To: Dima Kogan , 21509@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 03 12:16:24 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 1doRwp-000228-BH for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Sep 2017 12:16:11 +0200 Original-Received: from localhost ([::1]:56877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doRww-0002FA-BC for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Sep 2017 06:16:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doRwl-0002Db-I5 for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 06:16:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doRwg-0007dj-PS for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 06:16:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doRwg-0007df-LR for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 06:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1doRwg-0003YN-Fq for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2017 06:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Sep 2017 10:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21509 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21509-submit@debbugs.gnu.org id=B21509.150443373313583 (code B ref 21509); Sun, 03 Sep 2017 10:16:02 +0000 Original-Received: (at 21509) by debbugs.gnu.org; 3 Sep 2017 10:15:33 +0000 Original-Received: from localhost ([127.0.0.1]:44789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doRwD-0003X0-7f for submit@debbugs.gnu.org; Sun, 03 Sep 2017 06:15:33 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:60237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doRwB-0003Wl-8o for 21509@debbugs.gnu.org; Sun, 03 Sep 2017 06:15:31 -0400 Original-Received: from [192.168.1.100] ([46.125.249.17]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LaGfK-1d4ha01lfC-00m3Y6; Sun, 03 Sep 2017 12:15:22 +0200 In-Reply-To: <877fno9w6b.fsf@secretsauce.net> X-Provags-ID: V03:K0:LkGfFo29KegvU/wlpFoMC+hyWkjP311dubK80VFPSA10mcPbH+i ZqVM0FoWl06gpVTKbAN6ud9tb82C5v+X3HfLwXK9bhoafM9A8EK+1dfpqpkGnxF7gYdfSyS XH/z1b62J8lig/opziTTfM4c3GV+HyvuYy7p20T1VlgMtqLj3An2wSneklH18lnDtgLOrRY LUUkVX+KAgfpIT2Wi4inw== X-UI-Out-Filterresults: notjunk:1;V01:K0:hK0qkMIi6po=:jqYK5FWE9Gm5Qci6xztuwT Zj5QV2qohujWvBl5YcnnDXJTBx20yiU5Sou5fqLMEy1+ttAas5CLtBK+QSq7zaIiltyQ9kq5K MnaS0QQrUySeEXXxTC8nvOczetw4/xKWU3WfyO+twMU+TflIfarpTVmhBBev0QGKvZV1w5hy8 N/5Oc8DaMZUb7qUj2RDipcw+TXGNV6vnem2b7YgIuGIwyMyX5P3vLJNNc1aC42XUHq1KJRK3T mowCfWVdQLBFrEypzuTbzqk4WUPjvzIx+fx/zzPL/Krwz52/Y4CuelpN+Ml1ZXXGdEw9iXB0H g+BwEsJX1ZsmSaUK5eoNoWi08cniNAQ5KKgLvdvNlBNAOm2v0QlMNacJE3n4Jyw+Pkwgqp3X+ umywAxwglZQIuwPi0z14nB/Zp29ZIB38lk8J3plk7nVc3Ql3nSCJfw+N20Eb0bhGKT4ktjVNV JpSX5SuX2Iagj8Ns+UbFDyFQw0qr32KhS/lT2S4IDyuIwEdTkpM8q7QyP2WFEWMjtXV0IZvQN VTle6CuAFbBn1QsWWXCUH0biEMENZMMK2bRGBIztpd/cmdFYOddMvHQdwLxbTT6CR3ggIvR64 JEWULXFPi89Epau/o5LEZnpvNLSN9gZH95gKV3hpn7BWDuSO3DkNCkUJpXr2PTSWr76lxTX55 M3CAtXQFSwwpo4fTp9WU+zCzxnyjKFEGFkUZNruIIpKkOclPY0X1lsABpJhrjH2se/x1mVacF dL/H04RUiODA3NzZrQL21+dD5IaIlRx59iDsloydwiXF6IhKbcqLpFAlFu2OFvpPHAqto5Ye 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:136533 Archived-At: Dima, just in case you're still around > The issue is an X11 BadPixmap error thrown maybe 20% of the time when > the FIRST client frame is opened. I have only tested with the lucid > widgets. Steps: > > 1. emacs -Q --daemon > 2. In bash: while true; do timeout 1 emacsclient -a '' -c; sleep 1; done; > > So I spawn a new frame kill it after 1 second, then wait 1 more second > and repeat. Most of the time this looks like what you'd expect. About > 20% of the time, however, the new X window pops up momentarily, and > instantly goes away. What's happening internally is apparently an X11 > error that blows up the window. This isn't printed anywhere, but I use > perf to see it: > > # perf probe -x /usr/bin/emacs --add 'x_connection_closed error_message:string' > ... > > # perf record -p `pidof emacs` -eprobe_emacs:x_connection_closed > ... Ctrl-c when done > > # perf script > emacs-tst 24692 [000] 443392.814048: probe_emacs:x_connection_closed: (4c0000) error_message_string="X protocol error: BadPixmap (invalid Pixmap parameter) on protocol request 55" I now installed in master a "fix" for this, see also the discussion of Bug#27816. Can you try it and also check whether it has any implications on the memory leak problem? Thanks, martin