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 when pod log open, with "Show Timestamps" enabled #2458

Closed
shripadk opened this issue Apr 6, 2021 · 6 comments
Closed

App crash when pod log open, with "Show Timestamps" enabled #2458

shripadk opened this issue Apr 6, 2021 · 6 comments
Assignees
Labels
area/logs bug Something isn't working
Milestone

Comments

@shripadk
Copy link

shripadk commented Apr 6, 2021

Describe the bug
Had a pod log open with Show Timestamps enabled. The app crashed after a while (checked it after unlocking my Mac from sleep).

Expected behavior
App shouldn't crash

Screenshots
Get the following error:

Screen Shot 2021-04-07 at 12 04 55 AM

Environment (please complete the following information):

  • Lens Version: 4.2.0
  • Electron: 9.4.0
  • Chrome: 83.0.4103.122
  • Node: 12.14.1
  • OS: macOS Mojave 10.14.6 (18G8022)
  • Installation method (e.g. snap or AppImage in Linux): Lens-4.2.0.dmg
@shripadk shripadk added the bug Something isn't working label Apr 6, 2021
@shripadk shripadk changed the title App crash when pod log open, with **Show Timestamps** enabled App crash when pod log open, with "Show Timestamps" enabled Apr 6, 2021
@jim-docker
Copy link
Contributor

Can you reproduce this? Wondering if it is more related to coming out of sleep than the pod logs.

@jim-docker jim-docker added this to the 4.2.2 milestone Apr 12, 2021
@shripadk
Copy link
Author

@jim-docker I tried reproducing it but wasn't successful. Haven't had this bug crop up since. But if it happens again I'll definitely post an update here.

@david-in-perth
Copy link

FYI: I just encountered this in Linux (Ubuntu).

I had a pod log window open (with timestamps enabled), but hadn't looked at it since about a day ago.
A few minutes ago, I used Reload (View > Reload or Ctrl+R, I can't remember which),
and got an app crash screen more-or-less the same as the OP (except the path in the URL is /jobs).

App crash at http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/jobs

Component stack:

    at RF (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:8287800)
    at div
    at div
    at xF (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:8293971)
    at footer
    at div
    at IU (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:8498815)
    at AA (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:7675741)
    at t (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:222042)
    at kU (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:8500319)

Error stack:

TypeError: Cannot read property 'showTimestamps' of undefined
    at RF.renderResourceSelector (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:8288622)
    at RF.render (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:8289137)
    at Ce (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:13973)
    at http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:7531713
    at ce (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:12079)
    at e.track (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:23443)
    at RF.s [as render] (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:7531661)
    at RF.Ee (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:7531809)
    at RF.t.render (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:7530765)
    at _s (http://e2eda300-b5d0-4889-8971-42ea56ec683c.localhost:44793/build/Lens.js:2:4631182)

Environment:

  • Lens Version: 4.2.1
  • Electron: 9.4.0
  • Chrome: 83.0.4103.122
  • Node: 12.14.1
  • OS: Ubuntu 20.04.2 LTS (upgraded from Ubuntu 18.04)
  • Installation method (e.g. snap or AppImage in Linux): snap

@david-in-perth
Copy link

@jim-docker : I've reproduced it multiple times using "reload" (Ctrl+R).

I've been closing and reopening Lens and trying various experiments before reloading, and it seems to cause a crash in a variety of different circumstances.

Here are some examples that seem to be consistent behaviour:

  • Open log window for a pod; Quit Lens; Start Lens; Lens opens cluster; Lens restores previously open log window; Press Ctrl+R.
    • Result: Crashed every time so far
  • Quit Lens while no log windows are open; Start Lens; Lens opens cluster; Press Ctrl+R.
    • Result: No crash so far
  • Quit Lens while no log windows are open; Start Lens; Lens opens cluster; Open log window for a pod; Press Ctrl+R.
    • Result: In most cases, it crashed, but in a few cases it didn't (I haven't identified a pattern yet)

I didn't touch the show-timestamps button in any of the above tests.

Hopefully this is enough for someone else to reproduce.

@Nokel81
Copy link
Collaborator

Nokel81 commented Apr 26, 2021

Fixed by #2566

@Nokel81 Nokel81 closed this as completed Apr 26, 2021
@david-in-perth
Copy link

Note for future reference: As covered in #2652, this error still occurs in Lens 4.2.5. A fix (#2959) was included in 5.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logs bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants