From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Andersen Newsgroups: gmane.emacs.bugs Subject: bug#16420: 24.3; Drawing an overlay causes 100% cpu utilization Date: Sat, 11 Jan 2014 23:01:04 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307c9e12a0a14604efb8fa71 X-Trace: ger.gmane.org 1389490631 25725 80.91.229.3 (12 Jan 2014 01:37:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jan 2014 01:37:11 +0000 (UTC) To: 16420@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 12 02:37:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W29zJ-0005ua-DE for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Jan 2014 02:37:17 +0100 Original-Received: from localhost ([::1]:36073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W29zJ-00028m-0p for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Jan 2014 20:37:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W29zA-00028f-Rk for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 20:37:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W29z4-0006Vx-Ti for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 20:37:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W29z4-0006Vt-QO for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 20:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W29z4-0006xX-J8 for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 20:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Andersen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jan 2014 01:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16420 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138949061626717 (code B ref -1); Sun, 12 Jan 2014 01:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jan 2014 01:36:56 +0000 Original-Received: from localhost ([127.0.0.1]:47263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W29yx-0006wo-Dh for submit@debbugs.gnu.org; Sat, 11 Jan 2014 20:36:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53833) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W26cN-0000te-DJ for submit@debbugs.gnu.org; Sat, 11 Jan 2014 17:01:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W26cG-0005tJ-3r for submit@debbugs.gnu.org; Sat, 11 Jan 2014 17:01:21 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W26cG-0005tF-0t for submit@debbugs.gnu.org; Sat, 11 Jan 2014 17:01:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W26cA-0001DE-Tx for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 17:01:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W26c5-0005rC-SB for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 17:01:10 -0500 Original-Received: from mail-ve0-f169.google.com ([209.85.128.169]:42840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W26c5-0005r6-Nm for bug-gnu-emacs@gnu.org; Sat, 11 Jan 2014 17:01:05 -0500 Original-Received: by mail-ve0-f169.google.com with SMTP id c14so4490034vea.28 for ; Sat, 11 Jan 2014 14:01:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=Q6k2GUNBtamHKTD6XaSJ2gKzfzIoRgylxNos/pC7LGI=; b=Le98GImMWgxsTwTzeG4NLDJg6MjwdIb09Q5l7sSMY58fDS3RMtTficlRUb4BRWvIwf buwiZcAW1Z3N0NXpWXu23HEPBSjSW6oZz2TZJFnd30rpGcC7lFV62s0imkJGuPo/LNt3 OgFYQsRIrqxHjFUcoVgNl20tN4IX3l3UQ3ztMX6PXM+UtXgCKsxRbWzddl7l3ItzHKT2 pZOIhWopCRiGsfQcermXNmMuTqFIitMKgPZadqK84oSu7AMYua4Jx3LVCnvyhop6pyDt p0Kg1ZYNJ1lhB08xwxN8Ay069AlSj74npqMlW+PqkXAxlAfXcvbjGb+oq9ioKHqllvMt II9w== X-Gm-Message-State: ALoCoQn/1D5MoM1Hw0fiE0Qc+qNAusGo4jAUsCkvYL057aSnO8K4Z67JXOiL3DC9Yj3OTB4Lf5ww X-Received: by 10.52.26.148 with SMTP id l20mr245517vdg.28.1389477664687; Sat, 11 Jan 2014 14:01:04 -0800 (PST) Original-Received: by 10.58.90.139 with HTTP; Sat, 11 Jan 2014 14:01:04 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sat, 11 Jan 2014 20:36:54 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83322 Archived-At: --20cf307c9e12a0a14604efb8fa71 Content-Type: text/plain; charset=ISO-8859-1 Starting from emacs -Q: (defface flycheck-warning '((((supports :underline (:style wave))) :underline (:style wave :color "DarkOrange")) (t :underline t :inherit warning)) "Flycheck face for warnings." :package-version '(flycheck . "0.13") :group 'flycheck-faces) (let ((ov (make-overlay (point) (point-at-eol))) (face 'flycheck-warning)) (overlay-put ov 'face face)) ;; C-x C-e this last form to reproduce After evaluating this elisp, top reports 100% CPU utilization from X. The face used here is a squiggly underline. I tried using another face, isearch-fail face and that overlay was drawn just fine. I believe the problem is isolated to this squiggly underline face. At first I thought the issue was with flyspell, or flycheck, but these are just examples of modes that such a squiggly underline. I am running arch linux, without any desktop environment (I just use Xmonad and install whatever else I might want). The computer is a Dell Precision M4700. In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.2) of 2013-08-07 on -mnt-storage-buildroots-staging-x86_64-eric Windowing system distributor `The X.Org Foundation', version 11.0.11405000 Configured using: `configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--with-x-toolkit=gtk3' '--with-xft' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_COLLATE: C value of $LC_TIME: en_DK.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu debug time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --20cf307c9e12a0a14604efb8fa71 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Starting from emacs -Q:

= (defface flycheck-warning
'((((supports :underline (:style wa= ve)))
:underline (:style wave :color "DarkOrange"))
(t
:underline t :inherit warning))
"Flycheck = face for warnings."
:package-version '(flycheck . "= 0.13")
:group 'flycheck-faces)
=A0
(let ((ov (make-overlay (point) (point-at-eol)))
(face 'flych= eck-warning))
(overlay-put ov 'face face)) ;; C-x C-e this la= st form to reproduce

After evaluating this elisp, = top reports 100% CPU utilization from X.
The face used here is a squiggly underline. =A0I tried using another f= ace,
isearch-fail face and that overlay was drawn just fine. =A0I= believe the
problem is isolated to this squiggly underline face.= =A0At first I thought
the issue was with flyspell, or flycheck, but these are just examples = of
modes that such a squiggly underline.

I am running arch linux, without any desktop environment (I just use Xmona= d and install
whatever else I might want). =A0The computer is a Dell Precision M4700= .

In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, G= TK+ Version 3.8.2)
=A0of 2013-08-07 on -mnt-storage-buildroots-st= aging-x86_64-eric
Windowing system distributor `The X.Org Foundation', version 11.0.= 11405000
Configured using:
=A0`configure '--prefix= =3D/usr' '--sysconfdir=3D/etc' '--libexecdir=3D/usr/lib'= ;
=A0'--localstatedir=3D/var' '--with-x-toolkit=3Dgtk3' = '--with-xft'
=A0'CFLAGS=3D-march=3Dx86-64 -mtune=3Dge= neric -O2 -pipe -fstack-protector
=A0--param=3Dssp-buffer-size=3D= 4'
=A0'LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro'
=A0'CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2''

Important settings:
=A0 value of $LC_COLLATE: C
=A0 v= alue of $LC_TIME: en_DK.UTF-8
=A0 value of $LANG: en_US.UTF-8
=A0 locale-coding-system: ut= f-8-unix
=A0 default enable-multibyte-characters: t
Major mode: Lisp Interaction

Minor mod= es in effect:
=A0 tooltip-mode: t
=A0 mouse-wheel-mode: t
=A0 to= ol-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shado= w-mode: t
=A0 global-font-lock-mode: t
=A0 font-lock-mo= de: t
=A0 blink-cursor-mode: t
=A0 auto-composition-mode: t
<= div>=A0 auto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t

Load-path shadows:
None found.

Feat= ures:
(shadow sort gnus-util mail-extr emacsbug message format-sp= ec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rf= c2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
=
mail-prsvr mail-utils help-mode easymenu debug time-date tooltip
=
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
=
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abb= rev
minibuffer loaddefs button faces cus-face macroexp files text-properti= es
overlay sha1 md5 base64 format env code-pages mule custom widg= et
hashtable-print-readable backquote make-network-process dbusbi= nd
dynamic-setting system-font-setting font-render-setting move-toolbar g= tk
x-toolkit x multi-tty emacs)

--20cf307c9e12a0a14604efb8fa71--