Crash during search
Please describe the issue you’re experiencing:
When searching for apps from the main page, gnome-software frequently crashes.
What Linux distribution are you using, and what kind of package (RPM, deb, flatpak, etc.) are you experiencing the problem with?
The problem is happening in Alpine linux with GNOME Software 42.2 and the out-of-tree pluginfor APK. The plugin is pretty simple and does not have a search vfunc, but only a refine. I would usually believe that the crash we are experimenting would have to be with the out-of-tree plugin and us doing something wrong. However, the backtrace of the crash has no reference to the plugin and I spent quite some time cleaning the plugin up without solving the crash. This leads me to think the problem is not the plugin (if inspection of the plugin is of interest, this is the refine function that was tested), but maybe some other different problem. Unfortunately, I have very little experience with threading and I can barely read the backtrace. The little I understand is that there are some cancelling going on and at least two threads doing searches at the same time. I guess that shouldn't be the case, but I am not totally sure and unfortunately I am currently totally clueless about how to fix this bug. Any help would be greatly appreciated.
Backtrace: gdb.txt