Skip to content

GitUI was close due to an unexpected panic (I think it is an async issue) #2488

Open
@maxtremblay

Description

@maxtremblay

Describe the bug
I can't open gitui.

To Reproduce

Go in a git project and launch gitui. Then, navigate to the second tab (log). Then, it closes with the error message and I can't open it anymore.

Expected behavior
Launch gitui.

Screenshots

Image

Context (please complete the following information):

  • OS/Distro + Version: Arch Linux (everything is up-to-date as Jan 16th, 2025).
  • GitUI Version: Unsure, when I install with pacman I have
❯ pacman -Qs gitui
local/gitui 0.26.3-2
    Blazing fast terminal-ui for git written in Rust

At the same time

❯ gitui --version
gitui nightly 2024-09-12 (0f5cf89)
  • Rust version: 1.84

Additional context

This is the repo I am using
https://github.com/tracel-ai/cubecl

This is the content of the log file when running gitui -l

14:51:31 [TRACE] (1) gitui::app: [src/app.rs:154] open repo at: RefCell { value: Path(".") }
14:51:31 [TRACE] (6) mio::poll: [/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.11/src/poll.rs:551] registering event source with poller: token=Token(0), interests=READABLE
14:51:31 [TRACE] (6) mio::poll: [/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/mio-0.8.11/src/poll.rs:551] registering event source with poller: token=Token(1), interests=READABLE
14:51:31 [TRACE] (1) asyncgit::tags: [asyncgit/src/tags.rs:67] request
14:51:31 [TRACE] (1) gitui: [src/main.rs:215] app start: 14 ms
14:51:31 [TRACE] (1) gitui::app: [src/app.rs:375] update
14:51:31 [TRACE] (1) asyncgit::tags: [asyncgit/src/tags.rs:67] request
14:51:31 [ERROR] 
GitUI was close due to an unexpected panic.
Please file an issue on https://github.com/extrawurst/gitui/issues with the following info:

PanicHookInfo { payload: Any { .. }, location: Location { file: "asyncgit/src/revlog.rs", line: 186, col: 14 }, can_unwind: true, force_no_backtrace: false }
trace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>

14:51:31 [ERROR] 
GitUI was close due to an unexpected panic.
Please file an issue on https://github.com/extrawurst/gitui/issues with the following info:

Any { .. }
trace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>

Maybe this is also helpful

❯ gitui --bugreport

Software version

gitui 0.26.3 (v0.19.0-789-g0f5cf893)

Operating system

Linux 6.12.9-arch1-1

Compile time information

  • Profile: release
  • Target triple: x86_64-unknown-linux-gnu
  • Family: unix
  • OS: linux
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: fxsr,sse,sse2
  • Host: x86_64-unknown-linux-gnu

Environment variables

SHELL=/usr/bin/bash
EDITOR=/usr/bin/hx
GIT_EDITOR=<not set>
VISUAL=<not set>

Command-line

gitui --bugreport

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