Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-2524

Random crash on album search

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.8.3
    • 2.8.2
    • User Interface
    • 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.

       

            zas Zas
            Orhideous Orhideous
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Version Package
                2.8.3