{ "id": "149672", "key": "TIMOB-19214", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16919", "description": "Critical updates", "name": "Release 4.1.1", "archived": true, "released": true, "releaseDate": "2015-07-15" }, { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-07-25T00:06:00.000+0000", "created": "2015-07-14T03:11:50.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "imageview", "regression" ], "versions": [], "issuelinks": [ { "id": "48559", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "149605", "key": "TIMOB-19209", "fields": { "summary": "iOS: ListView randomly not shown since 4.1.x", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-08-04T18:48:33.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Issue Description\r\nCrash 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). \r\n\r\nh6.Steps to Reproduce\r\n1. Install attached sample (includes the images) \r\n2. Launch it - the app should crash since 4.1.0.GA and above exhibiting the following outcomes:\r\n\r\niOS 8.4 (iPhone 4s simulator) Crash\r\niOS 8.2 (iPad) No crash \r\niOS 7.1 (iPhone) Crash\r\n\r\nh6.Stack Trace\r\n{code}\r\nJul 13 18:36:36 lAlO PriebeSandbox[224] : [INFO] PriebeSandbox/1.0 (4.1.0.d57aa7d)\r\nJul 13 18:36:36 lAlO PriebeSandbox[224] : [DEBUG] Loading: /var/mobile/Applications/8695F53F-75E4-4328-8C30-C2AC3BD7CE19/PriebeSandbox.app/app.js, Resource: app_js\r\nJul 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\r\nJul 13 18:36:37 lAlO PriebeSandbox[224] : [ERROR] Script Error {\r\n column = 478;\r\n line = 1;\r\n message = \"*** Collection <__NSArrayM: 0x145c0ed0> was mutated while being enumerated.\";\r\n sourceURL = \"file:///var/mobile/Applications/8695F53F-75E4-4328-8C30-C2AC3BD7CE19/PriebeSandbox.app/app.js\";\r\n stack = \"[native code]\\nglobal code@file:///var/mobile/Applications/8695F53F-75E4-4328-8C30-C2AC3BD7CE19/PriebeSandbox.app/app.js:1:478\";\r\n }\r\nJul 13 18:36:37 lAlO PriebeSandbox[224] : [DEBUG] Application booted in 738.143027 ms\r\n{code}", "attachment": [ { "id": "56156", "filename": "4.0.0.GA_Screen Shot.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-14T02:46:21.000+0000", "size": 26177, "mimeType": "image/png" }, { "id": "56155", "filename": "4.1.0.GA_Screen Shot.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-14T02:46:28.000+0000", "size": 95299, "mimeType": "image/png" }, { "id": "56154", "filename": "PriebeSandbox.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-14T03:11:01.000+0000", "size": 10406811, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Regression: TiUIImageView.images property crashes app in 4.1.0.GA", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 4.1.0.GA & CI Build 4.2.0.v20150710092422\r\niOS 8", "closedSprints": [ { "id": 445, "state": "closed", "name": "2015 Sprint 15 SDK", "startDate": "2015-07-18T00:30:28.848Z", "endDate": "2015-08-01T00:30:00.000Z", "completeDate": "2015-08-03T01:49:18.234Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "357981", "author": { "name": "KtorZ", "key": "ktorz", "displayName": "Matthias Benkort", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, I am having a similar issue. Until now, I still haven't located precisely which piece of code is responsible for the whole crash of the app... The only thing that I am doing is to instantiate a ListView with static content. And I get - sometimes - this error.\r\nI am using Ti 4.1.0.GA on iOS 8.3 on the iPad 2 Simulator.\r\n\r\n[ERROR] The application has crashed with an uncaught exception 'NSGenericException'.\r\n[ERROR] Reason:\r\n[ERROR] *** Collection <__NSArrayM: 0x7c14a990> was mutated while being enumerated.\r\n[ERROR] Stack trace:\r\n[ERROR]\r\n[ERROR] 0 CoreFoundation 0x052b972a __exceptionPreprocess + 154\r\n[ERROR] 1 libobjc.A.dylib 0x04e8ca97 objc_exception_throw + 44\r\n[ERROR] 2 CoreFoundation 0x052b8fe6 __NSFastEnumerationMutationHandler + 166\r\n[ERROR] 3 Aviation Week Refactor 0x001a8696 DoProxyDelegateReadValuesWithKeysFromProxy + 1110\r\n[ERROR] 4 Aviation Week Refactor 0x001436a1 -[TiUIView readProxyValuesWithKeys:] + 65\r\n[ERROR] 5 Aviation Week Refactor 0x00119f57 -[TiViewProxy firePropertyChanges] + 167\r\n[ERROR] 6 Aviation Week Refactor 0x00117ae2 -[TiViewProxy view] + 706\r\n[ERROR] 7 Aviation Week Refactor 0x0036008d -[TiUIListViewProxy listView] + 45\r\n[ERROR] 8 Aviation Week Refactor 0x00361464 __34-[TiUIListViewProxy setTemplates:]_block_invoke139 + 52", "updateAuthor": { "name": "KtorZ", "key": "ktorz", "displayName": "Matthias Benkort", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-20T14:23:58.000+0000", "updated": "2015-07-20T14:23:58.000+0000" }, { "id": "358047", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Matthias Benkort\r\n\r\nI have exactly the same problem! What I found is that the crash seems to do with *ListView templates*.\r\n\r\nSee my test result matrix below.\r\n\r\n||iOS 8.2 simulator||iOS 8.3 simulator||\r\n|ListView not display|Crash|\r\n\r\nIt is happening so randomly - I will open another JIRA with ListView scenario tonight\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-21T01:50:07.000+0000", "updated": "2015-07-21T01:58:38.000+0000" }, { "id": "358056", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It needs to be treated urgently! Now I have more places crashing my app due to this unclear problem.\r\n*Collection <__NSArrayM: 0x7c14a990> was mutated while being enumerated.*", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-21T06:36:05.000+0000", "updated": "2015-07-21T06:36:24.000+0000" }, { "id": "358057", "author": { "name": "KtorZ", "key": "ktorz", "displayName": "Matthias Benkort", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For the moment, downgrading to 4.0.0.GA solved the issue on my side. So, it's likely to be a regression introduced with 4.1.0.GA.\r\nAlso, I'm not that sure about the templates. I've tried to put only an empty ListView in an xml view file (I am using Alloy 1.6.2), without any template and It crashed in the exact same way (Maybe because of a default template or something related?)\r\n\r\nHope those information will help.", "updateAuthor": { "name": "KtorZ", "key": "ktorz", "displayName": "Matthias Benkort", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-21T07:30:15.000+0000", "updated": "2015-07-21T07:30:15.000+0000" }, { "id": "358063", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We need this fixed ASAP.\r\n\r\n", "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-21T10:13:40.000+0000", "updated": "2015-07-21T10:13:40.000+0000" }, { "id": "358073", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~KtorZ] [~jialhe85@gmail.com] can someone raise a Jira ticket? It will be difficult to identify the crash scenario you talk about without reproducing the actual error. \r\n\r\nTo be clear, those suffering the ImageView.images crash could use as _Work Around_ setting images array after ImageView creation and remove it from createImageView() instance for now, i.e. \r\n{code}\r\nvar theImageView = Ti.UI.createImageView ({\r\n top: 100,\r\n height: 40,\r\n width: 40,\r\n //images: images,\r\n});\r\n//\r\ntheImageView.images = images;\r\n{code}", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-21T14:30:01.000+0000", "updated": "2015-07-21T14:30:01.000+0000" }, { "id": "358088", "author": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-21T21:42:50.000+0000", "updated": "2015-07-21T21:42:50.000+0000" }, { "id": "358283", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/6983", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-24T23:53:02.000+0000", "updated": "2015-07-24T23:53:02.000+0000" }, { "id": "358286", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR for 4.1.X https://github.com/appcelerator/titanium_mobile/pull/6984", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-24T23:56:09.000+0000", "updated": "2015-07-24T23:56:09.000+0000" }, { "id": "358291", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR and FT Passed. PRs merged!", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-25T00:05:36.000+0000", "updated": "2015-07-25T00:05:36.000+0000" }, { "id": "358983", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11\r\nStudio 4.2.0.201507201802\r\nTi SDK 4.1.1.v20150802200935\r\nAppc NPM 4.2.0-1\r\nAppc CLI 4.2.0-1\r\nTi CLI 4.1.2\r\nAlloy 1.6.2\r\nNode v0.10.37\r\nJava 1.7.0_45\r\npreproduction\r\n\r\nNo crash is witnessed on the sims indicated in the ticket. Images display correctly.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-04T18:48:33.000+0000", "updated": "2015-08-04T18:48:33.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }