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

Qml 3D Graphs crash if explicit width/height is set on graph

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8.2
    • 6.8.1
    • Graphs: 3D
    • None
    • Windows

    Description

      If any 3D graph is given explicit width/height, then running the application crashes. Using anchors.fill: parent works fine.

      See attached example.

      1  QQuickGraphsItem::geometryChange                      Qt6Graphs                0x7ff815af577b 
      2  QQuickItem::setHeight                                 Qt6Quick                 0x7fffc69c60ce 
      3  QQuickItem::qt_static_metacall                        Qt6Quick                 0x7fffc69aab35 
      4  QQmlPrivate::AOTCompiledContext::writeBackValueLookup Qt6Qml                   0x7ff815e6d747 
      5  QQmlObjectCreator::setPropertyValue                   Qt6Qml                   0x7ff815eff57d 
      6  QQmlObjectCreator::setPropertyBinding                 Qt6Qml                   0x7ff815efe761 
      7  QQmlObjectCreator::setupBindings                      Qt6Qml                   0x7ff815f011df 
      8  QQmlObjectCreator::populateInstance                   Qt6Qml                   0x7ff815efc549 
      9  QQmlObjectCreator::createInstance                     Qt6Qml                   0x7ff815ef9235 
      10 QQmlObjectCreator::setPropertyBinding                 Qt6Qml                   0x7ff815efd69b 
      11 QQmlObjectCreator::setupBindings                      Qt6Qml                   0x7ff815f011df 
      12 QQmlObjectCreator::populateInstance                   Qt6Qml                   0x7ff815efc549 
      13 QQmlObjectCreator::createInstance                     Qt6Qml                   0x7ff815ef9235 
      14 QQmlObjectCreator::setPropertyBinding                 Qt6Qml                   0x7ff815efd69b 
      15 QQmlObjectCreator::setupBindings                      Qt6Qml                   0x7ff815f011df 
      16 QQmlObjectCreator::populateInstance                   Qt6Qml                   0x7ff815efc549 
      17 QQmlObjectCreator::createInstance                     Qt6Qml                   0x7ff815ef9235 
      18 QQmlObjectCreator::create                             Qt6Qml                   0x7ff815ef7f64 
      19 QQmlComponentPrivate::beginCreate                     Qt6Qml                   0x7ff815e8b478 
      20 QQmlComponent::beginCreate                            Qt6Qml                   0x7ff815e8aff1 
      21 QQmlComponent::create                                 Qt6Qml                   0x7ff815e8d27e 
      22 QQmlApplicationEnginePrivate::finishLoad              Qt6Qml                   0x7ff815e6fd7b 
      23 QQmlApplicationEnginePrivate::startLoad               Qt6Qml                   0x7ff815e71180 
      24 QQmlApplicationEngine::loadFromModule                 Qt6Qml                   0x7ff815e70578 
      25 main                                                  main.cpp             17  0x7ff744583579 
      26 qtEntryPoint                                          qtentrypoint_win.cpp 59  0x7ff74458a280 
      27 __scrt_common_main_seh                                exe_common.inl       288 0x7ff744588bd2 
      28 BaseThreadInitThunk                                   KERNEL32                 0x7ff87c597374 
      29 RtlUserThreadStart                                    ntdll                    0x7ff87d59cc91 
      
       
      import QtQuick
      import QtQuick3D
      import QtGraphs
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Graphs crash test")    
          Rectangle {
              anchors.fill: parent
              Scatter3D {
                  id: scatter3D
      
                  // works:
                  //anchors.fill: parent
      
                  // crashes:
                  width: 300
                  height: 300
      
                  Scatter3DSeries {
                      ItemModelScatterDataProxy {
                          zPosRole: "z"
                          yPosRole: "y"
                          xPosRole: "x"
                          itemModel: ListModel {
                              ListElement {
                                  x: "1"
                                  y: "2"
                                  z: "3"
                              }
                              ListElement {
                                  x: "2"
                                  y: "3"
                                  z: "4"
                              }
                              ListElement {
                                  x: "3"
                                  y: "4"
                                  z: "1"
                              }
                          }
                      }
                  }
              }
          }
      }
       

      Attachments

        Issue Links

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

          Activity

            People

              oulu_hillbilly Sami Varanka
              e0348803 Miikka Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes