-
Notifications
You must be signed in to change notification settings - Fork 797
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 hangs on scratch buffer for 2 seconds when opening unless key is pressed #1775
Comments
Thanks for reporting the issue. Can you please share out an strace with timestamps of the emacs launch? |
I am running strace on Bash on Ubuntu on Windows with relative timestamps: http://paste.ubuntu.com/24184468/ The hang appears to be at:
Here is the strace on a real Ubuntu 14.04 machine that exhibits no hang: http://paste.ubuntu.com/24184497/ |
Thanks for providing the strace! Looking through the code the only thing I can think of here is waiting with a lock held, but I'll need to get a local repro and report back. |
I upgraded my Bash on Ubuntu on Windows installation to 16.04 and this is still an issue, by the way. |
Thanks for the update. Marking this as a bug for tracking. |
Sorry for bothering you guys again, I just took a new strace on 16.04 and the hanging call is slightly different. Here's the strace: http://paste.ubuntu.com/24389133/ Here's the hanging call:
Here's |
Not a bother at all, and thanks for the update. Based on the above, we're probably missing an epoll update. |
I can confirm with this issue. using Emacs25. Another observation is, it seems the problem is related to FS IO. |
Issue is still alive and well. Has anyone discovered a workaround? |
GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu) |
@HenryGessau what is the output you get from the OP repro on 19041: |
@therealkenc I am no longer encountering this issue. Sorry, I don't know when it stopped happening. |
Description: emacs-nox takes an order of magnitude slower to load than on a "real" Ubuntu 14.04 machine with worse specifications, and other text editors
Expected results: emacs should open almost instantaneously, allowing you to edit files
Actual results: emacs hangs on a scratch buffer for about 2 seconds before opening any file. You can "skip" this delay by pressing a random key, but that inserts weird characters at the top of the file (#1505) and isn't something you want to do every time you want to edit a file.
Timings on Bash on Ubuntu on Windows:
Timings with real Ubuntu 14.04.5 installation on a slower computer:
Windows build number: 15055, this has happened on every Bash on Ubuntu on Windows since 14393.
Steps:
Timing commands are provided in the Actual Results section.
The text was updated successfully, but these errors were encountered: