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

Boom! runtime error: invalid memory address or nil pointer dereference #2418

Closed
gerhard opened this issue Jan 3, 2024 · 8 comments
Closed

Comments

@gerhard
Copy link
Contributor

gerhard commented Jan 3, 2024




Describe the bug

Starting k9s fails with:

image

To Reproduce

Start k9s with an Active Context.

Versions

  • macOS 12.7.2
  • K9s 0.30.7 (0.30.5 & 0.30.6 have the same issue)
  • K8s 1.28.4

Additional context

My workaround is to pin k9s to 0.30.4 which works as expected.

Attaching logs from:


Maybe related to:

@gerhard
Copy link
Contributor Author

gerhard commented Jan 3, 2024

@derailed if it helps, I'm happy to test a dev build.

@gerhard
Copy link
Contributor Author

gerhard commented Jan 3, 2024

I didn't go through the code diff, but this issue was introduced somewhere here: v0.30.4...v0.30.7

@wjiec
Copy link
Contributor

wjiec commented Jan 3, 2024

From the logs, it seems that there may be some issues with your configuration file located at /Users/gerhard/.config/k9s/clusters/changelog-production-2023-11-23/changelog-production-2023-11-23/config.yaml. Could you provide the contents of this file?

@derailed
Copy link
Owner

derailed commented Jan 3, 2024

@gerhard Thank you for the heads up!

I think @wjiec is correct here.
Your context specific config must have an issue which we are not currently catching ;(
Best guess, your namespace section in this config is toast.
If you can share a mocked version that will help us zero in. Tx!!

derailed added a commit that referenced this issue Jan 3, 2024
@gerhard
Copy link
Contributor Author

gerhard commented Jan 3, 2024

I can confirm that this is now fixed in 0.30.8. I didn't change anything on my end, just updated & everything works now.

Found the problem!

image

Deleting this config, letting k9s generate its own, and then adding the custom skin property, fixed it. All good!

Thank you @derailed 💪

@damyan
Copy link

damyan commented Jan 4, 2024

Unfortunately I still have the same issue, when running k9s v0.30.8 (latest at the time of writing) on MacOS v14.2.1.

Switching namespaces back and forth between bookmarked ones and default causes the issue, always. Running with default k9s config does not change the behaviour.

Log file:
k9s.log

@gibletto
Copy link

gibletto commented Jan 4, 2024

Same issue as above, changing namespaces in v0.30.8 results in a nil dereferenced pointer error on Windows.

@norman-zon
Copy link

#2428

thejoeejoee pushed a commit to thejoeejoee/k9s that referenced this issue Feb 23, 2024
* [Bug] Fix derailed#2418

* cleaning up

* rel notes
placintaalexandru pushed a commit to placintaalexandru/k9s that referenced this issue Apr 3, 2024
* [Bug] Fix derailed#2418

* cleaning up

* rel notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants