-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Opening Emoji Picker Leaks Memory #5290
Comments
Wow, this is amazing. Thank you for this report! Since it appears to be a bug in the electron we are limited in what we can do in Signal Desktop app. Will keep this issue open in case of any breakthroughs on the electron side. |
@indutny-signal, yea, I've already got a PR to fix the issue on Electron, they may want a slightly different approach to the fix, but there's a couple of different fixes possible, so I imagine consensus will form on one of them and it should make it into an Electron release soon. It is somewhat possible to work around it directly in Signal, but I wouldn't take that approach unless the upstream fix stalls out. Signal already intercepts the |
This makes sense. It sounds like it would be better to wait until the patch goes into electron and just update it for Signal. Thank you for putting so much effort in it! I appreciate it. |
@indutny-signal, the upstream fix is now released in Electron, it's in v12.0.11 as well as v13.1.2. |
This is so awesome. We'll update ASAP! |
Closing this issue as the upstream fix has been picked up. |
Bug Description
Opening the emoji picker in a conversation will leak memory in the main process, due to a bug in Electron.
This is probably the same bug as #4808, but this is a concrete reproduction case. The leak, however, occurs any time images are loaded, which can occur when switching between conversations with reactions, emojis, or any other images (not attached images). See the linked Electron bug for a more technical explanation.
Steps to Reproduce
Actual Result:
~40 MB of memory is leaked by the main process in step 2 each time.
Expected Result:
There should be no significant change in the memory usage of the main process.
Screenshots
Platform Info
Signal Version: v5.2.1
Operating System: macOS Big Sur 11.3.1
Linked Device Version: Android
Link to Debug Log
The text was updated successfully, but these errors were encountered: