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

xcb clipboard - selection request too old

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0 Beta 1
    • 5.0.0
    • GUI: Drag and Drop
    • None
    • Ubuntu 11.10, XCB platform plugin
    • ce81da52ea1fffa67188e19eb9dbba66501dd82f

    Description

      Regression form Qt 4.8.x

      1) Run fallowing example.

      #include <QtGui/QGuiApplication>
      #include <QtGui/QClipboard>
      #include <QtCore/QDebug>
      #include <QtCore/QMimeData>
      
      int main(int argc, char *argv[])
      {
          QGuiApplication a(argc, argv);
      
          QClipboard *cboard = QGuiApplication::clipboard();
      
          QMimeData* mimeData = new QMimeData;
          mimeData->setText("kartupelis");
          cboard->setMimeData(mimeData);
          
          return a.exec();
      }
      

      2) Observe many "QXcbClipboard: SelectionRequest too old" messages in console.
      3) Try to paste clipboards content (Right mouse click -> Paste). Nothing in the clipboard, but it should paste text "kartupelis".

      -------------------------------
      Also running QClipboard autotests results in many warnings, as such:

      ********* Start testing of tst_QClipboard *********
      Config: Using QTest library 5.0.0, Qt 5.0.0
      PASS   : tst_QClipboard::initTestCase()
      SKIP   : tst_QClipboard::copy_exit_paste() This test does not make sense on X11 and embedded, copied data disappears from the clipboard when the application exits 
         Loc: [../tst_qclipboard.cpp(236)]
      PASS   : tst_QClipboard::capabilityFunctions()
      PASS   : tst_QClipboard::modes()
      PASS   : tst_QClipboard::testSignals()
      PASS   : tst_QClipboard::setMimeData()
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: SelectionRequest too old
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      QWARN  : tst_QClipboard::clearBeforeSetText() QXcbClipboard: Cannot transfer data, no data available
      PASS   : tst_QClipboard::clearBeforeSetText()
      PASS   : tst_QClipboard::cleanupTestCase()
      Totals: 7 passed, 0 failed, 1 skipped
      ********* Finished testing of tst_QClipboard *********
      

      Attachments

        Activity

          People

            paeglis Gatis Paeglis
            paeglis Gatis Paeglis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: