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

qdoc hangs when generating QML documentation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.9
    • Build tools: qdoc
    • Fedora 41
    • 2874cbaa8 (dev)
    • DaVinci 107, DaVinci 108

    Description

      Consider the following project

      ApplicationWindow.qml

      import QtQuick
      import org.kde.foo as Foo
      
      /*!
        \qmltype ApplicationWindow
        \inqmlmodule org.kde.foo
        \brief A window that provides some basic features needed for all apps
      */
      Foo.AbstractApplicationWindow {
          id: root
      } 

      AbstractApplicationWindow.qml

      import QtQuick
      import QtQuick.Controls as QQC2
      import org.kde.foo as Foo
      
      /*!
        \qmltype AbstractApplicationWindow
        \inqmlmodule org.kde.foo
        A window that provides some basic features needed for all apps
       */
      QQC2.ApplicationWindow {}
       

      foo.qdoc

      /*!
          \qmlmodule org.kde.foo
          \title Foo QML Types
          \brief Stuff
      */ 

      foo.qdocconf

      project = Foo
      description = Stuff
      headerdirs = .
      sourcedirs = .
      depends = qtcore qtquick qtquickcontrols 

      During the generation phase qdoc gets stuck indefinitely and allocates several gigabytes of memory.

      Tested with latest dev (qttools 601cebd76810037353a8b96374ca32bfc94e651e)

      Attachments

        Issue Links

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

          Activity

            People

              paulwicking Paul Wicking
              nicolasfella Nicolas Fella
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are 2 open Gerrit changes