Visual Studio Code plugin sometimes fail to load on Theia 1.59 #15396
-
We are running Theia 1.59 as a hosted application with a custom VSCode plugin. The VSCode plugin sometimes fails to load. Here is the stack trace that shows in the browser:
Also, I have noticed that when the application is operating normally, there is this error that shows in the browser dev tools, and it keeps coming in every second or so. The id keeps incrementing.
Do you have any lead as to what could be happening here? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 9 replies
-
I have updated from Theia 1.58 to Theia 1.59 mainly to get the fix for the issue with refreshing tree views. There is another change that I've made at the same time I updated from Theia 1.58 to Theia 1.59. I've moved my plugin from a I found that there are 3 ways to install VSCode plugins:
I have changed the way we install our plugin from user to deployed. In the meantime, I'll try to revert back to using user plugins. |
Beta Was this translation helpful? Give feedback.
-
I have rolled back to Theia 1.58 an hour ago, and the application now seems to be stable. |
Beta Was this translation helpful? Give feedback.
-
I confirm that on Theia May be related or not, but our instance's back-end is only accessible through the company's VPN. So when users disconnect from the VPN and reconnect, they are experiencing this issue: #14516 Users are seeing a cascade of errors like this: |
Beta Was this translation helpful? Give feedback.
-
I have many users on the same Theia server, and from what I can see, it seems like socket connections remain open after the users get disconnected. This is eventually causing a memory leak. This is only happening on Theia 1.59. In git, I see the the default value for frontendConnectionTimeout is 0, which seems appropriate as it should timeout the socket connection immediately when it is disconnected. Also for reloadOnReconnect, it defaults to false, which I understand is what we want for the electron app. |
Beta Was this translation helpful? Give feedback.
-
cc @tsmaeder Any idea what could've changed in 1.59 that leads to this issue? |
Beta Was this translation helpful? Give feedback.
-
I confirm that since I have added the 2 following settings for the Theia browser app in the Setting Here is an example for how to set these: |
Beta Was this translation helpful? Give feedback.
-
@msujew @tsmaeder I am also experiencing this issue since I upgraded from release 2025-02 to 2025-05. The worse part is that it spoils the electron app after computer goes to sleep/screensaver and wakes up again. The application goes nuts due to endless reconnection attempts. The only way to recover is restarting the electron app. Without knowing much, it seems the frontend is trying to re-use rpc connection id's, but the backend generates new id's after client reconnects? I am using browser for development and electron for distribution. Happy to provide logs and more details if that helps. |
Beta Was this translation helpful? Give feedback.
I confirm that since I have added the 2 following settings for the Theia browser app in the
package.json
, my users aren't facing the memory leak issue anymore with Theia 1.59:Setting
reloadOnReconnect: true
andfrontendConnectionTimeout: 3000
configuration options fixes the leak problem.I cannot explain why, but have tested this with almost 100 users for a period of 2 weeks.
Here is an example for how to set these:
https://github.com/eclipse-theia/theia-ide/pull/441/files