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

Segfault when adding quick and declarative modules to QT variable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.0.1, 5.0.2
    • None
    • Ubuntu 12.10

    Description

      When running the attached project's executable in gdb I get the following:

      Program received signal SIGSEGV, Segmentation fault.
      0x00007ffff79f6fd5 in QQuickItemViewAttached::setIsCurrentItem (this=0x0, c=true)
      at items/qquickitemview_p.h:290
      290 if (m_isCurrent != c) {
      (gdb) bt
      #0 0x00007ffff79f6fd5 in QQuickItemViewAttached::setIsCurrentItem (this=0x0, c=true)
      at items/qquickitemview_p.h:290
      #1 0x00007ffff79f3714 in QQuickItemViewPrivate::updateCurrent (this=0x6a2f00, modelIndex=0)
      at items/qquickitemview.cpp:1604
      #2 0x00007ffff79f24dc in QQuickItemView::componentComplete (this=0x6a2e50)
      at items/qquickitemview.cpp:1407
      #3 0x00007ffff4ac5e7e in QQmlVME::complete (this=0x6a6130, interrupt=...) at qml/qqmlvme.cpp:1343
      #4 0x00007ffff4ab069e in QQmlComponentPrivate::complete (enginePriv=0x65e080, state=0x6a6130)
      at qml/qqmlcomponent.cpp:919
      #5 0x00007ffff4ab078b in QQmlComponentPrivate::completeCreate (this=0x6a6090)
      at qml/qqmlcomponent.cpp:955
      #6 0x00007ffff4ab073c in QQmlComponent::completeCreate (this=0x654a90) at qml/qqmlcomponent.cpp:948
      #7 0x00007ffff4aaffad in QQmlComponent::create (this=0x654a90, context=0x695900)
      at qml/qqmlcomponent.cpp:781
      #8 0x00007ffff79cb298 in QQuickView::continueExecute (this=0x623740) at items/qquickview.cpp:462
      #9 0x00007ffff79ca213 in QQuickViewPrivate::execute (this=0x65d210) at items/qquickview.cpp:106
      #10 0x00007ffff79ca618 in QQuickView::setSource (this=0x623740, url=...) at items/qquickview.cpp:235
      #11 0x000000000040164c in main (argc=1, argv=0x7fffffffe5b8) at src/main.cpp:24

      It appears that the error is caused by including quick and declarative:

      QT += quick declarative

      This works:

      QT += widgets quick

      I would have assumed that misconfiguration in the .pro file would cause a compilation failure, not a runtime failure.

      Attachments

        1. QTBUG-29584.zip
          1 kB
          Mitch Curtis
        For Gerrit Dashboard: QTBUG-29584
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            balkamm Matt Balkam
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes