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

GuestAgent panics #7491

Closed
Nino-K opened this issue Sep 16, 2024 · 1 comment · Fixed by #7492
Closed

GuestAgent panics #7491

Nino-K opened this issue Sep 16, 2024 · 1 comment · Fixed by #7492
Assignees
Labels
area/networking area/wsl WSL integration kind/bug Something isn't working platform/windows
Milestone

Comments

@Nino-K
Copy link
Member

Nino-K commented Sep 16, 2024

Using this commit for preliminary testing, I can see the following panic in the guest agent logs.

2024/09/16 15:41:31 [DEBUG]   received an event: /containers/update
panic: protobuf tag not enough fields in ContainerUpdate.state: 

goroutine 13 [running]:
github.com/gogo/protobuf/proto.(*unmarshalInfo).computeUnmarshalInfo(0xc000442280)
	C:/Users/runneradmin/go/pkg/mod/github.com/gogo/[email protected]/proto/table_unmarshal.go:341 +0x1325
github.com/gogo/protobuf/proto.(*unmarshalInfo).unmarshal(0xc000442280, {0x1e6fee0?}, {0xc00023a200, 0x1f3, 0x200})
	C:/Users/runneradmin/go/pkg/mod/github.com/gogo/[email protected]/proto/table_unmarshal.go:138 +0x5b
github.com/gogo/protobuf/proto.(*InternalMessageInfo).Unmarshal(0xc000306700?, {0x226d4a8, 0xc0006145a0}, {0xc00023a200?, 0x1f3?, 0x200?})
	C:/Users/runneradmin/go/pkg/mod/github.com/gogo/[email protected]/proto/table_unmarshal.go:63 +0xc8
github.com/gogo/protobuf/proto.(*Buffer).Unmarshal(0xc0004d1d68, {0x226d4a8, 0xc0006145a0})
	C:/Users/runneradmin/go/pkg/mod/github.com/gogo/[email protected]/proto/decode.go:424 +0x165
github.com/gogo/protobuf/proto.Unmarshal({0xc00023a200, 0x1f3, 0x200}, {0x226d4a8, 0xc0006145a0})
	C:/Users/runneradmin/go/pkg/mod/github.com/gogo/[email protected]/proto/decode.go:342 +0x10a
github.com/rancher-sandbox/rancher-desktop/src/go/guestagent/pkg/containerd.(*EventMonitor).MonitorPorts(0xc00029c138, {0x227b940, 0xc00003c0a0})
	D:/a/rancher-desktop/rancher-desktop/src/go/guestagent/pkg/containerd/events.go:131 +0x996
main.main.func2()
	D:/a/rancher-desktop/rancher-desktop/src/go/guestagent/main.go:149 +0xdf
golang.org/x/sync/errgroup.(*Group).Go.func1()
	C:/Users/runneradmin/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
	C:/Users/runneradmin/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x96
@Nino-K Nino-K self-assigned this Sep 16, 2024
@Nino-K Nino-K added kind/bug Something isn't working area/networking area/wsl WSL integration labels Sep 16, 2024
@jandubois jandubois added this to the 1.16 milestone Sep 16, 2024
@Nino-K
Copy link
Member Author

Nino-K commented Sep 17, 2024

As suggested here, we have migrated from github.com/gogo/protobuf to google.golang.org/protobuf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking area/wsl WSL integration kind/bug Something isn't working platform/windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants