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

xcb clipboard - selection request too old

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.0 Beta 1
    • Component/s: GUI: Drag and Drop
    • Labels:
      None
    • Environment:
      Ubuntu 11.10, XCB platform plugin

      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

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes