gitk error: autorelease pool page corrupted gitk error: autorelease pool page corrupted git git

gitk error: autorelease pool page corrupted


I solved the issue by resetting gitk configurations with:

rm ~/.config/git/gitk


Thanks to this post, I managed to get gitk working again - I was really missing it! The workaround only works once though, and then it is back. I've started a discussion to try and get it fixed properly here:

https://github.com/Homebrew/discussions/discussions/705

The problem is due to this line in the ~/.config/git/gitk file:

set geometry(state) zoomed

If you change it to:

set geometry(state) normal

Then gitk will work again, but then it changes it back to zoomed, even if you don't change anything, so it starts crashing again. My colleague came up with this workaround for that:

alias gitk="sed -i .bak 's/zoomed/normal/g' ~/.config/git/gitk && /usr/local/bin/gitk"

Setup this alias in Bash and it will replace the broken "zoomed" with "normal" each time you run gitk, until such time as the real problem is fixed.

I hope this extra information helps. I was sure as hell missing this tool!


It feels like a bug in Gitk to me. If the window is the size of the whole screen, then geometry(state) is set to zoomed each time Gitk is opened. As above, set to normal manually (using open ~/.config/git/gitk) then resize the window to prevent this happening.