-
Notifications
You must be signed in to change notification settings - Fork 541
Sentry hangs multiprocessing application with mp.Manager resources #2197
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
Related: #291 |
Hey @rafalpotempa ! Better late than never. I just tried to reproduce this. I ran your sample code with SDK version 1.35.0 and Python 3.9.15 and the programm finishes and the error Can you retry with and updated version of the Sentry SDK and tell me if this is still an issue you are having? Thanks! |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.25.1
Steps to Reproduce
While using Python
sentry_sdk
version 1.25.1 together withmultiprocessing.Manager
that has some shared values, the process hangs after receiving an exception in subprocess.The problem occurs only when
manager.Value
and Sentry are initialized at the same time. Commenting out any of them releases the execution. You can see that the values doesn't have to be used by subprocess. Themultiprocessing
creates a process called resource tracked which might be conflicting with closing the Sentry watcher correctly.You can recreate the issue using the snippet below.
SENTRY_DSN
env variable is set to proper valueExpected Result
Sentry handles the exception received in the main process, reraises it and the program execution ends with non-zero exit code.
Actual Result
The program receives the exception but waits infinitely for something to end it.
The text was updated successfully, but these errors were encountered: