treemacs icon indicating copy to clipboard operation
treemacs copied to clipboard

"pfuture-new fail to spawn child process" error on Windows

Open davidshen84 opened this issue 1 year ago • 5 comments

Hi,

  • I am on Windows 11.
  • My Emacs is 28.
  • I am not using a MinGW or Cygwin environment.

When I use Treemacs and Magit together, I often get below error.

error in process sentinel: pfuture-new: Spawning child process: Resource temporarily unavailable
error in process sentinel: Spawning child process: Resource temporarily unavailable

Most of the time, no things seem to break. But sometimes, the Emacs window will freeze, and I have to kill the process.

I am not sure if this error is caused by Treemacs or a combination of Treemacs and Magit operations.

I tried to reduce the value of the treemacs-max-git-entries parameter but does not have any effect on this issue.

davidshen84 avatar Jul 20 '23 09:07 davidshen84

This issue has been automatically marked as stale because it has not had recent activity.

stale[bot] avatar Sep 19 '23 20:09 stale[bot]

Do you see anything suspicious when you call list-processes, like a bunch of old processes still being listed?

Alexander-Miller avatar Sep 20 '23 10:09 Alexander-Miller

Which process would that be? On my system, it is usually clean. Sometimes, it has a python process hanging there.

davidshen84 avatar Sep 20 '23 11:09 davidshen84

Python is what treemacs starts to do its async stuff. If you only see the occasional python process and there is no large list of zombies, then this is not the cause of your problem.

Other than that I cannot say what limit you are running into. I don't use windows with Emacs myself, and google doesn't seem to have anything useful either. At most you can disable treemacs-git-mode for a while and see if that helps.

Alexander-Miller avatar Sep 20 '23 11:09 Alexander-Miller

This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).

stale[bot] avatar Nov 19 '23 14:11 stale[bot]