You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After building myself and looking at the error console, it looks like this is due to an old version of libgit2 used by gitx:
Error opening repository "/Users/philipneustrom/updoc": Error Domain=PBGitXErrorDomain Code=0 "The document “updoc” could not be opened. /Users/philipneustrom/updoc does not appear to be a git repository." UserInfo={NSUnderlyingError=0x952914e10 {Error Domain=PBGitXErrorDomain Code=0 "Repository initialization failed" UserInfo={NSUnderlyingError=0x952915c80 {Error Domain=GTGitErrorDomain Code=-1 "Failed to open repository at URL file:///Users/philipneustrom/updoc/.git/." UserInfo={NSLocalizedDescription=Failed to open repository at URL file:///Users/philipneustrom/updoc/.git/., NSUnderlyingError=0x9529164f0 {Error Domain=GTGitErrorDomain Code=-1 "failed to parse config file: Invalid configuration key (in /Users/philipneustrom/.config/delta/themes.gitconfig:310, column 0)" UserInfo=0x951fdb2a0 (not displayed)}}}, NSLocalizedDescription=Repository initialization failed, NSLocalizedFailureReason=/Users/philipneustrom/updoc does not appear to be a git repository.}}, NSLocalizedDescription=The document “updoc” could not be opened. /Users/philipneustrom/updoc does not appear to be a git repository., NSLocalizedFailureReason=/Users/philipneustrom/updoc does not appear to be a git repository.}
I use the delta git pager and the multi-line configuration string causes the old version of libgit2 to choke. My .gitconfig includes:
Curious why this happens on your side. I use MacOS 26.3 (25D125) and gitx 1.2 as well, and I don't see this. even I use > 200 repositories.
Just to verify if it's a general or a local issue, it would be helpful when you zip your repo and send it to me (if possible)
[63](https://github.com/gitx/objective-git/actions/runs/22514807949/job/65230642196?pr=87#step:10:2864)
In file included from /Users/runner/work/objective-git/objective-git/ObjectiveGit/GTTreeEntry.m:33:
/Users/runner/work/objective-git/objective-git/ObjectiveGit/GTRepository.h:61:25: error: use of undeclared identifier 'GIT_TRANSPORTFLAGS_NONE'
61 | GTTransportFlagsNone = GIT_TRANSPORTFLAGS_NONE
| ^
/Users/runner/work/objective-git/objective-git/ObjectiveGit/GTRepository.h:242:212: error: unknown type name 'git_transfer_progress'; did you mean 'git_indexer_progress'?
242 | + (instancetype _Nullable)cloneFromURL:(NSURL *)originURL toWorkingDirectory:(NSURL *)workdirURL options:(NSDictionary * _Nullable)options error:(NSError **)error transferProgressBlock:(void (^ _Nullable)(const git_transfer_progress *, BOOL *stop))transferProgressBlock;
@hannesa2 I'd like to help with this. Gitx is randomly crashing quite often for me now and I'm hopeful that upgrading this will help. That constant was removed in v1.7.0 of libgit2, I'm working on fixing and testing in my fork.
Activity
hannesa2 commentedon Apr 8, 2025
Ohh no ! Unfortunately even the CI doesn't work anymore
But I'm the wrong guy for fixing segmentation faults
hannesa2 commentedon Apr 25, 2025
I've fear to update my mac to 15.4 concerning this issue.
Can someone confirm, that a MacOS 15.4 prevent a properly working gitx ?
Or better: does is work for someone with MacOS 15.4.
cxwx commentedon Apr 25, 2025
I've reinstall gitx from homebrew, It worked now, not sure which deps cause this errors.
justincbeck commentedon Apr 25, 2025
I've had no issues on the latest (as of today) of MacOS.
philip-updoc commentedon Aug 11, 2025
I'm seeing a segmentation fault on my M4 mac running Mac OS 15.6.
Here's the log
Interestingly, the super old build here works fine for me:
https://github.com/rowanj/gitx/releases
philip-updoc commentedon Aug 11, 2025
Additional clues:
gitxcli command segfaults.hannesa2 commentedon Aug 11, 2025
This super old version is x86.
On my side with MacOS
15.6 (24G84)all works finehannesa2 commentedon Aug 11, 2025
@philip-updoc maybe you can give #470 (comment) a chance
philip-updoc commentedon Aug 13, 2025
When I try
brew install gitxI get the same error as for the downloaded version. AFAICT they're the same version for me.philip-updoc commentedon Feb 28, 2026
Tested again just now on 26.3 (25D125) and it still segfaults when I run
gitxinside a git repository.If I open the GitX app directly, it will open. But when I try to use File -> Open to open a repository it always gives me this message:
philip-updoc commentedon Feb 28, 2026
After building myself and looking at the error console, it looks like this is due to an old version of
libgit2used by gitx:I use the delta git pager and the multi-line configuration string causes the old version of libgit2 to choke. My
.gitconfigincludes:and libgit2 will parse all of the config files, even if they're not applicable to the calling app (gitx in this case).
Here's the multi-line string the older libgit2 chokes on:
changing it to a single-line string fixed the issue:
hannesa2 commentedon Feb 28, 2026
Curious why this happens on your side. I use MacOS 26.3 (25D125) and gitx 1.2 as well, and I don't see this. even I use > 200 repositories.
Just to verify if it's a general or a local issue, it would be helpful when you zip your repo and send it to me (if possible)
philip-updoc commentedon Feb 28, 2026
Yes, it is a local issue. Fixing my config file fixed the issue. It's due to the old version of libgit2 used (v0.28.5) versus current release v1.8.5.
hannesa2 commentedon Feb 28, 2026
I tried to bump libgit2 to 1.8.5
gitx/objective-git#87
#509
https://github.com/gitx/objective-git/actions/runs/22514807949/job/65230642196?pr=87
but it runs into
To be honest, I've no clue how to solve it
paulnicholson commentedon Mar 1, 2026
@hannesa2 I'd like to help with this. Gitx is randomly crashing quite often for me now and I'm hopeful that upgrading this will help. That constant was removed in v1.7.0 of libgit2, I'm working on fixing and testing in my fork.
paulnicholson commentedon Mar 1, 2026
@hannesa2 I got it to build on GitHub, https://github.com/paulnicholson/objective-git/actions/runs/22538294979/job/65289440144?pr=1. I can't get it to build on my machine because of a missing architecture in the External libraries. File 'External/libgit2.a': found architecture 'arm64', required architecture 'x86_64'. I'd like to get that solved before completing my changes.
hannesa2 commentedon Mar 6, 2026
@paulnicholson I tried your branch and I run into an build error, but after this fix (I've no clue, if this is the right way)