Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash #25

Open
qoega opened this issue Mar 7, 2023 · 0 comments
Open

Crash #25

qoega opened this issue Mar 7, 2023 · 0 comments

Comments

@qoega
Copy link

qoega commented Mar 7, 2023

./chtop-linux-amd64 --queries-url localhost:8123

cat .chtop.yaml
theme:
  graph:
    color: red
    height: 10
    precision: 1
clickhousequeries:
  queries:
    - name: Number of Running Queries
      sql: "select count(*) from system.processes"
    - name: Number of Databases
      sql: "select count(*) from system.databases"
    - name: Number of Tables
      sql: "select count(*) from system.tables"
    - name: Number of Parts
      sql: "select count(*) from system.parts"
unable to execute query: Number of Running Queries at endpoint: localhost:8123
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa6916f]

goroutine 19 [running]:
github.com/chhetripradeep/chtop/pkg/model.Model.UpdateQueriesData({{0x0, 0x0}, 0x0, 0xc00007d270, {{{0x11e46e0, 0x3, 0x3}, 0xee6b280}, {0xc0001ab950, {0x0, ...}}, ...}, ...})
	github.com/chhetripradeep/chtop/pkg/model/model.go:229 +0x1cf
github.com/chhetripradeep/chtop/pkg/model.Model.UpdateData.func1({0x0?, 0x5d4340?, 0x122a270?})
	github.com/chhetripradeep/chtop/pkg/model/model.go:245 +0xb8
github.com/charmbracelet/bubbletea.Tick.func1()
	github.com/charmbracelet/[email protected]/commands.go:142 +0x64
github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1()
	github.com/charmbracelet/[email protected]/tea.go:247 +0x38
created by github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1
	github.com/charmbracelet/[email protected]/tea.go:246 +0x14d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant