Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emacs freezes for 10-12 seconds #3338

Closed
manfredlotz opened this issue Oct 11, 2015 · 8 comments
Closed

Emacs freezes for 10-12 seconds #3338

manfredlotz opened this issue Oct 11, 2015 · 8 comments
Labels
<=(- UBO -)=> Searching stale marked as a stale issue/pr (usually by a bot)

Comments

@manfredlotz
Copy link

Running Fedora 22, Emacs 24.5.1 and spacemacs-0.104.2.

If I start Emacs, then do SPC f e h, then select org, and do a search for some string Emacs freezes for 10-12 seconds. CPU is at 100%.

If I start Emacs then load ~/.emacs.d/layers/org/README.org directly, and do the same search for a string then there is no freeze.

I observed that when doing SPC f e h emacs seems to load every layer available which looks weird.
Here the beginning of the messages.

Open the quickhelp.
PNG warning: Interlace handling should be turned on when using png_read_image
Loading /home/manfred/.emacs.d/layers/+fun/games/config.el (source)...done
Loading /home/manfred/.emacs.d/layers/+vim/unimpaired/funcs.el (source)...done
Loading /home/manfred/.emacs.d/layers/+vim/evil-snipe/config.el (source)...done
Loading /home/manfred/.emacs.d/layers/+vim/vinegar/funcs.el (source)...done
Loading /home/manfred/.emacs.d/layers/+vim/vinegar/config.el (source)...done
...

Any idea what could cause it?
Thanks, Manfred

@FiloSpaTeam
Copy link

Emacs freeze too with | char in a lambda function in Ruby files.

@manfredlotz
Copy link
Author

I just observerd that the freeze takes place if I search for the string 'link'. I searched for other strings and no freeze happened. If I search for 'link' in other documents, e.g. in the Django documentation, no freeze.
-- Manfred

@manfredlotz
Copy link
Author

I found out something new. I download the emacs tar ball and experimented with build options in order to see if I could find something where Emacs won't freeze. I did.

In the end font aliasing seems to be the cause of the problems. If I configure like this there is no freeze

./configure --without-all
--with-m17n-flt
--with-jpeg
--with-dbus
--with-freetype
--without-xft
--with-xpm
--with-xaw3d
--with-xiim
--with-libotf
--with-selinux
--with-gpm
--with-imagemagick
--with-x-toolkit=yes
--with-png
--with-tiff
--with-gif
--with-gsettings
--with-gnutls
--with-rsvg
--with-xml2
--with-gconf
--with-gpm

Observe that I have used without-xft. I have no idea what the solution will be as without aliasing things are more or less ugly.

@manfredlotz
Copy link
Author

One more observation. It seems that the freeze is dependant upon the font chosen in .spacemacs.

I had defined Lucida Grande Mono when the freezes happened. Changing this to DejaVu Sans Mono, and no freeze in README.org.

@manfredlotz
Copy link
Author

I don't know how to pursue this bug. I have no clue if it is a bug in Emacs, Evil, Spacemacs or in the Lucida Font.

@FiloSpaTeam
Copy link

With last update, 105, emacs freezes during Ruby autocomplete. I launched Ruby console with C-c C-k as always

@manfredlotz
Copy link
Author

I had the same today (also update to 105) with auto-comple and nim-mode. I think this is a new issue. It has nothing todo with the fonts.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<=(- UBO -)=> Searching stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

3 participants