今天突然发现我在本地的任何一个仓库下 git diff
或 git log
都会提示:
memory allocation of 324400560136122233 bytes failed
有哪位老哥知道是哪里出了问题吗?怎么排查?
网上搜了一圈感觉都不相关,是我姿势不对?
环境:macOS Monterey 12.2.1 ,git version 2.35.1
1 aru 2022-03-13 20:51:23 +08:00 内存不够了,重启下看看 |
![]() | 3 darkengine 2022-03-13 21:12:45 +08:00 看下 git 有没有更新,刚升级到 Monterey 的时候经常看到有 app 的内存占用到几十个 GB 的,说不定是 12.2.1 又搞出 bug 了 |
4 deplivesb 2022-03-13 21:15:50 +08:00 |
![]() | 6 jaredyam OP @darkengine 我担心是是不是搞 brew 更新时哪个软件带来的 bug ,最近好像就这个操作最有不确定性。 |
8 yzwduck 2022-03-13 21:34:56 +08:00 ![]() 1 、试试用 Xcode.app (或 Command Line Tool) 里的 git 会不会报错; 2 、试试删除掉用户目录下的 git 配置文件? |
![]() | 9 jaredyam OP ![]() @yzwduck 破案了,通过 ~/.gitconfig 成功定位到 delta 这个 pager ,应该是它引起的。你不说我都把这茬忘了! @aru @darkengine @deplivesb 感谢各位大哥,破案了,应该是 delta pager 引入的问题。 |
![]() | 10 jaredyam OP 在 git-delta 的 Issues 里找到了解决方案: https://github.com/dandavison/delta/issues/878#issuecomment-1004068761 |