-
-
Notifications
You must be signed in to change notification settings - Fork 25
Memory consumption #64
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
I have tested your example, yes, on windows a memory leak also observed. It seems native resources are not correctly freed in cv.imread and cv.imencode, could you please replace the dependency of opencv_dart with |
I will try to test at night, thank you for your help ❤️ |
It seems an increase of ~20M still exists every time opening a directory, but much better now, and the reason may be an abuse of arena, but I am not clear why... Anyway, I will reassess all arena recently. |
Just for remind myself, According to dart-lang/sdk#54233 , dart objects are small but native objects are large, so GC will not execute as we expected to free native resources timely, but I am still confusing why arena will not release memory automactically... Releated: |
Yes, the memory increases constantly even when I switch around different tabs... will keep tracking |
Describe the bug
memory is not being freed correctly i think
this is my example https://github.com/abdelaziz-mahdy/face_grouping
try to pick a dir with images in it it should extract the faces in it,
from the devtools the memory should be 100mb

but in activity monitor its 2 gb

Expected behavior
i think the memory should be the same as devtools and since they are not the same i think there is a problem with how the c part frees the memory
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: