gitui icon indicating copy to clipboard operation
gitui copied to clipboard

GitUI was closed due to an unexpected panic.

Open halo59-dev opened this issue 6 months ago • 3 comments

I am using Windows 11 with Windows Terminal

panicked at asyncgit\src\revlog.rs:186:14: failed to fetch: GixDiscover(Open(Config(Init(Parse(Error { line_number: 32, last_attempted_parser: Name, parsed_until: "[ "\\.git\\safe"]\r\n\tdirectory = u:\\git\\Read_Atmos.git\r\n[init]\n\tdefaultBranch = main\n" })))))

trace: 0: git_odb_object_data 1: 2: git_odb_object_data 3: git_odb_object_data 4: git_odb_object_data 5: git_odb_object_data 6: git_midx_writer_new 7: git_midx_writer_new 8: git_odb_object_data 9: git_odb_object_data 10: git_odb_object_data 11: git_midx_writer_new 12: git_odb_object_data 13: git_odb_object_data 14: git_odb_object_data 15: BaseThreadInitThunk 16: RtlUserThreadStart

Rayon: detected unexpected panic; aborting

halo59-dev avatar May 26 '25 18:05 halo59-dev

@cruessler @Byron oh oh that looks like some funky upstream issue?

extrawurst avatar May 26 '25 21:05 extrawurst

Yes, indeed! @halo59-dev Can you share the relevant parts of your git config, so we can investigate? Thanks!

cruessler avatar May 26 '25 21:05 cruessler

Wow, I'd call that an unexpectedly helpful error message! And look at the type: GixDiscover(Open(Config(Init(Parse(Error) - it's nearly an English sentence 😄.

It looks like the git configuration parser choked on what probably is a valid Git configuration file. Is it possible to share the whole file (containing "[ "\\.git\\safe"]\r\n\tdirectory = u:\\git\\Read_Atmos.git\r\n[init]\n\tdefaultBranch = main\n") for a reproduction?

PS: here is the clear-text snippet that didn't parse for completeness.

[ "\.git\safe"]
    directory = u:\git\Read_Atmos.git
[init]
    defaultBranch = main

Byron avatar May 27 '25 02:05 Byron