gitui: Too many open files in system (os error 23)
Describe the bug Application crashes while browsing “files to stash” and the log end like this:
18:21:31 [TRACE] (1) asyncgit::tags: [asyncgit/src/tags.rs:67] request
18:21:31 [TRACE] (1) gitui::app: [src/app.rs:380] event: Input(Key(KeyEvent { code: Tab, modifiers: NONE, kind: Press, state: NONE }))
18:21:32 [TRACE] (1) gitui::app: [src/app.rs:494] update_async: Git(Log)
18:21:32 [TRACE] (1) gitui::app: [src/app.rs:380] event: Input(Key(KeyEvent { code: Tab, modifiers: NONE, kind: Press, state: NONE }))
18:21:32 [TRACE] (1) asyncgit::status: [asyncgit/src/status.rs:102] request: [hash: 411913559819473704] (type: Both)
18:21:32 [TRACE] (1) gitui::app: [src/app.rs:494] update_async: Git(Log)
18:21:32 [TRACE] (1) gitui::app: [src/app.rs:380] event: Input(Key(KeyEvent { code: Up, modifiers: NONE, kind: Press, state: NONE }))
18:21:32 [TRACE] (1) gitui::app: [src/app.rs:380] event: Input(Key(KeyEvent { code: Down, modifiers: NONE, kind: Press, state: NONE }))
18:21:33 [TRACE] (1) gitui::app: [src/app.rs:494] update_async: Git(Log)
18:21:34 [TRACE] (1) gitui::app: [src/app.rs:494] update_async: Git(Log)
18:21:35 [TRACE] (1) gitui::app: [src/app.rs:494] update_async: Git(Log)
18:21:36 [TRACE] (1) gitui::app: [src/app.rs:494] update_async: Git(Log)
18:21:37 [TRACE] (2) asyncgit::status: [asyncgit/src/status.rs:160] status fetched: 411913559819473704 (type: Both)
18:21:37 [TRACE] (1) gitui::app: [src/app.rs:494] update_async: Git(Status)
18:21:37 [TRACE] (1) gitui::app: [src/app.rs:494] update_async: Git(Log)
18:21:38 [TRACE] (1) gitui::app: [src/app.rs:380] event: Input(Key(KeyEvent { code: Down, modifiers: NONE, kind: Press, state: NONE }))
18:21:38 [TRACE] (1) gitui::app: [src/app.rs:494] update_async: Git(Log)
18:21:39 [TRACE] (1) gitui::app: [src/app.rs:494] update_async: Git(Log)
18:21:40 [ERROR] panic: PanicInfo { payload: Any { .. }, message: Some(Watch error: Error { kind: Generic("Too many open files in system (os error 23) about [\"/disk-samsung/freebsd-ports/games/puckman/pkg-descr\"]"), paths: [] }), location: Location { file: "src/watcher.rs", line: 105, col: 14 }, can_unwind: true }
trace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: thread_start
at /disk-samsung/freebsd-src/lib/libthr/thread/thr_create.c:292:16
18:21:40 [ERROR] notify receive error: receiving on a closed channel
Context (please complete the following information):
- OS/Distro + Version: FreeBSD 13.1 STABLE
- GitUI Version v0.22.0-9-gbc15b5d
- Rust version: 1.64.0
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (3 by maintainers)
@yurivict thanks for the log. it shows that your system is trying to use the
Kqueue
watcher. (@0xpr03 thanks for taking this to the source over at notify)