Lens crashes on startup

Hello,

The Lens application crashes upon startup. I’m left with the following error and stack trace.
I’m stuck with this error and cannot do anything else. The Back button also does nothing.

Component stack:

    at le (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:2:196021)
    at ri (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:2:262434)
    at div
    at https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:10672081
    at div
    at div
    at div
    at l (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:1402964)
    at b (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:9663813)
    at main
    at div
    at y.getProps (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:12239051)
    at I (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:1396458)
    at G (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:6477477)
    at I (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:1396458)
    at l (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:1402964)
    at re (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:2:855769)
    at https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:12355780
    at div
    at https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:10459272
    at t (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:5455435)
    at https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:12355780
    at https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:9903851
    at l (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:1402964)
Error stack:

AssertionError [ERR_ASSERTION]: There must be some tab data for a kube resource tabId
    at instantiate (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:10428674)
    at https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:12355606
    at https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:2:318584
    at B (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:2:318648)
    at https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:2:323585
    at Object.inject (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:2:322482)
    at Object.u [as inject] (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:2:317866)
    at Object.getCurrentTitle (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:10451646)
    at https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:10668460
    at ct (https://lens.app:56653/build/lens.js?a4d206b170f2c4d92ccd:8:1450747)```

Having the very same issue here too. Running macOS 15.0.1 (24A348) with Lens: 2024.10.171859-latest. Issue appeared after I deleted a cluster from my kubeconfig with kubectl.

Hello there, apologies for the late reply.

This is a bug we are currently fixing. A patch should be released in the next few days for it. It is caused when our storage gets into a corrupted state (due to the aforementioned bug).

Please delete the folder /Library/Application Support/Lens/lens-local-storage-v2 (for MacOS), and restart Lens. You will be able to bypass the problem with it.

Let us know if you have further issues.

Hello,

Thanks for the reply. I’m using Windows. Should I delete the same folder?

In Windows, the folder would be at:

  • /Users/USERNAME/AppData/Roaming/Lens/lens-local-storage-v2
    or
  • /Users/USERNAME/AppData/Local/Lens/lens-local-storage-v2

Depending on how Lens was installed in your machine. Please delete that, and the problem will go away.

We will fix this permanently on our side in the next release

Thanks, the issue is resolved.

1 Like

Hi there,

many thanks for the reply. This fixed my issue! Appreciated

1 Like