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

Qt 6 : QClipboard triggers crash in ASSERT: "state" in src/corelib/text/qstringconverter.cpp, line 817

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 6.0
    • None
    • Linux/X11
    • a5025efccfa877426dcdf31d91cacb1a6c52b276 (qt/qtbase/dev)

    Description

      Qt 6 / qtbase at 0bb835c8a498c521e974f35966a34f60e4225659 on Kubuntu 20.04:

         auto clip = QGuiApplication::clipboard();
          clip->setText("Testing this thing!");
      
          QString subType;
          QString text =  clip->text(subType);
      

      triggers

      Qt 6.0.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 9.3.0)
      ASSERT: "state" in file  src/corelib/text/qstringconverter.cpp, line 817
      

      whereas

      Qt 5.15.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6))
      subType= "plain" text= "Testing this thing!"
      

      Unearthed by https://code.qt.io/cgit/pyside/pyside-setup.git/tree/sources/pyside2/tests/QtWidgets/api2_test.py

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            kleint Friedemann Kleint
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes