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

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      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

        For Gerrit Dashboard: QTBUG-85417
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            laknoll Lars Knoll
            Reporter:
            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