guitui crashs when switching to Log tab "Too many open files; class=Os (2)"
- Vorherrschende Sprache
- Rust
- Sterne
- 22.5k
- Forks
- 773
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**Describe the bug**
gitui crashes when switching to the Log tab.
**To Reproduce**
Steps to reproduce the behavior:
1. Open gitui
2. Press 2 to switch to the Log tab when the Status tab still loading
3. Crashs with
```sh
Error: git error:failed to resolve path '.': Too many open files; class=Os (2)
Caused by:
failed to resolve path '.': Too many open files; class=Os (2)
```
**Expected behavior**
Expect to see the logs without any crashes.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Context (please complete the following information):**
- OS/Distro + Version: `macOS 15.1.1 (24B91)`
- GitUI Version:`0.26.3`
- Rust version: `1.82`
**Additional context**
The repo is huge.
The count of logs is: 26900.
When switching to Logs after the Status stopped loading there is no crashs.
Beitragsleitfaden
Rechercherichtung
Im Issue wird weder eine Quelldatei noch ein Test genannt. Beginne damit, den Absturz unter macOS mit einem großen Repository zu reproduzieren: Wechsle zum Log-Tab, während der Status-Tab noch geladen wird, und vergleiche dies mit dem Wechsel nach Abschluss des Ladevorgangs. Als erledigt gilt die Aufgabe, wenn die Logs ohne den „Too many open files“-Absturz angezeigt werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git, rust
- Bereich
- cli
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100