-
Notifications
You must be signed in to change notification settings - Fork 306
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
[Bug] StreamSink starving memory #2373
Comments
Hi! Thanks for opening your first issue here! 😄 |
Hi, could you please make a minimal reproducible sample? For example, maybe
And to debug, also try to do manually trigger a (full) GC on Dart side, and see whether memory is better. And try dart's devtool's memory part, to see what is eating a lot of memory, and why they are alive instead of GCed. |
Btw, if you want to show videos, then I guess it is great to avoid such rust-to-dart transfer, because after you transfer the bytes to Dart, indeed dart has to again transfer to its engine and display, which is quite long and slow. One possible way may be, use https://github.com/irondash/irondash/tree/main/texture. Then the rust gstreamer frames can directly be displayed to screen, and the rest of the app can be written in Flutter. Possibly related: #1776 |
Hi, firstly thanks for your answer. I tried irondash, and after some fiddling around I've finally got it to work. I don't have problems anymore, and also kudos to the owner of irondash as well |
Hi, happy to see it works! Btw if you see any bugs (such as the starving memory issue) with reproducible sample, feel free to ping me.
cc @knopp - owner or irondash |
Close since this seems to be solved, but feel free to reopen if you have any questions! |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue. |
Hi. I'm trying to stream video frames (in this example Vec) from Rust to Flutter. But frb seems to eat more and more RAM growing exponentially.
Here is my code:
Notes:
stream_sink.add
results in constant memory use (aka no problem.) (I think this means the problem is not with Gstreamer)Thanks for everything
The text was updated successfully, but these errors were encountered: