git fails from IntelliJ on Windows 10 with fork: can't reserve memory for parent stack

喜夏-厌秋 提交于 2020-01-24 09:53:25

问题


I'm not sure what the cause for this problem, but git fails since I upgraded to Windows 10, from IntelliJ only.

Whenever I use it from SmartGit or Cygwin CLI, everything works as it should, but running pull, rebase or anything else from withing IntelliJ always ends up with:

C:\cygwin64\home\nati\git\afa\devel\java>git pull
      1 [main] git 9112 C:\cygwin64\bin\git.exe: *** fatal error in forked process - fork: can't reserve memory for parent stack 0x600000 - 0x800000, (child has 0x400000 - 0x600000), Win32 error 487
    528 [main] git 9112 cygwin_exception::open_stackdumpfile: Dumping stack trace to git.exe.stackdump
      9 [main] git 15628 fork: child -1 - forked process 9112 died unexpectedly, retry 0, exit code 0x100, errno 11
error: cannot fork() for git-pull: Resource temporarily unavailable

I tried restarting or some other things I found online, but no good. I'm not even sure whether its a Win10, Git, or Idea issue.


回答1:


As Engineer Dollery mentioned in the comment the problem is I tried to fork a 64 bit operation (cygwin) from a 32 bit application (IntelliJ).

The solution is to use the 64-bit IntelliJ (idea64.exe)



来源:https://stackoverflow.com/questions/36249511/git-fails-from-intellij-on-windows-10-with-fork-cant-reserve-memory-for-parent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!