CPU periodically pinned by Gtk.FilterListModel/SortListModel
I'm using the "alpha1" Flatpak release of Fractal from gnome-nightly.
Every now and then when I'm typing a message, the app will stop responding. No more keyboard input is accepted and after a short while, the GNOME Shell "This app isn't responding" dialog comes up.
If you wait 10 or 20 seconds, the dialog goes away and Fractal starts responding again.
If you look at top during that time, Fractal is consuming 100% CPU in the main thread, and consuming an ever-growing amount of memory (>10 GB).
I wanted to investigate what's going on, so I ran in --devel mode and attached gdb and waited until it froze again. I managed to get several similar-looking backtraces (since the freeze lasts for a long time). They seem to indicate that the freeze is caused by attempting to use GtkSortListModel and GtkFilterListModel.
I don't know anything about Rust (or how to install or use additional debugging packages with Flatpak) so the backtraces don't point to which filter model is causing the problem.
Steps to reproduce
I honestly have no idea. It seems fairly random. It happens fairly frequently, though. Maybe once every 10-20 minutes?
Information
-
This bug is reproducible from the latest nightly build -
Fractal Version:
5-alpha1-77c9c73
- OS Version: Fedora 37 Silverblue, up to date
- Installation Source: GNOME Apps Nightly
- Homeserver: matrix.org