unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Will Bush <will.g.bush@gmail.com>
To: Robert Pluim <rpluim@gmail.com>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>, 40733@debbugs.gnu.org
Subject: bug#40733: 28.0.50; Emacs locks up on paste (yank) of unicode characters
Date: Tue, 21 Apr 2020 07:19:56 -0500	[thread overview]
Message-ID: <CA+aYz4TicXRvtBchSaNoppPofChEcsBn58m-jEWZwJ1B3uojGg@mail.gmail.com> (raw)
In-Reply-To: <m2lfmpw41f.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3264 bytes --]

Ok I've made some progress on this issue.

I was playing around with my fonts:

https://github.com/willbush/system/blob/085e4c547f0bd84729f12f82b920d867d05e1591/nixos/fonts.nix#L7

I was curious how many fonts I would have (using `fc-list | wc -l`) if I
removed
them all from that list. After removing them all, I checked my email in
Gmail
using Firefox and noticed the `︵` was rendering properly. Then I tried
pasting it
into Emacs and lo and behold no lag issue!

So I did a binary search through my font list commenting / uncommenting
them and
applying the changes with `sudo nixos rebuild switch` (as one does in
NixOS),
and found google-fonts is causing the issue.

I verified it several times. When I remove google-fonts, Firefox renders the
character fine and Emacs yanks it without issue. When I add google-fonts
back
Firefox doesn't render the character and Emacs yanking it lags like crazy.

The google-fonts Nix expression is here:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/fonts/google-fonts/default.nix

I tried Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.17) (A
version that just happens to be in nixpkgs) again to see what it would do
when
yanking that character with and without google-fonts installed.

With google-fonts installed it doesn't have latency issues, but it inserts
an
empty whitespace looking character (wider than a normal space). Without
google-fonts installed, it renders the character fine with no latency.

So I suspect even if there is an issue with google-fonts, there's still a
regression in Emacs since 26.3. I'll try newer versions of Emacs later to
try to
narrow the version gap between 26.3 and 28.0.50.

Perhaps someone can try to reproduce the issue by installing google-fonts
(note
the git rev used in default.nix above is
f113126dc4b9b1473d9354a86129c9d7b837aa1a
for https://github.com/google/fonts).

On Tue, Apr 21, 2020 at 5:01 AM Robert Pluim <rpluim@gmail.com> wrote:

> >>>>> On Mon, 20 Apr 2020 23:48:48 +0100, "Basil L. Contovounesios" <
> contovob@tcd.ie> said:
>
>     Basil> Will Bush <will.g.bush@gmail.com> writes:
>     >> Configured using:
>     >> 'configure
>     >>
> --prefix=/nix/store/2142cl219v49czkkrrddh3jy3415nax0-emacs-git-20200420.0
>     >> --disable-build-details --with-modules --with-x-toolkit=gtk3
> --with-xft
>     Basil>
>  ^^^^^^^^^^
>
>     Basil> I know next to nothing about fonts, and I'm sure others will
> correct me,
>     Basil> but etc/NEWS has the following to say:
>
>     Basil>   ** 'configure' now warns about building with libXft support.
>     Basil>   libXft is unmaintained, and causes a number of problems with
> modern
>     Basil>   fonts including but not limited to crashes; support for it
> may be
>     Basil>   removed in a future version of Emacs.  Please consider using
>     Basil>   Cairo + HarfBuzz instead.
>
>     Basil> I don't know if it's related (and the 'C-u C-x =' output in
> your other
>     Basil> message shows the ftcrhb backend in use), but perhaps you can
> try
>     Basil> building --without-xft to see if it makes any difference.
>
> If it does thatʼs a bug, since we implicitly do '--with-cairo' now.
>
> Robert
>

[-- Attachment #2: Type: text/html, Size: 4394 bytes --]

  reply	other threads:[~2020-04-21 12:19 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-20 11:05 bug#40733: 28.0.50; Emacs locks up on paste (yank) of unicode characters Will Bush
2020-04-20 15:52 ` Robert Pluim
2020-04-20 16:13   ` Eli Zaretskii
2020-04-20 21:27     ` Will Bush
2020-04-20 20:20   ` Alan Third
2020-04-20 22:48 ` Basil L. Contovounesios
2020-04-21 10:01   ` Robert Pluim
2020-04-21 12:19     ` Will Bush [this message]
2020-04-21 13:19       ` Robert Pluim
2020-04-21 19:35         ` James Cloos
2020-04-22  7:35           ` Robert Pluim
2020-04-25 10:34             ` Will Bush
     [not found]               ` <CA+aYz4RNB1-g5uUz-M-XuJEhZPGpA4X6n8NSiTCUdOMkpReFng@mail.gmail.com>
2020-04-25 13:34                 ` bug#40733: Fwd: " Will Bush
2020-04-25 13:50               ` Eli Zaretskii
2020-04-29 11:59                 ` Will Bush
2020-04-29 12:16                   ` Eli Zaretskii
2020-04-29 12:42                     ` Will Bush
2020-04-29 12:50                       ` Robert Pluim
2020-04-29 14:30                       ` Eli Zaretskii
2020-06-01 11:19                         ` Will Bush
2020-06-01 11:44                           ` Pip Cet
2020-06-01 15:15                             ` Eli Zaretskii
2020-06-01 15:50                               ` Pip Cet
2022-04-24 14:20                           ` Lars Ingebrigtsen
2022-05-18  3:39                             ` Will Bush
2022-05-18 11:18                               ` Eli Zaretskii
2022-06-15 12:40                               ` Lars Ingebrigtsen
2022-06-19 21:05                                 ` Will Bush
2022-06-19 22:25                                   ` Lars Ingebrigtsen
2020-04-21 14:29       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+aYz4TicXRvtBchSaNoppPofChEcsBn58m-jEWZwJ1B3uojGg@mail.gmail.com \
    --to=will.g.bush@gmail.com \
    --cc=40733@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    --cc=rpluim@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).