Nati
Nati

Reputation: 1032

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

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.

Upvotes: 3

Views: 1492

Answers (1)

Nati
Nati

Reputation: 1032

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)

Upvotes: 4

Related Questions