You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Node.js v18.18.0 on cocalc-docker (and also cocalc.com) the following steps result in the nodejs hub process getting stuck at 100% making the project almost unusably slow. The following is 100% reproducible on cocalc-docker. It's I think even worse on cocalc.com.
Open a terminal in a CoCalc project and split it in half using the split button.
Run the top command in one frame.
Hit ctrl+d to exit the other frame.
The first time, this works fine. Now restart the project, open the same terminal and do 1-3 again. Every single time, the cpu gets pegged at 100%.
Every time the terminal attempts to start again it fails immediately with "signal 1" (and exit code 0).
Switch to v18.17.1 and the problem goes away entirely.
NOTE: I've now pinned version 18.17.1 of nodejs everywhere, e.g., in the latest cocalc-docker image and on cocalc.com, so this issue is mitigated for now.
Thanks for the workaround, it saved my time. I also added your name in the release note, because I literally couldn't solve it without seeing your info here.
For your information, I was experiencing this on Node.js 20.10.0.
Instead of the top command, my project runs docker compose start/restart/down commands.
Not sure if it is related, but they are also "interactive terminals". I don't know the exact name of this.
And also it doesn't seem to happen on Windows' Node.js 20.10.0.
definitely fixes this, and is currently the default with new versions of nodejs.
williamstein
changed the title
exiting a terminal causes 100% cpu usage and breaks restarting that terminal with node >= v18.18
exiting a terminal causes 100% cpu usage and breaks restarting that terminal with node >= v18.18 but <20.11.1 and <21.6.2 (!)
Oct 3, 2024
With Node.js v18.18.0 on cocalc-docker (and also cocalc.com) the following steps result in the nodejs hub process getting stuck at 100% making the project almost unusably slow. The following is 100% reproducible on cocalc-docker. It's I think even worse on cocalc.com.
top
command in one frame.Switch to v18.17.1 and the problem goes away entirely.
I noticed a few things when working on this.
WORKAROUND: Use node v18.17.1.
The text was updated successfully, but these errors were encountered: