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

Assertion failure in GridLayout when specifying invalid column

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.14.0 RC1
    • 5.11
    • Quick: Layouts
    • None
    • 554309a1c1127b4a614cdba4f9ece46fc85df7e1 (qt/qtdeclarative/5.14)

    Description

      import QtQuick 2.10
      import QtQuick.Layouts 1.3
      import QtQuick.Controls 2.3
      
      ApplicationWindow {
          width: 400
          height: 400
          visible: true
      
          GridLayout {
              columns: 2
      
              Item {
                  // Doesn't crash if these are taken away for both items
                  Layout.row: 0
                  Layout.column: 1
              }
      
              // Doesn't crash if this is an Item
              SpinBox {
                  Layout.row: 0
                  // Doesn't crash if this is changed to < 2
                  Layout.column: 2
              }
      
              // Doesn't crash if any item is commented out
              Item {
                  Layout.columnSpan: 2
                  Layout.fillWidth: true
                  Layout.fillHeight: true
              }
          }
      }
      
      1   qt_message_fatal                         qlogging.cpp              1833 0x7ff9569267bb 
      2   QMessageLogger::fatal                    qlogging.cpp              877  0x7ff956924f52 
      3   qt_assert                                qglobal.cpp               3180 0x7ff956915fcb 
      4   QGridLayoutEngine::setItemAt             qgridlayoutengine.cpp     1288 0x7ff95c7783dd 
      5   QGridLayoutEngine::insertItem            qgridlayoutengine.cpp     973  0x7ff95c776b6c 
      6   QQuickGridLayout::insertLayoutItems      qquicklinearlayout.cpp    743  0x7ff97f0a5f1d 
      7   QQuickGridLayoutBase::updateLayoutItems  qquicklinearlayout.cpp    416  0x7ff97f0a4821 
      8   QQuickGridLayoutBase::componentComplete  qquicklinearlayout.cpp    319  0x7ff97f0a3f6f 
      9   QQmlObjectCreator::finalize              qqmlobjectcreator.cpp     1350 0x7ff9563f5da9 
      10  QQmlComponentPrivate::complete           qqmlcomponent.cpp         926  0x7ff956303043 
      11  QQmlComponentPrivate::completeCreate     qqmlcomponent.cpp         963  0x7ff9563024e7 
      12  QQmlComponent::completeCreate            qqmlcomponent.cpp         954  0x7ff956300912 
      13  QQmlComponent::create                    qqmlcomponent.cpp         780  0x7ff956300854 
      14  QQmlApplicationEnginePrivate::finishLoad qqmlapplicationengine.cpp 134  0x7ff9563e7865 
      15  QQmlApplicationEnginePrivate::startLoad  qqmlapplicationengine.cpp 119  0x7ff9563e72a6 
      16  QQmlApplicationEngine::load              qqmlapplicationengine.cpp 259  0x7ff9563e6add 
      17  main                                     main.cpp                  32   0x7ff7a90d3117 
      18  WinMain                                  qtmain_win.cpp            104  0x7ff7a90d852d 
      19  invoke_main                              exe_common.inl            107  0x7ff7a90d6d1d 
      20  __scrt_common_main_seh                   exe_common.inl            283  0x7ff7a90d6c17 
      ... <More>                                                                                 
      

      Attachments

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

        Activity

          People

            smd Jan Arve
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes