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

Q_UNREACHABLE was reached while compiling some files

    XMLWordPrintable

Details

    • All
    • 3672a173d (dev), bd8093eaa (6.7)

    Description

      Affected 6.7 branch (today's checkout) built from source. Other people report it on 6.8 branch

       

      with qmlcachegen while compiling some QML files, it can hit the following assert:

       

      ASSERT failure in Q_UNREACHABLE(): "Q_UNREACHABLE was reached", file /home/diau/git/qt6/qtdeclarative/src/qmlcompiler/qqmljscodegenerato
      r.cpp, line 1407

       

      The culript seems javascript cpnditions written in the form:

       

          readonly property bool hasVisibleMenu: actionsMenu?.visible ?? false

      rewriting in the form

          readonly property bool hasVisibleMenu: actionsMenu ? actionsMenu

      won't crash anymore

       

      I's difficult to build a minimal test case as not all files seem to crash, one thing that does always crash is building the KDE's Kirigami repository from cmake

      Attachments

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

        Activity

          People

            olivier.decanniere Olivier De Cannière
            notmart Marco Martin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes