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

Seeing a panic on sign-and-notarize #529

Open
matthewmueller opened this issue Dec 26, 2024 · 7 comments
Open

Seeing a panic on sign-and-notarize #529

matthewmueller opened this issue Dec 26, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@matthewmueller
Copy link

Hi there,

What happened:

quill sign-and-notarize dist/dot_0.0.1_darwin_arm64/dot
Caught panic:

interface conversion: tea.Model is frame.Frame, not *frame.Frame

Restoring terminal...

goroutine 11 [running]:
runtime/debug.Stack()
        /opt/hostedtoolcache/go/1.23.2/x64/src/runtime/debug/stack.go:26 +0x64
runtime/debug.PrintStack()
        /opt/hostedtoolcache/go/1.23.2/x64/src/runtime/debug/stack.go:18 +0x1c
github.com/charmbracelet/bubbletea.(*Program).recoverFromPanic(0x14000562500)
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v1.2.1/tea.go:705 +0x84
panic({0x1032bffa0?, 0x14000612090?})
        /opt/hostedtoolcache/go/1.23.2/x64/src/runtime/panic.go:785 +0x124
github.com/anchore/quill/cmd/quill/internal/ui.(*UI).Update(0x140005e65a0, {0x1033500c0, 0x1400013ab80})
        /home/runner/work/quill/quill/cmd/quill/internal/ui/ui.go:173 +0x7e4
github.com/charmbracelet/bubbletea.(*Program).eventLoop(0x14000562500, {0x1033f9ff8?, 0x140005e65a0?}, 0x14000042380)
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v1.2.1/tea.go:461 +0x6a8
github.com/charmbracelet/bubbletea.(*Program).Run(0x14000562500)
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v1.2.1/tea.go:595 +0x8cc
github.com/anchore/quill/cmd/quill/internal/ui.(*UI).Setup.func1()
        /home/runner/work/quill/quill/cmd/quill/internal/ui/ui.go:62 +0x54
created by github.com/anchore/quill/cmd/quill/internal/ui.(*UI).Setup in goroutine 1
        /home/runner/work/quill/quill/cmd/quill/internal/ui/ui.go:60 +0x1d4
notarization failed: binary is not signed thus will not pass notarization

What you expected to happen:

DIdn't expect the panic

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Not sure, it's my first time trying this tool :)

Environment:

  • Output of version command: go version go1.23.0 darwin/arm64
  • OS (e.g: cat /etc/os-release or similar): OSX
@matthewmueller matthewmueller added the bug Something isn't working label Dec 26, 2024
@kzantow
Copy link
Contributor

kzantow commented Dec 27, 2024

Hi @matthewmueller which quill version is this?

@matthewmueller
Copy link
Author

matthewmueller commented Dec 27, 2024 via email

@steckes
Copy link

steckes commented Jan 22, 2025

Just ran into the same error on quill 0.5.0 macOS 15.2

@steckes
Copy link

steckes commented Jan 22, 2025

I just ran quill sign mylib.dylib and got this:

quill sign mylib.dylib
Caught panic:

interface conversion: tea.Model is frame.Frame, not *frame.Frame

Restoring terminal...

goroutine 53 [running]:
runtime/debug.Stack()
        /opt/hostedtoolcache/go/1.23.2/x64/src/runtime/debug/stack.go:26 +0x64
runtime/debug.PrintStack()
        /opt/hostedtoolcache/go/1.23.2/x64/src/runtime/debug/stack.go:18 +0x1c
github.com/charmbracelet/bubbletea.(*Program).recoverFromPanic(0x140006ac500)
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v1.2.1/tea.go:705 +0x84
panic({0x101b3bfa0?, 0x1400046e030?})
        /opt/hostedtoolcache/go/1.23.2/x64/src/runtime/panic.go:785 +0x124
github.com/anchore/quill/cmd/quill/internal/ui.(*UI).Update(0x140001b2b40, {0x101bcc0c0, 0x140005b0040})
        /home/runner/work/quill/quill/cmd/quill/internal/ui/ui.go:173 +0x7e4
github.com/charmbracelet/bubbletea.(*Program).eventLoop(0x140006ac500, {0x101c75ff8?, 0x140001b2b40?}, 0x140005582a0)
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v1.2.1/tea.go:461 +0x6a8
github.com/charmbracelet/bubbletea.(*Program).Run(0x140006ac500)
        /home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v1.2.1/tea.go:595 +0x8cc
github.com/anchore/quill/cmd/quill/internal/ui.(*UI).Setup.func1()
        /home/runner/work/quill/quill/cmd/quill/internal/ui/ui.go:62 +0x54
created by github.com/anchore/quill/cmd/quill/internal/ui.(*UI).Setup in goroutine 1
        /home/runner/work/quill/quill/cmd/quill/internal/ui/ui.go:60 +0x1d4

@tecimovic
Copy link
Contributor

I see the same error on latest. Wasn't there 2 months ago. I suspect something related to updating all the packages.

@tecimovic
Copy link
Contributor

`[~/git/quill/cmd/quill ((722f43a...)|BISECTING)]$ git bisect bad
722f43a is the first bad commit
commit 722f43a (HEAD)
Author: Alex Goodman wagoodman@users.noreply.github.com
Date: Fri Nov 8 12:47:08 2024 -0500

Update clio to log errors to logger (#513)

* update clio and other anchore deps

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

* restore log on ui teardown

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

---------

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>

.golangci.yaml | 2 +-
cmd/quill/cli/cli.go | 8 +-
cmd/quill/cli/commands/extract_certificates.go | 1 -
cmd/quill/cli/ui/handler.go | 12 +--
cmd/quill/internal/ui/ui.go | 13 ++-
go.mod | 74 ++++++-------
go.sum | 605 +++++++++++++++++++---------------------------------------------------------------------------------------
7 files changed, 168 insertions(+), 547 deletions(-)
[~/git/quill/cmd/quill ((722f43a...)|BISECTING)]$

`

@tecimovic
Copy link
Contributor

tecimovic commented Jan 29, 2025

I did 'git bisect' and the above comment shows the offending commit.
@wagoodman ?

The type assertion in ui.go is failing:
m.frame.(*frame.Frame).AppendModel(newModel)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

4 participants