gnome-software leaks memory while trying to get updates
gnome-software sometimes leaks memory when trying to get updates after booting the computer and logging in. Memory usage keeps increasing until the system starts swapping and the computer becomes unresponsive. This does not happen every time so it's hard to reproduce.
Here's a screenshot showing gnome-software using 1.7 GB. This was taken at around 45 minutes after logging in and it kept increasing pretty fast.
I also noticed some PackageKit activity so I ran pkmon and it looks like gnome-software keeps cancelling PackagetKit downloads at around 30% which might be connected to the memory leak. pkmon.log
Here is the output of the pkmon session during which I killed gnome-software. As you can see the downloads are now completing: pkmon-gnome-software-killed.log
I restarted gnome-software after PackageKit downloaded everything and memory usage is now normal.
These are the systemd logs for gnome-software and PackageKit taken before I killed gnome-software:
Additional information
OS-Version: Fedora 28
gnome-software version: 3.28.2
PackagetKit version: 1.1.10