-
Notifications
You must be signed in to change notification settings - Fork 7
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
Ringboard EGUI uses a lot of shared memory #41
Comments
Whoa, yeah that's really bad. I'll see if I can repro. What version of ringboard egui is this? Should be in the title bar. |
V0.8.1 |
Do you leave the gui open all the time? If you close it I see the memory drop, but if I leave it open and copy stuff till images disappear from the bottom I'm seeing that they're not being cleaned up. I'll fix that, but just wondering if that's the bug you're seeing. |
I don't even intentionally leave it open. There's a chance that I've done it from time to time, but I don't think that's the whole reason....? I, in fact, barely open it... The ways I know to close it are to press escape, click the close button, or press enter on an entry. Maybe it's related to how you send it to the background instead of killing it? This might just be a thing where I need to try dumping the memory the next time I catch it (does dumping memory with |
To be more clear on why I don't think it is (because as I rambled on writing that I tested and found additional reason to not think it), it made the normal memory build a lot, but closing it would flush it properly. |
Signed-off-by: Alex Saveau <[email protected]>
Yeah all of that drops the memory usage in my testing.
The easiest way is to press Alt+M and then search for "image". Then if you press Esc to go back to the main list, the memory won't drop. But! I fixed this bug and noticed the memory doesn't drop all the way back to zero. So there's some kind of memory leak in egui. |
I didn't know you could do But also, good luck finding your memory leak. I've never managed memory myself so that sounds awful to find and fix |
Oops, added: b201bf8 |
Yeah, I'm going to see if I can trace the leak. In the meantime, you can run |
That worked 👍 (after adding |
Well I filed emilk/egui#5600, but I'm not sure it's worth debugging this further. At some point I'd like to get rid of egui and build a libcosmic iced application, though that won't be for a while. |
Signed-off-by: Alex Saveau <[email protected]>
I find my memory usage climbing slowly as i use it, and it took me a long while to actually identify Ringboard as the culprit
I had assumed it was, because it was the only recent change, but because I was trying to sort by memory and it wasn't appearing I thought it couldn't be it. Only to finally search for ringboard in resource monitor, and find it having a massive amount of shared memory
Killing it, I found my 32gb memory usage dropped drastically:
The only thing I could think of being my fault, is the fact that I copy a lot of images. In fact, my screenshot tool (GNOME) automatically puts screenshots into my clipboard.
I would still hope it would have some way of cleaning its memory, because it just feels like it has a bad leak right now.
The text was updated successfully, but these errors were encountered: