From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#37895: 26.3; X protocol error: BadLength (poly request too large or internal Xlib length error) on protocol request 139 Date: Fri, 25 Oct 2019 18:37:01 +0200 Message-ID: References: <76051a354c8fe7d23632226f5b51d93233c3c522.camel@gmx.de> <83k18uxn29.fsf@gnu.org> <2bc605b7f4bce3cdf8a705b31ba8b1667cfe461b.camel@gmx.de> <837e4uxgdr.fsf@gnu.org> <898cb0bbc5006ac293c21eb8dfe876faf3f6be27.camel@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="50299"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37895@debbugs.gnu.org To: Unknown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 25 18:41:34 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iO2eb-000Clq-Dx for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 18:41:33 +0200 Original-Received: from localhost ([::1]:34590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO2eZ-0003pj-Nk for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 12:41:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39309) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO2bE-0004hg-OQ for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 12:38:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iO2bC-0006sX-Gd for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 12:38:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58721) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iO2bC-0006sT-DW for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 12:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iO2bB-0003iB-Rq for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 12:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Oct 2019 16:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37895 X-GNU-PR-Package: emacs Original-Received: via spool by 37895-submit@debbugs.gnu.org id=B37895.157202143214198 (code B ref 37895); Fri, 25 Oct 2019 16:38:01 +0000 Original-Received: (at 37895) by debbugs.gnu.org; 25 Oct 2019 16:37:12 +0000 Original-Received: from localhost ([127.0.0.1]:39309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iO2aN-0003gw-Pd for submit@debbugs.gnu.org; Fri, 25 Oct 2019 12:37:12 -0400 Original-Received: from mail-wr1-f68.google.com ([209.85.221.68]:39307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iO2aL-0003gh-UJ for 37895@debbugs.gnu.org; Fri, 25 Oct 2019 12:37:10 -0400 Original-Received: by mail-wr1-f68.google.com with SMTP id a11so3052687wra.6 for <37895@debbugs.gnu.org>; Fri, 25 Oct 2019 09:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=0eo/CDI1xz4AygS5ysp4dekEtrnDRKYnAIcJPDg/nIw=; b=Rsl6hcUaT63uD5BBjrkGx2GvhaFgmfloemtKc+XlwJlX7fa65uPPWZqjAMR9fFoB6U Ru3Ug27j3S9XEyjx3QRyGHCG3xI+h7YDopE8AfMMXkgMGgcIwFtMUFSsonYro5eEmjYp HuQNLdnelRz3ODgG4o+pUEN13M8Lf4Q77HhraP8jD+QXHroMnlqPuoG1By/DUVG3O88a 4zsVzq0M0M1DWP6GmdNDUuCS00gUuY/CrsFtxAikI4MXSys8Sp9Y9Wm3NQ49H8Rsqk2j XM46MrTVKXifvzyp90A36dVR3ABTSKIPS5FFE0JPN0p1TXaJ/mCaSU9pyQ41d5XrKToy l5sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=0eo/CDI1xz4AygS5ysp4dekEtrnDRKYnAIcJPDg/nIw=; b=gtrSekhDnTIJo8FccoF7CZJp9qRVuoI+A4zlbxv7X2OAcqjxjZ8pQVLfyxiTIaMUre c9y0mW0pbtFdZUY9Nh0jWXiKaTcD7JQjvYNQhQCeSa98qoxKEtgzdtF/HJi1bfoHGOg5 gyhZ5T+bicz8shubwFc3v2tAtHFKPrrpWx+nDK6kr7KOQLd+DkHFk9oOm/wMpP8JP6QG w5Mge/G3p0x586h6M3XpWWg2jSQGtT1HCcBD1OUHpflAzdB2KCAgMJNTLMEHT6+pr3Zi bDudF/FKkZXHdxp/wClL/TPrVixorR2aW4WEfDP7BVgpHGJvHuRybWkPPZQqWcOsaq4B 8UPA== X-Gm-Message-State: APjAAAXvXcGHP1D+lV59qEzKBVFVYXeSlCPE5AlxKGVcE8d0PVSyqG00 sr1jT2IkxHTkU41aKU2en9h+HZhp X-Google-Smtp-Source: APXvYqxDlyLXuhNrZrv5A4hrtK+4Murcc2iiz19eQO6k7lZdJHiNWmuEykt0XgrtUg0sS8OE+od81g== X-Received: by 2002:a5d:55ce:: with SMTP id i14mr3782622wrw.169.1572021423464; Fri, 25 Oct 2019 09:37:03 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id h17sm2989347wme.6.2019.10.25.09.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 09:37:02 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <898cb0bbc5006ac293c21eb8dfe876faf3f6be27.camel@gmx.de> (Unknown's message of "Thu, 24 Oct 2019 20:06:35 +0200") 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: 209.51.188.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:170165 Archived-At: >>>>> On Thu, 24 Oct 2019 20:06:35 +0200, Unknown said: >> So your file included some emoji, is that correct? Unknown> Well, that stands to reason. I suspect the doom-modeline package Unknown> https://github.com/seagle0128/doom-modeline Unknown> which relies heavily on icons and unicode symbols. In particular, there Unknown> are icons for the file types and minor modes. I think that opening a Unknown> C/C++ file activates some major/minor mode associated with an Unknown> icon/symbol triggering the error. Bug 37786 looks very similar to this (and on Arch Linux as well). If you can build the emacs-26 branch, could you see if the following patch fixes your crash? diff --git i/lisp/international/fontset.el w/lisp/international/fontset.el index c90d4f53bd..e80a1a87b9 100644 --- i/lisp/international/fontset.el +++ w/lisp/international/fontset.el @@ -804,7 +804,6 @@ setup-default-fontset #x2664 (#x2667 . #x2669) (#x266C . #x26FF) - (#x2700 . #x27bF) ;; Dingbats (#x27C0 . #x27EF) ;; Misc Mathematical Symbols-A (#x27F0 . #x27FF) ;; Supplemental Arrows-A (#x2900 . #x297F) ;; Supplemental Arrows-B diff --git i/src/ftfont.c w/src/ftfont.c index 823fb2095c..017b349318 100644 --- i/src/ftfont.c +++ w/src/ftfont.c @@ -861,6 +861,9 @@ ftfont_list (struct frame *f, Lisp_Object spec) #endif /* FC_CAPABILITY */ #ifdef FC_FONTFORMAT FC_FONTFORMAT, +#endif +#ifdef FC_COLOR + FC_COLOR, #endif NULL); if (! objset) @@ -902,6 +905,15 @@ ftfont_list (struct frame *f, Lisp_Object spec) { Lisp_Object entity; + { + FcBool b; + if (FcPatternGetBool (fontset->fonts[i], FC_COLOR, 0, &b) + == FcResultMatch && b) + { + fprintf (stderr, "Skipping Color font\n"); + continue; + } + } if (spacing >= 0) { int this;