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

Freezes Spacemacs in Ediff #123

Open
agzam opened this issue Dec 8, 2016 · 11 comments
Open

Freezes Spacemacs in Ediff #123

agzam opened this issue Dec 8, 2016 · 11 comments

Comments

@agzam
Copy link

agzam commented Dec 8, 2016

Apparently this is related.

syl20bnr/spacemacs#473

@agzam agzam changed the title Freezes Emacs in Ediff Freezes Spacemacs in Ediff Dec 8, 2016
@Apakollaps
Copy link

Would be awesome if the root cause could be identified somehow. I had to disable the spaceline package due to this, and the mode line is worse off for sure...

@zrzka
Copy link

zrzka commented May 29, 2017

@braham-snyder let's continue here, because it's spaceline related. Confirmed in LLDB, spent quite a lot of time when I was learning Emacs C internals when tracking it down.

This issue is caused by unicode character number 9448 ⓨ. My mode line height is 20. In 99% cases, ascent of this character is 16, descent is 4. Thus the sum is 20 and that's okay. But sometimes, descent is 5 (dunno why yet) -> sum is 21 -> 21 != 20 -> causing Emacs redisplay again, again, again and again. Never ending loop.

What's interesting is that this is pretty random. Didn't happen for a whole week. And when this starts happening, it happens á 5 minutes for example.

C level info ...

  • xdisp.c#17288 sets fonts_changed to true
  • CURRENT_MODE_LINE_HEIGHT returns 21
  • DESIRED_MODE_LINE_HEIGHT returns 20

@zrzka
Copy link

zrzka commented May 29, 2017

Font related config ...

   dotspacemacs-default-font '("PragmataPro Mono"
                               :size 14
                               :weight normal
                               :width normal
                               :powerline-scale 1.2)

@braham-snyder
Copy link

@zrzka some people found (in syl20bnr/spacemacs/issues/4730) that the following setting circumvented their issues, but it didn't work for everyone:

(setq dotspacemacs-mode-line-unicode-symbols nil)

Does that workaround your particular case?

@zrzka
Copy link

zrzka commented May 29, 2017

@braham-snyder just testing it now with :powerline-scale 1.4. Your tip will be next one. It's pretty hard to test as I don't have 100% reproducible case yet. I just experienced week without a freeze. Also it drives me crazy to work in Emacs recompiled from source code, with debug symbols, no opts, no vfork, ... slow as hell. The whole process is very very slow. Also learning Emacs internals to provide better bug report, because Emacs shouldn't freeze in this case IMHO.

@braham-snyder
Copy link

braham-snyder commented Aug 16, 2017

I've changed my modeline up a lot, but I'm now able to prevent/reproduce the behavior above by hiding/showing unicode workspace numbers in my modeline. My best guess as to why I didn't have any luck with it before is that I was setting that variable too late without noticing: it looks like workspace numbers (which are conditionally hidden) are actually the only applicable segment in my modeline (I happen to prefer no mode lighters and no window numbers).

@CeleritasCelery
Copy link

That is in line with what I would expect. Now the only real question is if we can track down why those Unicode symbols are causing a freeze, or the standing advice will just be to disable them.

@Apakollaps
Copy link

The disabling of the unicode characters has to be done at the right place, as hinted above. Changing the value of dotspacemacs-mode-line-unicode-symbols to nil in the dotspacemacs/initfunction, or setting it in user-init (not user-config) seems to work. This makes it possible to use spaceline again, which is sweet.

@WhittlesJr
Copy link

Sadly, this is still an issue. My mode-line languishes as spartan, desolate plain-text, utterly bereft of all beauty.

@benbot
Copy link

benbot commented Nov 13, 2018

I'm still seeing emacs lock up even with dotspacemacs-mode-line-unicode-symbols set to nil

Is that fix still working for anyone else?

@alexisvincent
Copy link

I think I've seen the same issue just now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants