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

Theia lags and or becomes unresponsive. #3178

Closed
apolopena opened this issue Feb 11, 2021 · 8 comments
Closed

Theia lags and or becomes unresponsive. #3178

apolopena opened this issue Feb 11, 2021 · 8 comments
Labels
editor: theia meta: stale This issue/PR is stale and will be closed soon meta: 🤔 reporter-feedback-needed cannot process further since we need more info from the reporter type: bug Something isn't working

Comments

@apolopena
Copy link

apolopena commented Feb 11, 2021

Describe the bug

Every attempt to load my project with the Theia editor results in a either a hung page or a 5 minute wait. The vscode editor does not do this.

Steps to reproduce

Start a project with the theia editor, notice spinners in the file tree where folders are open and the extra long wait time.

Expected behavior

Thiea should not hang or take 5 minutes to load when vscode works as expected,

Additional information

  • If you the Beta feature: vscode as the editor, then there is no lag or hung page.

  • See the spinners in the file tree in the image below. They spin for up to 5 minutes before I can interact with the page.

image

Example repository

https://github.com/apolopena/q-and-a-challenge/tree/development

@ArthurSens ArthurSens added the meta: 🤔 reporter-feedback-needed cannot process further since we need more info from the reporter label Feb 11, 2021
@ArthurSens
Copy link
Contributor

I've tried to reproduce this behavior with your repository, but was able to open the project in a Theia workspace almost instantly 🤔

Looking at our monitoring, it doesn't look like we had degraded performance today, but maybe you had the bad luck to open during some random spikes?

Is this behavior still happening?

@apolopena
Copy link
Author

apolopena commented Feb 11, 2021

It is still happening. Maybe it has to do with my specific workspace? emerald-herring-uyhdsamt.ws-us03.gitpod.io
EDIT: I was on my development branch maybe that is why you didnt see the issue. I updated the original post.
image
image

@akosyakov
Copy link
Member

akosyakov commented Feb 12, 2021

@apolopena Does it happen if you don't use browser preview but open a new window for preview? Could you share your project? (found it)

@apolopena
Copy link
Author

apolopena commented Feb 12, 2021

@akosyakov Yes indeed the project is being served. I can access it from an external browser window while Theia is frozen. I always had a bug in the starter project my project is built from where restarting the workspace would give me this error:

2021/02/03 16:16:18 error while issuing request: Post "http://localhost:23000/gitpod/cli": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2021/02/03 16:16:53 error while issuing request: Post "http://localhost:23000/gitpod/cli": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

I am pretty sure the cause of the bug is from trying to start the preview browser when it is already running. I had the preview browser running from a command task just in case an unsavvy user closed the preview browser, stoped the workspace and then wondered why the preview was gone when they started the workspace back up.
The bug was pretty benign so I left it alone. However perhaps something internally changed because now it appears that this bug is a blocker. Although if you wait long enough the IDE unfreezes and this familiar message appears in the terminal for the command task.

2021/02/12 16:39:29 error while issuing request: Post "http://localhost:23000/gitpod/cli": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2021/02/12 16:40:04 error while issuing request: Post "http://localhost:23000/gitpod/cli": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

I guess I need to sniff for the preview browser process running and then conditionally run the preview/refresh routine. I can look into it more later but right now I just swapped over to VSCode IDE in the beta preview so I can continue to work.

Pretty much all of these issues stem from me trying to circumvent the issue where quite often when the preview browser opens naturally via onOpen: open-preview, it is a 404 page with a try again button, after a few attempts the page would display, sometimes the page would display right away but it was inconsistent. This was not a good user experience so I worked in the preview/refresh routine which I admit is a kludge.

@apolopena
Copy link
Author

apolopena commented Feb 12, 2021

UPDATE:
The page just froze again in the middle of pushing to the repo. It didnt seem to have anything to do with the preview window.

UPDATE 2:
It happened again only when pushing to the repo.

@apolopena
Copy link
Author

It stopped happening however there is still seems to be wierdness around calling gp in a command task. See here.

@ccssmnn
Copy link

ccssmnn commented Mar 17, 2021

I am also experiencing this a lot:

image

First only on PRs with lots of changes but now also when launching a workspace with no changes at all.

@akosyakov akosyakov added editor: theia type: bug Something isn't working labels Mar 18, 2021
@stale
Copy link

stale bot commented Jun 16, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Jun 16, 2021
@stale stale bot closed this as completed Jun 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor: theia meta: stale This issue/PR is stale and will be closed soon meta: 🤔 reporter-feedback-needed cannot process further since we need more info from the reporter type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants