Skip to content
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 when deallocating and reallocating WhisperContext #2467

Open
yousifa opened this issue Oct 8, 2024 · 4 comments
Open

memory leak when deallocating and reallocating WhisperContext #2467

yousifa opened this issue Oct 8, 2024 · 4 comments
Labels
bug Something isn't working high priority Very important issue

Comments

@yousifa
Copy link

yousifa commented Oct 8, 2024

Deallocating WhisperContext (from swift) will leave memory allocated (1-10mb)

To replicate:
Call WhisperContext() and then set it to nil in the demo whisper swiftui app repeatedly. Memory will continue growing.

@chnbr
Copy link

chnbr commented Oct 10, 2024

I can confirm this. Sometimes the memory loss is up to 30MB.

@yousifa
Copy link
Author

yousifa commented Oct 10, 2024

Yep, the amount it retains seems inconsistent and random

@ggerganov
Copy link
Owner

Thanks for reporting. I'll take a look in the next days. Let me know if you find what is the resource that leaks or the commit that caused the regression.

@ggerganov ggerganov added bug Something isn't working high priority Very important issue labels Oct 10, 2024
@yousifa
Copy link
Author

yousifa commented Oct 10, 2024

Thanks, I'm looking into it too. This issue has existed for at least 6 months, as that was the version I was using when i first noticed it (and it still exists in the latest).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority Very important issue
Projects
None yet
Development

No branches or pull requests

3 participants