eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
20.1k stars 2.5k forks source link

Theia sometimes takes very long on the splashscreen #14323

Open alculete opened 1 month ago

alculete commented 1 month ago

Note that I have cut the video because it was taking very long, it took around 5 minutes. Not that it doesn't happen all the time.

Screencast From 2024-10-15 20-25-08.webm

sdirix commented 1 month ago

Thanks for the report!

To help diagnose the issue, we need more information:

alculete commented 1 month ago

I tried with both 1.54 AppImage, and noticed this on 1.53. I also tested this on the new snap version with the same result. As I mentioned this doesn't take long all the time. I run Ubuntu on ZFS but tried on Ext4 also with the same result.

Can you start the IDE from the command line and post the output?

Will do at the end of the day

tsmaeder commented 1 month ago

Also results from top during the start of the IDE would be interesting.

alculete commented 1 month ago

I have created a more detailed recording with Btop.

I noticed That my CPU was consumed almost 100% I can do the same with AppImage if needed which I had the same issue. Screencast From 2024-10-17 20-53-10.webm

tsmaeder commented 1 month ago

This looks like your CPU is maxed out, but the Theia processes do not seem to be the ones consuming the cpu. I'm not convinced this is a Theia problem 🤷

alculete commented 1 month ago

This video gives more detail. gjs starts consuming more CPU when theia starts

Screencast From 2024-10-18 17-12-35.webm

JonasHelming commented 4 weeks ago

I have done a quick search and it seems that many other applications also trigger a high gjs CPU consumption, so this might be a gjs bug. Which Ubuntu version do you use?

alculete commented 4 weeks ago

I'm using 24.10, but I had the same issue with 24.04 before

alculete commented 2 weeks ago

Not sure if this can related, I have vscode and never had the same issue or any other application. This just happens with theia.

JonasHelming commented 2 weeks ago

We can't reproduce this, but we are not on 24.x. Could you paste the output of stdout/stder ?

alculete commented 2 weeks ago

theia_output.log

JonasHelming commented 2 weeks ago

Hey! Thanks for the details. Here are a few things to try that might help:

  1. Disable GNOME Extensions: Sometimes, GNOME extensions can spike CPU usage with certain apps. If you have any enabled, try turning them off temporarily and see if Theia IDE runs smoother.

  2. Switch to X11: If you're on Wayland, try logging in with X11 instead. Some Snap and AppImage apps handle CPU usage better on X11. Just log out, choose “GNOME on Xorg” when you log back in, and test again.

  3. Update Everything: Make sure your system, drivers, and GNOME packages are up-to-date, especially after an OS upgrade. Recent updates sometimes fix issues like this.

Also, if you can, try to spot any patterns—like whether it happens after switching screens or connecting external monitors. Noticing any patterns could give us more clues!

This clearly is a Gnome <=> Theia IDE issue, which is not so easy to identify, especially as it does not occur all the time.

Let us know how it goes!

alculete commented 2 weeks ago
  1. Disable GNOME Extensions:

Don´t have any installed

2. Switch to X11

Tested with the same result

3. Update Everything:

I am up-to-date

Also, if you can, try to spot any patterns—like whether it happens after switching screens or connecting external monitors. Noticing any patterns could give us more clues!

I have completely removed .theia-ide and it is opening without issue. It seems to be related to theia extensions. I normally only install Spring Boot Extension Pack for multiple default extensions or just Spring Initializr Java Support.

EDIT: If I try to open a different folder it gets stuck again without any extension installed.