lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.3k stars 1.45k forks source link

App crash at /pods #7982

Open dmitrygribenchuk opened 7 months ago

dmitrygribenchuk commented 7 months ago

Describe the bug Hello. I'm using an app on Ubuntu 22.04.3 installed via snap (latest/edge). After update to 2023.11.200736-alpha I have a crashes when I try to edit resources (pod, deployments, etc.) or get into pod shell

To Reproduce Steps to reproduce the behavior:

  1. Go to Pods
  2. Click on 'edit'
  3. See error

Expected behavior Open an editor

Screenshots image

Environment (please complete the following information):

Logs:

Component stack:
    at div
    at NonInjectedErrorBoundary (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:633054:32)
    at div
    at NonInjectedDock (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:627042:23)
    at div
    at div
    at NonInjectedMainLayout (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:588504:29)
    at observerComponent (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:268045:16)
    at ObserverComponent (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:268093:23)
    at NonInjectedErrorBoundary (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:633054:32)
    at observerComponent (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:268045:16)
    at ObserverComponent (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:268093:23)
    at observerComponent (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:268045:16)
    at NonInjectedKeyboardShortcutListener (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:637815:3)
    at ThemeProvider (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:133230:24)
    at https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:585229:18
    at Router (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:500206:30)
    at https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:585229:18
    at observerComponent (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:268045:16)

Error stack:

TypeError: Cannot read properties of null (reading 'kind')
    at is20223Decorator (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:271258:54)
    at createObservable (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:271913:7)
    at b (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:142566:1902)
    at https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:142566:1750
    at ck (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:498842:28)
    at bk (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:498818:347)
    at ak (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:498818:278)
    at Tj (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:498818:138)
    at Lj (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:498811:163)
    at Jg (https://db31273412690f2864bc23b86bb9145e.lens.app:41027/build/lens.js?6ae87aa8aa700c37c1bf:498805:175)
dmitrygribenchuk commented 5 months ago

Hello. Have an one more crash on stable.

Environment (please complete the following information):

Lens Version:  2023.11.131420-latest
OS: Ubuntu 22.04.3
Installation method (e.g. snap or AppImage in Linux): snap

image

Component stack: at observerComponent (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:352042:16) at div at div at ItemListLayoutHeader (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:159324:28) at div at NonInjectedItemListLayout (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:159439:9) at NonInjectedKubeObjectListLayout (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:169391:9) at NonInjectedErrorBoundary (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:658765:9) at main at div at observerComponent (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:352042:16) at observerComponent (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:352042:16) at observerComponent (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:352042:16) at NonInjectedErrorBoundary (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:658765:9) at div at div at NonInjectedMainLayout (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:171445:9) at observerComponent (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:352042:16) at ObserverComponent (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:352090:23) at NonInjectedErrorBoundary (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:658765:9) at observerComponent (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:352042:16) at ObserverComponent (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:352090:23) at observerComponent (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:352042:16) at NonInjectedKeyboardShortcutListener (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:664815:48) at ThemeProvider (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:227296:24) at https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:126768:28 at Router (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:583997:30)

Error stack: SyntaxError: Invalid regular expression: /[/gi: Unterminated character class at new RegExp (<anonymous>) at module.exports (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:288367:10) at filterBasedOnText (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:173665:64) at https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:173713:78 at trackDerivedFunction (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:356440:18) at ComputedValue.computeValue_ (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:356240:13) at ComputedValue.trackAndCompute (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:356226:25) at ComputedValue.get (https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:356195:18) at https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:173547:50 at https://298c6874bc5a8387b0a4bc3effaec61b.lens.app:40587/build/lens.js?1e1545c9b34f1f32145d:352042:49

Nokel81 commented 5 months ago

Thanks for the bug report