Skip to content

Conversation

@joshkel
Copy link
Contributor

@joshkel joshkel commented Nov 13, 2023

If communicating via debugger to generate a stack trace fails, then fall back to a regular event, instead of throwing an uncaught exception.

If the parent process exits, exit the ANR child.

Fixes #9546


Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).

(Tests would be a good idea, but I don't see pre-existing tests for the ANR feature and am not sure the best way to add them.)

@mydea mydea requested a review from AbhiPrasad November 14, 2023 08:09
If communicating via debugger to generate a stack trace fails, then fall
back to a regular event, instead of throwing an uncaught exception.

If the parent process exits, exit the ANR child.

Fixes #9546
@lforst lforst self-requested a review November 15, 2023 08:07
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @joshkel!!

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) November 20, 2023 14:23
@AbhiPrasad AbhiPrasad disabled auto-merge November 20, 2023 14:23
@AbhiPrasad AbhiPrasad changed the title Improve error handling and shutdown handling for ANR fix(node): Improve error handling and shutdown handling for ANR Nov 20, 2023
@AbhiPrasad AbhiPrasad enabled auto-merge (squash) November 20, 2023 14:23
@AbhiPrasad AbhiPrasad merged commit 205c1c9 into getsentry:develop Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ANR (App Not Responding) child may outlive parent process

2 participants