Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.5.0 Alpha
-
None
Description
Qt 5.5 Alpha nullifies values in an array if objects returned from a JavaScript obejct get pushed and shifted in and out of an array.
I attached a simple example which adds up to 100 items into an array and subsequently prints out the current array status. After some iterations there is a log output like the following (truncated manually):
qml: [ ...
{"x":1},
{"x":1},
{"x":1},null,null,null,null,null,null,null,null,null,null,null,
{"x":1}, ... ]
Note that if we push the objects into the array without calling the doNothing() function all values are stored as intended.
This is also related to QTBUG-45888 which crashes the app if you try to access such a null value (a sample is included in the attached example line 20).
This looks like a regression as the sample runs perfectly fine on Qt 5.4.1 (iOS).
Attachments
Issue Links
- is duplicated by
-
QTBUG-45888 iOS Qt 5.5.0a assert crash in V4 Runtime (RuntimeHelpers::convertToObject)
-
- Closed
-