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

Creating pipe: Too many open files #131

Open
ZelCloud opened this issue Mar 19, 2022 · 2 comments
Open

Creating pipe: Too many open files #131

ZelCloud opened this issue Mar 19, 2022 · 2 comments

Comments

@ZelCloud
Copy link

I have around 20 files open and 3 perspectives and I'm trying to save this with persp-state-save, but I'm getting the error of "Creating pipe: Too many open files". Which is odd since I know I've closed my emacs session with significantly more files and I didn't have issues saving or restoring with persp-state-load.

System - Windows 10
Emacs - 27.2 (gnu emacs using runemacs.exe)
persp-mode.el latest

I'd like to be able to save the entire state and all the files, so closing files till I go under whatever the threshold is, isn't exactly a solution. Any advice is appreciated.

@Bad-ptr
Copy link
Owner

Bad-ptr commented Mar 29, 2022

This is strange.. I don't believe that the problem is related to persp-mode.el
The most recent change in saving state was this 0d048ef commit.

You can try previous commit and see if it helps bb9fa8a
https://raw.githubusercontent.com/Bad-ptr/persp-mode.el/bb9fa8a046cddc83304ac3c922f9876a6da72317/persp-mode.el

Try to reproduce this "bug" starting with emacs -Q, then loading persp-mode.el with M-x load-file, open your 20 files and try to save state.

@ZelCloud
Copy link
Author

I've done some more experimenting and testing, and I upgraded my emacs version to 28.1 (zipped version not installer) but I've had largely the same results. Everything works fine up to a certain number of buffers and perspectives and then everything crashes down. I also tried this with perspective.el and had largely the exact same issues. So it's probably not an issue with persp-mode.el itself or whatever changes have been made since this project was forked.

Also for anyone who has this working on windows, any advice? Or information on which emacs setup you have (ex. through wsl, through msys2, cygwin, installer, etc...)?

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

2 participants