Bad-ptr / persp-mode.el

named perspectives(set of buffers/window configs) for emacs
394 stars 44 forks source link

Creating pipe: Too many open files #131

Open ZelCloud opened 2 years ago

ZelCloud commented 2 years ago

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 commented 2 years ago

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 0d048ef765236f599d7909b8e1fb974d3dd84d87 commit.

You can try previous commit and see if it helps bb9fa8a046cddc83304ac3c922f9876a6da72317 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 commented 2 years ago

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...)?