Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-89041

QClipboard filled with QPixmap crashes on exit

    XMLWordPrintable

Details

    Description

      We encounter the same kind of issue that QTBUG-64096 in our application with Qt 5.15.1 with following code :

      QImage image = drawing_info_->window()->print();
      GQOverrideCursor wait_cursor( Qt::WaitCursor );
      QGuiApplication::clipboard()->setImage(image);
      

      And when closing application after this call, we have a crash :

      Thread #1 [Pdgm_Epic] 4060 [core: 9] (Suspended : Signal : SIGSEGV:Segmentation fault)	
      	QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::operator->() at qscopedpointer.h:118 0x7f7a32ac529c	
      	qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > const>() at qglobal.h:1,135 0x7f7a32ac528d	
      	QThreadPool::d_func() at qthreadpool.h:59 0x7f7a32af7546	
      	QThreadPool::contains() at qthreadpool.cpp:787 0x7f7a32af70dc	
      	convert_generic() at qimage_conversions.cpp:240 0x7f7a3342cf0b	
      	QImage::convertToFormat_helper() at qimage.cpp:2,103 0x7f7a3341d865	
      	QImage::convertToFormat(QImage::Format, QFlags<Qt::ImageConversionFlag>) const & at qimage.h:184 0x7f7a33470bb8	
      	QBmpHandler::write() at qbmphandler.cpp:779 0x7f7a33470bb8	
      	QImageWriter::write() at qimagewriter.cpp:785 0x7f7a33441d7f	
      	QImageData::doImageIO() at qimage.cpp:3,762 0x7f7a33421e52	
      	QImage::save() at qimage.cpp:3,750 0x7f7a33421d97	
      	QInternalMimeData::renderDataHelper() at qinternalmimedata.cpp:228 0x7f7a333d6e9c	
      	QXcbMime::mimeDataForAtom() at qxcbmime.cpp:111 0x7f7a21117a4d	
      	QXcbClipboard::sendSelection() at qxcbclipboard.cpp:480 0x7f7a210fe5b6	
      	QXcbClipboard::handleSelectionRequest() at qxcbclipboard.cpp:631 0x7f7a210ff080	
      	QXcbConnection::handleXcbEvent() at qxcbconnection.cpp:637 0x7f7a2110756b	
      	QXcbClipboard::waitForClipboardEvent() at qxcbclipboard.cpp:801 0x7f7a210ff9f2	
      	QXcbClipboard::~QXcbClipboard() at qxcbclipboard.cpp:265 0x7f7a210fd989	
      	QXcbClipboard::~QXcbClipboard() at qxcbclipboard.cpp:277 0x7f7a210fdaaa	
      	QXcbConnection::~QXcbConnection() at qxcbconnection.cpp:137 0x7f7a21104360	
      	QXcbConnection::~QXcbConnection() at qxcbconnection.cpp:155 0x7f7a21104564	
      	qDeleteAll<QList<QXcbConnection*>::const_iterator>() at qalgorithms.h:320 0x7f7a211103e8	
      	qDeleteAll<QList<QXcbConnection*> >() at qalgorithms.h:328 0x7f7a2110fb1b	
      	QXcbIntegration::~QXcbIntegration() at qxcbintegration.cpp:229 0x7f7a2110dae0	
      	QXcbIntegration::~QXcbIntegration() at qxcbintegration.cpp:231 0x7f7a2110db86	
      	QGuiApplicationPrivate::~QGuiApplicationPrivate() at qguiapplication.cpp:1,728 0x7f7a333acee9	
      	QApplicationPrivate::~QApplicationPrivate() at qapplication.cpp:159 0x7f7a3438728e	
      	QApplicationPrivate::~QApplicationPrivate() at qapplication.cpp:163 0x7f7a343872aa	
      	QScopedPointerDeleter<QObjectData>::cleanup() at qscopedpointer.h:60 0x7f7a32da5907	
      	QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >::~QScopedPointer() at qscopedpointer.h:107 0x7f7a32da29ed	
      	QObject::~QObject() at qobject.cpp:972 0x7f7a32d974d7	
      	QCoreApplication::~QCoreApplication() at qcoreapplication.cpp:863 0x7f7a32d542a7	
      	QGuiApplication::~QGuiApplication() at qguiapplication.cpp:678 0x7f7a333a7ba3	
      	QApplication::~QApplication() at qapplication.cpp:706 0x7f7a34388e3d
      
      

      Best regards

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              jonathan.ponroy jonathan.ponroy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes