Skip to content

Crash when navigating log / working set. #2713

@rdstevens-gh

Description

@rdstevens-gh

Describe the bug

Attempted to navigate a git repo, and gitui crashed. See repro steps for description of initial navigation attempts.

PanicHookInfo { payload: Any { .. }, location: Location { file: "asyncgit\src\revlog.rs", line: 186, col: 14 }, can_unwind: true, force_no_backtrace: false }
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
GitUI was close due to an unexpected panic.
Please file an issue on https://github.com/extrawurst/gitui/issues with the following info:
11: git_midx_writer_new
Any { .. }odb_object_data
trace:git_odb_object_data
0: git_odb_object_data
1: dInitThunk
2: git_odb_object_data
3: git_midx_writer_new
4: git_odb_object_data
5: git_odb_object_data
6: git_odb_object_data
7: BaseThreadInitThunk
8: RtlUserThreadStart

Further attempts to load gitui on the same repo result in an immediate crash.

To Reproduce
Steps to reproduce the behavior:

Launched gitui.

Navigated down through changes.
Attempted to select a specific (deleted) file for review.
Encountered crash.

Now when relaunching gitui, encounter crash immediately.

Expected behavior
Not crash!

Screenshots
Pasted stack trace

Context (please complete the following information):

  • OS/Distro + Version: [e.g. macOS 10.15.5]

  • GitUI Version [e.g. 0.5]

  • Rust version: [e.g 1.44]

  • Windows 11 23H2 (OS Build 22631.5624)

  • GitUI Version 0.27.0 2025-01-14

  • Rust Version: rustc 1.86.0 (05f9846f8 2025-03-31)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions