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

Javascript error in the main process #3272

Closed
galalmounir opened this issue Jul 5, 2021 · 12 comments
Closed

Javascript error in the main process #3272

galalmounir opened this issue Jul 5, 2021 · 12 comments
Labels
bug Something isn't working

Comments

@galalmounir
Copy link

galalmounir commented Jul 5, 2021

Describe the bug
With a pod selected, a random popup will appear with an uncaught exception

Screenshots
image

Environment:

  • Lens Version: 5.0.1+20210705.1
  • OS: MacOS
@galalmounir galalmounir added the bug Something isn't working label Jul 5, 2021
@Nokel81 Nokel81 self-assigned this Jul 7, 2021
@Nokel81 Nokel81 added this to the 5.0.3 milestone Jul 7, 2021
@Nokel81
Copy link
Collaborator

Nokel81 commented Jul 7, 2021

Do you have write permissions for ~/.kube?

@galalmounir
Copy link
Author

Yes I do. This only started happening after the upgrade to v5

@Nokel81
Copy link
Collaborator

Nokel81 commented Jul 7, 2021

Okay thanks. I am trying to come up with a way to reproduce this issue on my machine. Because we don't try and read config.lock anywhere in our codebase I think it might be related to kubectl but I don't know enough about its internals yet.

@Nokel81
Copy link
Collaborator

Nokel81 commented Jul 8, 2021

Were you doing something in particular when this popup happened? For instance were you opening a local terminal instance?

@galalmounir
Copy link
Author

I don't remember doing anything on the side. I'll try to repro again, but it keeps happening randomly.
Could it be related network connection/disconnection?

@Nokel81
Copy link
Collaborator

Nokel81 commented Jul 8, 2021

I have done some more reading and it could just be a race condition between two instances of kubectl running against the same config file.

@galalmounir
Copy link
Author

Happened again this morning, this time my laptop was in sleep mode. Once I logged in, I found the same pop-up message.
After clicking Ok another message appeared:
image

@Nokel81
Copy link
Collaborator

Nokel81 commented Jul 9, 2021

That might be related to kube sync thanks for the report.

@Nokel81 Nokel81 modified the milestones: 5.0.3, 5.1.0 Jul 12, 2021
@guyguy333
Copy link

Having the same issue. It happens when I keep my computer running for night. Suddenly, fan speed increases, lens CPU usage is ~ 97% and there is a lock error.

Screenshot 2021-07-14 at 11 01 49
Screenshot 2021-07-14 at 11 19 14

A click on "Ok" results then in this error:

Screenshot 2021-07-14 at 11 23 24

Finally, CPU usage decreases and it starts again few seconds later.

Screenshot 2021-07-14 at 11 24 11

@Nokel81 Nokel81 modified the milestones: 5.1.0, 5.1.1, 5.1.2 Jul 15, 2021
@Nokel81
Copy link
Collaborator

Nokel81 commented Jul 19, 2021

Sigh... JS's lack of event based tracing can sometimes be very annoying...

I have narrowed this to not being part of kube-sync because we do catch and log errors there.

@Nokel81 Nokel81 modified the milestones: 5.1.2, 5.1.3, 5.2.0 Jul 19, 2021
@jim-docker jim-docker modified the milestones: 5.2.0, 5.2.4 Sep 21, 2021
@Nokel81 Nokel81 removed their assignment Sep 21, 2021
@jim-docker jim-docker modified the milestones: 5.2.4, 5.2.5 Sep 27, 2021
@jakolehm jakolehm modified the milestones: 5.2.5, 5.2.6 Oct 1, 2021
@Nokel81
Copy link
Collaborator

Nokel81 commented Jun 15, 2022

Does this still happen?

@Nokel81
Copy link
Collaborator

Nokel81 commented Jun 15, 2022

I think that #3452 fixes this as we no longer try to read .lock files.

@Nokel81 Nokel81 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2022
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
None yet
Development

No branches or pull requests

5 participants