-
-
Notifications
You must be signed in to change notification settings - Fork 246
Error RpcIpcMessagePortClosedError #623
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
Comments
I've tried to reproduce this issue but with no success - it works on my machine. I didn't try with the VM tough. I guess it may be a bug in Node on Xubuntu. It seems that Node is killing the plugin's forked process. |
Thank you for the reply. I was testing it some more this afternoon and figured out I underestimated memory usage. Increasing RAM for the said virtual machine past 4 GB and increasing the swapfile helped and I am not getting this error any more. |
Cool! No need to apologize 😃 I'm glad that it works for you :) |
@piotr-oles (node:839) UnhandledPromiseRejectionWarning: RpcIpcMessagePortClosedError: Cannot send the message - the message port has been closed for the process 839.
at .../node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:47:47
at processTicksAndRejections (internal/process/task_queues.js:81:21) This does not break anything, since we already in the state of exiting, but this message is annoying, because the reason we finishing process is an explicit stop on another error. In that case we have two errors, one of them would be irrelevant, and will mess up minds of devs. |
I have a similar problem I want to share. Maybe its helpful to figure out what is the problem is. For this I will provide my setup here. I came here from usage of nx running a node application. For development setup we run
here I changed a file and saved it.
The whole process is running in a docker container.
docker_compose.yml
command to start:
My current "fix" is to add the My current assumption is, that there is a restriction in the IPC inside the docker (this is wild guess!). But maybe somebody with a deeper knowledge about this can see some connection I miss here. Last note: The Issue disappears if the nx process is not running inside a docker container. |
If you use swc or esbuild, please check whether the version of Glibc in your operating environment is lower than version 2.24. swc-project/swc#1410 |
Current behavior
I stumbled upon an issue when running an editor Zettlr (https://github.com/Zettlr/Zettlr) and the issue seems to originate from fork-ts-checker-webpack-plugin module. This issue might be similar to #562, however the steps to reproduce are different.
Error message:
Expected behavior
Instead of Zettlr starting normally, the error message is displayed and Zettlr either fails to start or starts with a blank window.
Steps to reproduce the issue
By default fork-ts-checker-webpack-plugin version 6.2.10 is installed. Above steps produce the error message shown above. The program then exists without starting the GUI of Zettlr or the Zettlr starts with a blank window. Several instances of this message appear each with a different process ID and the number of messages corresponds to the number of (virtual) CPU cores.
If I downgrade to fork-ts-checker-webpack-plugin version 6.2.2 with:
and run Zettlr with the same command:
the error doesn't appear and Zettlr starts normally. I tried other version (6.2.3, 6.2.4 and 6.2.5) and sometimes it works (Zettlr starts without any error), sometimes it doesn't (the above error is displayed).
I tested this on freshly installed Xubuntu in virtual machine and with the develop branch of Zettlr from github repo.
Issue reproduction repository
https://github.com/Zettlr/Zettlr, develop branch
Environment
The text was updated successfully, but these errors were encountered: