-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Script won't exit with ANR and captureStackTrace active #10022
Comments
Thanks for reporting. Sorry, this was unexpected behaviour and therefore didn't even end up in the test cases. |
Ah, thanks for the heads up. I'll test this tomorrow! |
I couldn't wait but I'll check again tomorrow because it's late... With the following code and the timer fix, node exits cleanly after a second: const Sentry = require('@sentry/node');
function configureSentry() {
Sentry.init({
dsn: 'https://[email protected]/1337',
integrations: [new Sentry.Integrations.Anr({ captureStackTrace: false })],
});
}
async function main() {
configureSentry();
await new Promise(resolve => setTimeout(resolve, 1000));
process.exit(0);
}
main(); |
@timfish I apologize; there was a bug in my test case. (That's what I get for trying to do too many things at once...) I'm seeing the issue with |
Oh, you're right, it doesn't actually fix it with the timer undef'd. The debugger must keep it alive 😬 |
All the ANR fixes were released with https://github.com/getsentry/sentry-javascript/releases/tag/7.92.0 - please give it a try! Thanks for your help + contributions, appreciate it! |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
7.91.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
Expected Result
The program cleanly exits after 1 second.
Actual Result
The program waits forever with the following console output:
I can find no workaround.
The text was updated successfully, but these errors were encountered: