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

Crash on iOS for more than 8 subsequent following switch/case branches

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 36a179e8faa572544b9e8a9442f8c679a9509423

    Description

      A QML/JS switch/case statement with more than 8 subsequent branches crashes on, and only on, iOS after upgrading to Qt 5.3.1 with the following assertion error:

      ASSERT failure in QVector<T>::at: "index out of range", file /work/build/qt5_workdir/w/s/qtbase/include/QtCore/../../src/corelib/tools/qvector.h, line 377

      This also happens for code snippets which are actually never called, like in the attached main.qml file (probably due to precompiled V4 code on iOS?)

      You can easily reproduce the crash when creating a new Qt Quick 2.2 app and copy over the main.qml file. The crash does not occur on Qt 5.3(.0).

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            alexleutgoeb Alex Leutgöb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes