-
-
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
Memory leak with endless streaming (example: CCTV) #13806
Comments
Hi @soapproject thanks for writing in! I don't have a lot of context on the particular code here but generally, PRs are always welcome. I believe our fetch instrumentation is well-tested so if the fix causes other problems, we should (lol famous last words) discover it. If you submit a PR I'll ask @lforst for a review when he's back. |
This is a quick fix to address a memory overflow issue caused by the recursive approach when handling endless streams (e.g., CCTV). However, this is not a perfect solution, as this approach still does not trigger the onFinishedResolving callback for streams that never terminate. Fixes getsentryGH-13806
This is a quick fix to address a memory overflow issue caused by the recursive approach when handling endless streams (e.g., CCTV). However, this is not a perfect solution, as this approach still does not trigger the onFinishedResolving callback for streams that never terminate. Fixes getsentryGH-13806
A PR closing this issue has just been released 🚀This issue was referenced by PR #13809, which was included in the 8.33.1 release. |
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/nextjs
SDK Version
8.30.0
Framework Version
next 14.2.13, react 18.2.0, video.js 7.21.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
Steps to Reproduce
Expected Result
I believe this is causing the issue:
Unresolved promises and their context are stacking up in the task queue.
Is there any specific reason to use recursion in this case? If not, may I submit a PR with an alternative approach?
example:
Actual Result
The text was updated successfully, but these errors were encountered: