-
Bug
-
Resolution: Fixed
-
Normal
-
2.8.2
-
None
-
KDE Neon 20.04, Flatpak
Open «Album search results», say, while choosing appropriate release (search similar)
Put random search string in `text field`, to trigger multiple calls to API, do it quickly until app crashes.
Traceback (most recent call last): File "/app/lib/python3.9/site-packages/picard/ui/searchdialog/album.py", line 295, in _cover_downloaded cover_cell.set_pixmap(pixmap) File "/app/lib/python3.9/site-packages/picard/ui/searchdialog/album.py", line 118, in set_pixmap self.widget.set_pixmap(pixmap) File "/app/lib/python3.9/site-packages/picard/ui/searchdialog/album.py", line 78, in set_pixmap wid = self.layout.takeAt(0) RuntimeError: wrapped C/C++ object of type QVBoxLayout has been deleted During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/app/lib/python3.9/site-packages/picard/webservice/__init__.py", line 572, in _process_reply self._handle_reply(reply, request) File "/app/lib/python3.9/site-packages/picard/webservice/__init__.py", line 561, in _handle_reply handler(reply.readAll(), reply, error) File "/app/lib/python3.9/site-packages/picard/ui/searchdialog/album.py", line 297, in _cover_downloaded cover_cell.not_found() File "/app/lib/python3.9/site-packages/picard/ui/searchdialog/album.py", line 121, in not_found self.widget.not_found() File "/app/lib/python3.9/site-packages/picard/ui/searchdialog/album.py", line 93, in not_found self.set_pixmap(shadow) File "/app/lib/python3.9/site-packages/picard/ui/searchdialog/album.py", line 78, in set_pixmap wid = self.layout.takeAt(0) RuntimeError: wrapped C/C++ object of type QVBoxLayout has been deleted
Wrapping set_pixmap in try-catch block fixes this behavior, but looks like self.layout lives not enough.