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

CollectedComments data in AstComment is invalidated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.9
    • 6.7
    • QML: Tooling
    • None
    • 16875b289 (dev)

    Description

      Dom crashes if you visit AstComments field of Qmlfile. The root cause is invalidated CommentedElement data of the AstComment class. When the visitor is visiting CommentedElement::iterateDirectSubpaths, the visited element's m_preComment and m_postComment are invalid if the current owner type is AstComments.

      Workaround is to get the valid m_preComment and m_postComment from AstComment by explicit casting, see the fix for QTBUG-123547.

      Investigate why CommentedElement is invalidated, when you revert the fix for QTBUG-123547.

      Attachments

        Issue Links

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

          Activity

            People

              semih.yavuz Semih Yavuz
              semih.yavuz Semih Yavuz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes