-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 usage surge when selecting/appending MultilineEntry text #3426
Comments
Thanks for this. It is very strange that selecting should do this, as everything should be a cache hit regarding the text rendering. |
I can replicate this quite easily. The moving of selection is triggering refresh, which we should avoid as we don't have to refresh the whole widget. This is probably separate to the linked issues which are really the source for the huge growth as the text rendering is clearly not clearing out old textures |
There is an underlying issue where text refresh memory is not freed but here we are able to avoid refresh which is always good. Fixes fyne-io#3426
Nice work guys! |
It has been landed on develop now, so you can test before release by running |
@andydotxyz I tried |
Indeed, sorry for this. There is a separate issue that we are working on - texture cache hits with text are basically not firing so we keep rendering new content when anything changes |
Checklist
Describe the bug
My fyne App is just a node.exe launcher. It launcher node.exe and capture its output and write to a text entry.
Memory usage surge when selecting/appending MultilineEntry text as the following gif shows.
Memory usage keeps growing when the output of the node script is captured to the text entry. After about an hour of running, the memory usage peak at an astonishing 12G.
How to reproduce
Screenshots
Example code
Fyne version
2.2.3
Go compiler version
1.17
Operating system
macOS
Operating system version
12.5.1
Additional Information
No response
The text was updated successfully, but these errors were encountered: