Skip to content

Program goes into panic #1

@Elia-Renzoni

Description

@Elia-Renzoni

When the main timer execution finishes (before the pause), the entire program goes into panic due to an invalid memory address or nil pointer dereference.
Error Log:

Time to snooze...panic: runtime error: invalid memory address or nil pointer dereference
███████████████████████████████████ 100%                                                [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x5e78d8]

            goroutine 11308899 [running]:
                                         github.com/charmbracelet/bubbletea/v2.(*Program).eventLoop.func2()
                                                                                                           	/home/elia/go/pkg/mod/github.com/charmbracelet/bubbletea/v2@v2.0.0-beta.1.0.20250331173400-ed4fde7ae48f/tea.go:716 +0x2d8
                                                                                       created by github.com/charmbracelet/bubbletea/v2.(*Program).eventLoop in goroutine 1
                         	/home/elia/go/pkg/mod/github.com/charmbracelet/bubbletea/v2@v2.0.0-beta.1.0.20250331173400-ed4fde7ae48f/tea.go:694 +0x97d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions