-
Notifications
You must be signed in to change notification settings - Fork 856
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
Graphical emacs doesn't work; spins on poll()/writev()/recvmsg() #611
Comments
being dumped out about as quickly as I would expect the Windows Console to be able to render it. |
Interestingly, if I open up a WSL terminal and do In this setup,
And
In this scenario, |
It's probably worth pointing out that command-line emacs works just fine. You can verify this by either un-setting the |
This has, oddly, been fixed in emacs-25 pretest. I am using graphical emacs atm. |
Thanks! I can confirm that graphical emacs works for me with the "emacs-snapshot" package in the "ppa:ubuntu-elisp" PPA, which currently reports as "GNU Emacs 25.1.50.2". |
@aseering @redviper Do you guys have any problem with maximize emacs window? This is my problem emacs-snapshot with Xming. It doesn't refresh current frame fit to maximized window width & height. $ emacs -fs
$ emacs -mm
$ emacs -fh -fw These doesn't work for me. Any ideas?
|
Oh, good point -- yes, I do have that problem now, with the new emacs version. |
I tried to run emacs with MobaXTerm. No luck on maximize window, but I think MobaXTerm is better than Xming on display images and more clear fonts. Some of commands that related to widgets such like GTK does not work, so I guess emacs with some other GUI library would possibly work if it supported. (menu-bar-mode 0) ;; no effect
(tool-bar-mode 0) ;; no effect too |
Frame paramters are not modifiable. (frame-parameter (selected-frame) 'width) ;; Returns 80
(set-frame-parameter (selected-frame) 'width 300)
(frame-parameter (selected-frame) 'width) ;; Returns 80
;; Whole list of frame parameters
(frame-parameters) |
@aseering Would you try this? It seems like emacs's $ emacs -g 185x53
Here's a strace log(constantly loop):
|
@lateau -- yes, I don't see a continuous loop of strace output. I see a lot of output whenever I interact with the window in any way -- mouse is over the window, cursor is blinking, etc -- but that's what I would expect given that emacs is interacting with the screen (and over TCP, even) whenever those things happen. |
@aseering You're right. Launch emacs with |
You can fix the resizing issue by compiling a Lucid version instead of GTK. The problem seems to be something with the GTK resizing code. Get emacs from the git repo (I recommend the GitHub mirror btw, Savannah is slow), and build with ./configure --with-x-toolkit=lucid You can get all the dependencies worked out before hand too with apt-get build-dep emacs24-lucid. |
xemacs works fine (although I never use it on real Linux) |
Recently I find that the yank for x-selection is broken. Is this happening for others also or have I messed up my WSL configuration? |
@redviper It works on my build but sometimes it causes freezing emacs. |
I have problem with pasting text into emacs from Windows, while copying text from emacs to windows is just fine. Any workaround? |
Where do i find the emacs-25 pretest package mentioned in this issue? |
sudo add-apt-repository ppa:ubuntu-elisp/ppa |
Seems it's fixed in Creator's update, follow the instructions on the link: https://www.reddit.com/r/bashonubuntuonwindows/comments/65dpjd/getting_xapplications_running_in_ubuntu_16041/ |
This circa 2016 issue is I think (?) fundamentally dupe #1609 (epoll wait doesn't). Even if the problem wasn't that issue specifically, there is a lot of select/poll water under the bridge since this issue was submitted. We'll call it fixedcreatorsupdate. If there are any outstanding issues with xemacs running on WSL that would not manifest in the same way when running remotely from Real Linux to Xming, VcXsrv, Windows Remote Desktop via xrdp (etc etc) do feel to break out a follow-up. |
Splitting this out from #187 so that it doesn't get lost.
Steps to reproduce:
sudo apt-get install emacs24
export DISPLAY=localhost:0
in a WSL terminalemacs
in the same WSL terminalExpected:
Actual:
And emacs hangs / is unresponsive. The
X
button in the top-right corner does not close it. Ctrl-C in the WSL terminal window doesn't close it either. It's necessary to get a shell prompt and do akill -9
to get it to close.The text was updated successfully, but these errors were encountered: