Skip to content

[Streams] ISourceRef might have a memory leak problem #7611

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

Open
Arkatufus opened this issue Apr 30, 2025 · 2 comments
Open

[Streams] ISourceRef might have a memory leak problem #7611

Arkatufus opened this issue Apr 30, 2025 · 2 comments

Comments

@Arkatufus
Copy link
Contributor

Arkatufus commented Apr 30, 2025

Version Information
Version of Akka.NET? dev branch
Which Akka.NET Modules? Akka.Streams

Describe the bug
There is tentative evidence that ISourceRefs are not completed and/or being pinned in memory and causes memory leaks.

Reproduction
Will need to create multiple substream that uses ISourceRef and see if they're pinned or not.

@Arkatufus
Copy link
Contributor Author

Still need to be fleshed out and a reproduction need to be created.

@Aaronontheweb Aaronontheweb modified the milestones: 1.5.41, 1.5.42 May 6, 2025
@Aaronontheweb
Copy link
Member

@Arkatufus I am willing to bet that these two are the same issue #7125

Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this issue May 15, 2025
Solves issue with slow StreamRef termination detection when remote actors terminate abruptly. Added immediate termination detection to SinkRefImpl when data is actively flowing, similar to existing SourceRefImpl behavior. Added tests to verify the fix.

Fixes akkadotnet#7647, related to akkadotnet#7611 and akkadotnet#7125.
@Aaronontheweb Aaronontheweb modified the milestones: 1.5.42, 1.5.43 May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants