Skip to content

SIGSEGV: todoist projects on fresh use #266

@jasoncarr0

Description

@jasoncarr0

Installed version 0.20.0
(using nixpkgs channel nixos version 24.05.4090.224042e9a303 but this seems like an application bug not an issue with packaging)

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x6ef0c9]

goroutine 1 [running]:
github.com/sachaos/todoist/lib.(*Project).GetID(0x10?)
        <autogenerated>:1 +0x9
main.IdFormat({0x966900?, 0x0?})
        github.com/sachaos/todoist/format.go:45 +0x22
main.Projects.func1(0x0, 0xc000196ec0?)
        github.com/sachaos/todoist/projects.go:34 +0x58
main.traverseProjects(0x0, 0xc000197160, 0x0)
        github.com/sachaos/todoist/projects.go:9 +0x28
main.Projects(0xc00014cf80)
        github.com/sachaos/todoist/projects.go:33 +0x3cb
github.com/urfave/cli/v2.(*Command).Run(0xc0001ecb00, 0xc00014cf80, {0xc000212700, 0x1, 0x1})
        github.com/urfave/cli/v2@v2.25.1/command.go:274 +0x93f
github.com/urfave/cli/v2.(*Command).Run(0xc0001ed340, 0xc00014c880, {0xc00012e000, 0x2, 0x2})
        github.com/urfave/cli/v2@v2.25.1/command.go:267 +0xb7d
github.com/urfave/cli/v2.(*App).RunContext(0xc0001ea000, {0x969c78, 0xc9cc80}, {0xc00012e000, 0x2, 0x2})
        github.com/urfave/cli/v2@v2.25.1/app.go:332 +0x566
github.com/urfave/cli/v2.(*App).Run(...)
        github.com/urfave/cli/v2@v2.25.1/app.go:309
main.main()
        github.com/sachaos/todoist/main.go:352 +0x1d0c

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions