Project: titanium
Issue TIMOB-19214: iOS: Regression: TiUIImageView.images property crashes app in 4.1.0.GA
h6.Issue Description Crash when using animated ImageView with Titanium Mobile SDK 4.1.0.GA. When setting an array of image paths in the TiImageView.images property, the app gets no crash in 4.0.0.GA (iOS simulator/device). h6.Steps to Reproduce 1. Install attached sample (includes the images) 2. Launch it - the app should crash since 4.1.0.GA and above exhibiting the following outcomes: iOS 8.4 (iPhone 4s simulator) Crash iOS 8.2 (iPad) No crash iOS 7.1 (iPhone) Crash h6.Stack Trace {code} Jul 13 18:36:36 lAlO PriebeSandbox[224] : [INFO] PriebeSandbox/1.0 (4.1.0.d57aa7d) Jul 13 18:36:36 lAlO PriebeSandbox[224] : [DEBUG] Loading: /var/mobile/Applications/8695F53F-75E4-4328-8C30-C2AC3BD7CE19/PriebeSandbox.app/app.js, Resource: app_js Jul 13 18:36:36 lAlO PriebeSandbox[224] : [DEBUG] Loading: /var/mobile/Applications/8695F53F-75E4-4328-8C30-C2AC3BD7CE19/PriebeSandbox.app/_app_props_.json, Resource: _app_props__json Jul 13 18:36:37 lAlO PriebeSandbox[224] : [ERROR] Script Error { column = 478; line = 1; message = "*** Collection <__NSArrayM: 0x145c0ed0> was mutated while being enumerated."; sourceURL = "file:///var/mobile/Applications/8695F53F-75E4-4328-8C30-C2AC3BD7CE19/PriebeSandbox.app/app.js"; stack = "[native code]\nglobal code@file:///var/mobile/Applications/8695F53F-75E4-4328-8C30-C2AC3BD7CE19/PriebeSandbox.app/app.js:1:478"; } Jul 13 18:36:37 lAlO PriebeSandbox[224] : [DEBUG] Application booted in 738.143027 ms {code}
Story points: 5