pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
487 stars 90 forks source link

Memory Leak #987

Open joel-wright opened 4 days ago

joel-wright commented 4 days ago

I seem to be experiencing some sort of memory leak with cosmic-comp.

This has happened twice in the last few weeks and eventually leads to cosmic-comp consuming all available RAM. In the last 15 minutes I have watched the used memory percentage in htop go from 30.7% to 31.6% and it continues to climb. I initially started investigating the issue because cosmic-launcher was taking a long time (2-3s) to appear after hitting Super.

Screenshot attached.

screenshot-2024-11-13-09-38-57

joel-wright commented 4 days ago

Quick follow up: I logged out & back in again, then sat watching cosmic-settings pinning 2+ CPUs at 100% and rapidly consuming memory (~0.2% per second).

screenshot-2024-11-13-09-46-48

wash2 commented 4 days ago

The cosmic-settings issue should probably be made in https://github.com/pop-os/cosmic-settings and I can recreate it when I log out with the settings app still open after using the Displays page at some point.

joel-wright commented 4 days ago

I added that as additional context, happy to re-raise against cosmic-settings

joel-wright commented 4 days ago

Is there any useful additional information I can gather for the cosmic-comp issue if I see it again?

wash2 commented 4 days ago

I added that as additional context, happy to re-raise against cosmic-settings

Thanks, I think they are most likely separate issues, so it would be good to create an issue there too.

joel-wright commented 4 days ago

Cheers, I confirmed the recreation you described above & have raised the issue here: https://github.com/pop-os/cosmic-settings/issues/774