Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

invalid memory address or nil pointer dereference after cluster change #153

Closed
zigmund opened this issue Aug 11, 2019 · 1 comment
Closed
Labels
api bug Something isn't working

Comments

@zigmund
Copy link

zigmund commented Aug 11, 2019

I have 5 cluster (contexts) in kubeconfig.

Started octant 0.5.1, changed cluster via top-right menu. Octant crashed in a few seconds.

Got few times in logs:

2019-08-11T23:09:22.829+0600    ERROR   cluster/cluster.go:178  Having trouble retrieving the REST mapping from your cluster at https://***. Retrying.....        {"err": "no matches for kind \"adapter\" in group \"config.istio.io\"", "group-kind": "adapter.config.istio.io"}
github.com/vmware/octant/internal/cluster.(*Cluster).Resource
        /go/src/github.com/vmware/octant/internal/cluster/cluster.go:178
github.com/vmware/octant/internal/objectstore.(*DynamicCache).HasAccess
        /go/src/github.com/vmware/octant/internal/objectstore/dynamic_cache.go:171
github.com/vmware/octant/pkg/navigation.ListCustomResources
        /go/src/github.com/vmware/octant/pkg/navigation/navigation.go:175
github.com/vmware/octant/pkg/navigation.CRDEntries
        /go/src/github.com/vmware/octant/pkg/navigation/navigation.go:85
github.com/vmware/octant/internal/octant.(*NavigationFactory).genNode
        /go/src/github.com/vmware/octant/internal/octant/factory.go:115
github.com/vmware/octant/internal/octant.(*NavigationFactory).Generate.func1
        /go/src/github.com/vmware/octant/internal/octant/factory.go:83
github.com/vmware/octant/vendor/golang.org/x/sync/errgroup.(*Group).Go.func1
        /go/src/github.com/vmware/octant/vendor/golang.org/x/sync/errgroup/errgroup.go:57

And finally:

2019-08-11T23:09:27.829+0600    ERROR   cluster/cluster.go:189  Unable to retrieve the REST mapping from your cluster at https://***. Full error details below.   {"group-kind": "adapter.config.istio.io"}
github.com/vmware/octant/internal/cluster.(*Cluster).Resource
        /go/src/github.com/vmware/octant/internal/cluster/cluster.go:189
github.com/vmware/octant/internal/objectstore.(*DynamicCache).HasAccess
        /go/src/github.com/vmware/octant/internal/objectstore/dynamic_cache.go:171
github.com/vmware/octant/pkg/navigation.ListCustomResources
        /go/src/github.com/vmware/octant/pkg/navigation/navigation.go:175
github.com/vmware/octant/pkg/navigation.CRDEntries
        /go/src/github.com/vmware/octant/pkg/navigation/navigation.go:85
github.com/vmware/octant/internal/octant.(*NavigationFactory).genNode
        /go/src/github.com/vmware/octant/internal/octant/factory.go:115
github.com/vmware/octant/internal/octant.(*NavigationFactory).Generate.func1
        /go/src/github.com/vmware/octant/internal/octant/factory.go:83
github.com/vmware/octant/vendor/golang.org/x/sync/errgroup.(*Group).Go.func1
        /go/src/github.com/vmware/octant/vendor/golang.org/x/sync/errgroup/errgroup.go:57
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x1214dc8]

Environment:

zigmund@junlge:~> lsb_release -a
LSB Version:    n/a
Distributor ID: openSUSE
Description:    openSUSE Leap 15.0
Release:        15.0
Codename:       n/a
zigmund@junlge:~> uname -r
4.12.14-lp150.12.22-default
zigmund@junlge:~> octant version
Version:  0.5.1
Git commit:  e0397d2596a7575abf4ca9aeacafd92912d484e0
Built:  2019-08-06T19:40:35Z
@wwitzel3 wwitzel3 added api bug Something isn't working labels Aug 12, 2019
@bryanl
Copy link
Contributor

bryanl commented Aug 15, 2019

This may have been caused because of a CRD bug. A fix is now in master #170

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants