[Bug]: nvpair-tui panics (index out of range) in Nodes table renderer on first node discovery
Maintainer thường phản hồi trong vòng 4 ngày
@Noah-Tervalon-Nvidia đang làm issue này rồi.
Từ ngày 11/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Summary
nvpair-tui panics with an index out of range error in the Nodes-tab table renderer shortly after starting, once it discovers at least one node on the network. The panic is unrecoverable and kills the TUI (bubbletea's panic recovery catches it and shuts down cleanly, but the interface exits rather than staying usable).
Environment
- PAIR version: 0.1.1 (
NVPAIR-Setup-0.1.1-amd64.deb) - OS: Linux Mint 22.3 "Zena" (Ubuntu 24.04 Noble base), x86_64
- Install method: official
.debpackage (sudo apt install ./NVPAIR-Setup-0.1.1-amd64.deb) - Invoked via:
nvpair(the installed CLI wrapper, which execs/opt/PAIR/resources/cli-bin/nvpair-tui), run over SSH in a fresh tmux session (no desktop app running at the same time)
Steps to reproduce
- Install the
.debrelease on a machine with at least one Ollama or LM Studio engine reachable on the LAN. - Run
nvpair(ornvpair-tuidirectly) from a terminal — no$DISPLAY, purely headless/SSH. - Wait for it to discover a node on the network (its own local node, or another one).
- The TUI panics and exits within a few seconds of a node appearing.
Actual behavior
Caught panic:
runtime error: index out of range [0] with length 0
Restoring terminal...
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
runtime/debug.PrintStack()
runtime/debug/stack.go:18 +0x13
github.com/charmbracelet/bubbletea.(*Program).recoverFromPanic(0x37925edde3c0, {0x5f70c0, 0x37925edd0108})
github.com/charmbracelet/[email protected]/tea.go:847 +0xac
github.com/charmbracelet/bubbletea.(*Program).Run.func2()
github.com/charmbracelet/[email protected]/tea.go:638 +0x10c
panic({0x5f70c0?, 0x37925edd0108?})
runtime/panic.go:860 +0x13a
github.com/charmbracelet/bubbles/table.(*Model).renderRow(0x37925ee54010, 0x0)
github.com/charmbracelet/[email protected]/table/table.go:431 +0x7a5
github.com/charmbracelet/bubbles/table.(*Model).UpdateViewport(0x37925ee54010)
github.com/charmbracelet/[email protected]/table/table.go:279 +0x135
github.com/charmbracelet/bubbles/table.(*Model).SetRows(...)
github.com/charmbracelet/[email protected]/table/table.go:315
nvpair-tui/ui.(*nodesView).setNodes(0x37925ee54008, {0x37925edb2960, 0x1, 0x5c3680?})
nvpair-tui/ui/nodes.go:193 +0x37f
nvpair-tui/ui.(*nodesView).Update(0x37925ee54008, {0x5da820?, 0x37925edb2900})
nvpair-tui/ui/nodes.go:111 +0x108
nvpair-tui/ui.(*Model).broadcast(0x37925f01b6e8, {0x5da820, 0x37925edb2900})
nvpair-tui/ui/model.go:158 +0xcd
nvpair-tui/ui.Model.Update({0x37925edd4190, 0x37925edc9260, {{{0x37925edacf60, 0x3, 0x3}, {{...}, {...}}, 0x0}, {{0x37925edacf90, 0x3, ...}, ...}, ...}, ...)
nvpair-tui/ui/model.go:108 +0xd7
github.com/charmbracelet/bubbletea.(*Program).eventLoop(0x37925edde3c0, {0x621940?, 0x37925ee34008?}, 0x37925ed9a310)
github.com/charmbracelet/[email protected]/tea.go:494 +0x7ce
github.com/charmbracelet/bubbletea.(*Program).Run(0x37925edde3c0)
github.com/charmbracelet/[email protected]/tea.go:716 +0xae7
nvpair-tui/ui.Run(0x37925edd4190, {0x620c40, 0x37925ed820d0})
nvpair-tui/ui/ui.go:26 +0x145
main.main()
nvpair-tui/main.go:73 +0x419
13:43:29.800 [nvpair-tui] ERROR ui error err="program was killed: program experienced a panic"
13:43:29.816 [nvpair-tui] INFO shutdown complete
Expected behavior
The Nodes tab should render the discovered node(s) without crashing.
Notes
The trace points at nodesView.setNodes (ui/nodes.go:193) calling into bubbles/table's SetRows/UpdateViewport/renderRow, which panics on a table with zero configured rows/columns receiving row data — looks like the nodes table's columns/dimensions aren't initialized before the first setNodes call lands from broadcast. Didn't find an existing issue for this via search, apologies if it's a duplicate.
Happy to provide more logs/details if useful.
- Ngôn ngữ chính
- Go
- Star
- 1.6k
- Fork
- 266
- Merge trung bình
- 3 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 28
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/Personal-AI-Router
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
NVIDIA/Personal-AI-Router#165 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 46/100
NVIDIA/Personal-AI-Router#164 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
enhancement
Độ khó 4/5 Hơn một tuần Mức phù hợp với người mới 12/100
NVIDIA/Personal-AI-Router#162 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
NVIDIA/Personal-AI-Router#154 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[Feature]: [Ollama] Alert the user about model pull failuresCó thể đã có người làm @ckelseynv đã nhận 5 ngày trước. Đang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
NVIDIA/Personal-AI-Router#152 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của NVIDIA/Personal-AI-Router
Issue tương tự
-
mutation: parseInt64 accepts integers that overflow int64 and wrap to a non-negative valueCó thể đã có người làm @ogulcanaydogan đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
open-policy-agent/gatekeeper#4872 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
containers/kubernetes-mcp-server#1496 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug performance scalability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Davidjustice28/basildb#35 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rhysd/actionlint#761 ·