-
Notifications
You must be signed in to change notification settings - Fork 273
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Sometimes when running my program (very similar to the fancy list demo and using the same lipgloss variables), when my list is created, I see a very long pause. It doesn't happen all the time -- over half the time, but not every time -- but that pause can take anywhere from a few seconds to 30 seconds or more. I got a SIGQUIT
stack trace -- it's down in termenv
so let me know if you'd rather I post there than here, but since my entrypoint there is lipgloss
I figured I'd start here.
goroutine 1 [syscall]:
syscall.syscall(0x10060cbe0, 0x1, 0x14000390077, 0x1)
/opt/homebrew/Cellar/go/1.17.8/libexec/src/runtime/sys_darwin.go:22 +0x1c
syscall.read(0x1, {0x14000390077, 0x1, 0x1})
/opt/homebrew/Cellar/go/1.17.8/libexec/src/syscall/zsyscall_darwin_arm64.go:1171 +0x5c
syscall.Read(...)
/opt/homebrew/Cellar/go/1.17.8/libexec/src/syscall/syscall_unix.go:189
internal/poll.ignoringEINTRIO(...)
/opt/homebrew/Cellar/go/1.17.8/libexec/src/internal/poll/fd_unix.go:582
internal/poll.(*FD).Read(0x140001a0060, {0x14000390077, 0x1, 0x1})
/opt/homebrew/Cellar/go/1.17.8/libexec/src/internal/poll/fd_unix.go:163 +0x214
os.(*File).read(...)
/opt/homebrew/Cellar/go/1.17.8/libexec/src/os/file_posix.go:32
os.(*File).Read(0x1400019e008, {0x14000390077, 0x1, 0x1})
/opt/homebrew/Cellar/go/1.17.8/libexec/src/os/file.go:119 +0x74
github.com/muesli/termenv.readNextByte(0x1400019e008)
/Users/jeff/go/pkg/mod/github.com/muesli/[email protected]/termenv_unix.go:135 +0x98
github.com/muesli/termenv.readNextResponse(0x1400019e008)
/Users/jeff/go/pkg/mod/github.com/muesli/[email protected]/termenv_unix.go:185 +0x1c8
github.com/muesli/termenv.termStatusReport(0xb)
/Users/jeff/go/pkg/mod/github.com/muesli/[email protected]/termenv_unix.go:246 +0x22c
github.com/muesli/termenv.backgroundColor()
/Users/jeff/go/pkg/mod/github.com/muesli/[email protected]/termenv_unix.go:85 +0x28
github.com/muesli/termenv.BackgroundColor()
/Users/jeff/go/pkg/mod/github.com/muesli/[email protected]/termenv.go:67 +0x6c
github.com/muesli/termenv.HasDarkBackground()
/Users/jeff/go/pkg/mod/github.com/muesli/[email protected]/termenv.go:72 +0x20
github.com/charmbracelet/lipgloss.HasDarkBackground.func1()
/Users/jeff/go/pkg/mod/github.com/charmbracelet/[email protected]/color.go:60 +0x20
sync.(*Once).doSlow(0x1070a68a8, 0x10653e450)
/opt/homebrew/Cellar/go/1.17.8/libexec/src/sync/once.go:68 +0x10c
sync.(*Once).Do(...)
/opt/homebrew/Cellar/go/1.17.8/libexec/src/sync/once.go:59
github.com/charmbracelet/lipgloss.HasDarkBackground()
/Users/jeff/go/pkg/mod/github.com/charmbracelet/[email protected]/color.go:59 +0x5c
github.com/charmbracelet/lipgloss.AdaptiveColor.value(...)
/Users/jeff/go/pkg/mod/github.com/charmbracelet/[email protected]/color.go:167
github.com/charmbracelet/lipgloss.AdaptiveColor.color({{0x101437372, 0x7}, {0x101437491, 0x7}})
/Users/jeff/go/pkg/mod/github.com/charmbracelet/[email protected]/color.go:174 +0x2c
github.com/charmbracelet/lipgloss.Style.Render({0x140006749f0, {0x101432dc9, 0x3}}, {0x101432dc9, 0x3})
/Users/jeff/go/pkg/mod/github.com/charmbracelet/[email protected]/style.go:230 +0x10e0
github.com/charmbracelet/lipgloss.Style.String(...)
/Users/jeff/go/pkg/mod/github.com/charmbracelet/[email protected]/style.go:109
github.com/charmbracelet/bubbles/list.New({0x0, 0x0, 0x0}, {0x106585f38, 0x140000dea90}, 0x0, 0x0)
/Users/jeff/go/pkg/mod/github.com/charmbracelet/[email protected]/list/list.go:165 +0x2a4
<my code>
Let me know what other info I can provide. Thanks!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working