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

ASSERT in QAccessibleWidget when calling setMaxLength on QLineEdit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.12.5
    • QPA: Windows
    • None
    • Windows 10 64 bit
      Visual Studio 2015 x86
    • Windows

    Description

      We are opening a new dialog with a QLineEdit and on init we do this:

       

      lineEdit->setValidator(...);
      lineEdit->setMaxLength(10);
      

      When running this code our GUI stops with this assertion:

       

      Program: C:\Qt\Qt5.12.5\bin\Qt5Cored.dll
      Module: 5.12.5
      File: accessible\qaccessiblewidget.cpp
      Line: 228
       
      ASSERT: "w" in file accessible\qaccessiblewidget.cpp, line 228
       
      (Press Retry to debug the application) 
      

      It stops in debugger on the stacktrace shown in Stacktrace.png

      We reproduced this error with higher probability when the GUI is started in a Remote Desktop Connection.

      Attachments

        1. qtdiag.txt
          7 kB
        2. Stacktrace.png
          Stacktrace.png
          48 kB
        3. stacktrace-qt-accessible-crash.txt
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            basedow Keno Basedow
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes