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

App crash at /workloads [Lens-5.2.4-latest.20210923.1.amd64] on Ubuntu 21.04 #3895

Closed
funnyguygithub opened this issue Sep 25, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@funnyguygithub
Copy link

funnyguygithub commented Sep 25, 2021

App crash at /workloads

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Workloads'
  2. Click on 'Overview'
  3. It loads metrics, starting displaying, but then crashes
  4. See error

Error stack:

TypeError: Cannot read property 'clientWidth' of undefined at render (~/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7:608021) at allowStateChanges (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:1472:12) at http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:10151:59 at trackDerivedFunction (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:2024:18) at Reaction.track (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:2552:18) at reactiveRender [as render] (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:10149:14) at qi (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535639:188) at pi (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535638:173) at ck (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535721:427) at bk (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535702:347) at ak (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535702:278) at Tj (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535702:138) at Lj (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535695:163) at http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535575:115 at exports.unstable_runWithPriority (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535786:343) at gg (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535574:325) at jg (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535575:61) at ig (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535574:428) at Jg (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535689:203) at Object.enqueueSetState (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:535585:211) at r.C.setState (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:459170:369) at r.generateChartDataSeries (/home/funnyguy/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7:597517) at r.displayChart (~/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7:597140) at r.componentDidMount (~/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7:597935) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:93:5)

Component stack:

at r (~/.k8slens/extensions/nevalla--kube-resource-map/dist/renderer.js:7:595820) at div at div at Details at div at WorkloadsOverview (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:607438:34) at Route (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:32471:29) at Switch (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:32641:29) at ErrorBoundary (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:572072:47) at ErrorBoundary (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:572181:36) at main at div at http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:9707:16 at Workloads (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:610679:41) at Route (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:32471:29) at Switch (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:32641:29) at ErrorBoundary (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:572072:47) at ErrorBoundary (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:572181:36) at div at div at MainLayout (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:572611:9) at ErrorBoundary (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:572072:47) at ErrorBoundary (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:572181:36) at Router (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:32134:30) at App (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:666352:9) at ThemeProvider (http://ef9454edd80796e0267cfab8a895bb1a.localhost:38363/build/Lens.js:700028:24)

Expected behavior
Display the Workload Overview

Screenshots

image

Environment (please complete the following information):

  • Lens Version: Lens-5.2.4-latest.20210923.1
  • OS: [e.g. OSX] Ubuntu 21.04 x86_64
  • Installation method (e.g. snap or AppImage in Linux): Lens-5.2.4-latest.20210923.1.amd64.deb

Additional context

  1. It works on Mac fine.
  2. Lens-4.2.5 works fine - no issues with Workloads - Overview on the same Ubuntu laptop.
@funnyguygithub funnyguygithub added the bug Something isn't working label Sep 25, 2021
@systemmonkey42
Copy link

Please search for issues before posting.

Duplicate of #3889 #3861 #3835 #3830 and probably others. The solution is at the end of each.

#3835 (comment)

@Nokel81 Nokel81 closed this as completed Sep 27, 2021
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

3 participants