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

Server process.on events handling is broken #120

Open
xxshady opened this issue Mar 8, 2022 · 3 comments
Open

Server process.on events handling is broken #120

xxshady opened this issue Mar 8, 2022 · 3 comments
Labels
type: bug Something isn't working

Comments

@xxshady
Copy link
Contributor

xxshady commented Mar 8, 2022

Description of the problem

process.on events are duplicated (rarely on server startup) and server freezes after resource restart

Reproduction steps

process.on("uncaughtException", (error) => {
  console.log("uncaughtException", error.stack);
});
setTimeout(() => { throw new Error("test") }, 0);
  1. restart resource

Expected behaviour

.

Additional context

No response

Operating system

Windows 11

Version

dev/10.0-dev4

Scope

server

@xxshady xxshady added the type: bug Something isn't working label Mar 8, 2022
@LeonMrBonnie
Copy link
Contributor

Still the case after NodeJS update?

@xxshady
Copy link
Contributor Author

xxshady commented Mar 16, 2022

yes

@xxshady
Copy link
Contributor Author

xxshady commented Apr 7, 2022

@LeonMrBonnie seems like handled exception with process.on("uncaughtException") in setImmediate even crashes v8

process.on("uncaughtException", (error) => {
  console.log("uncaughtException", error.stack);
});

setImmediate(() => {
    throw new Error('kek');
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants