Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.1
-
None
-
Build machine Mac OS X, target iOS 7.1
-
-
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).