-
Notifications
You must be signed in to change notification settings - Fork 16
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 on EmojiPicker #17
Comments
Hi! Thank you for providing this. Its an annoying booboo that I'll dive deeper after my other projects. Hope its not game breaking for your app. |
Thanks for responding! I'll try take a look at the source code and see if I can help identify the issue too. It's worth noting that I've also noticed similar memory leak problems in other emoji picker libraries. I'll keep you updated on my findings. Thanks again for your help! |
Thanks, any help is appreciated! |
I'd like to contribute. However, this is not doable for now, due to lack of permission. To fix it, apply 'weak' to delegate property to avoid from reference cycle. Could you please apply this small change to the main branch? Thanks. @Finalet On ElegantEmojiPicker.swift
And on ElegantEmojiPickerDelegate.swift
|
Thanks for the input, I will look into it! In terms of contributing:
Are you unable to fork and create a pull request to the base repository? @loongman |
The original issue should be fixed now. However, found another quite interesting issue. As you can see on the screen recording, after switch among different categories on the toolbar, memory increased rapidly, it stay there even after closed the picker. After some quick investigations, it seems the OS generated huge cache(1000+ Malloc Blocks) for Any thoughts/suggestions on that? @Finalet Screen.Recording.2023-06-03.at.21.53.53.mov |
Have you tried switching the app to the background? I found that it seems to reduce memory usage to a reasonable level. |
Good finding. @zizicici Memory usage can also be reduced if apply 'Debug -> Simulate Memory Warning' to Simulator. |
Hi,
First of all, thank you for creating this!
However, I have noticed a memory leak when using the library. EmojiPicker never gets released from memory.
You can reproduce this issue on Demo app.
Steps to reproduce:
Thanks in advance!
The text was updated successfully, but these errors were encountered: