git从Windows 10上的IntelliJ以fork失败:无法为父堆栈保留内存 [英] git fails from IntelliJ on Windows 10 with fork: can't reserve memory for parent stack

查看:223
本文介绍了git从Windows 10上的IntelliJ以fork失败:无法为父堆栈保留内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



每当我在SmartGit中使用它时,我都不知道这个问题的原因,但git因为我升级到Windows 10而失败。或者Cygwin CLI,一切正常,但是运行 pull rebase 或者任何与IntelliJ相关的东西总是会结束with:

  C:\cygwin64\home\\\
ati\git\afa\devel\java> git pull
1 [main] git 9112 C:\cygwin64\bin\git.exe:***分叉进程中的致命错误 - fork:无法为父堆栈保留内存0x600000 - 0x800000,(孩子有0x400000 - 0x600000),Win32错误487
528 [main] git 9112 cygwin_exception :: open_stackdumpfile:将堆栈跟踪转储到git.exe.stackdump
9 [main] git 15628 fork:child -1 - 分叉进程9112意外死亡,重试0,退出代码0x100,errno 11
错误:不能fork()for git-pull:资源暂时不可用



I tr重新启动或者其他一些我在网上找到的东西,但没有好处。
我甚至不确定它是一个Win10,Git还是Idea的问题。

解决方案

问题是我试图从32位应用程序(IntelliJ)分叉64位操作(cygwin)。



解决方案是使用64位IntelliJ(idea64.exe)

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.

解决方案

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)

这篇关于git从Windows 10上的IntelliJ以fork失败:无法为父堆栈保留内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆