{ "id": "101002", "key": "TIMOB-10892", "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": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14127", "description": "Sprint 2012-19 API", "name": "Sprint 2012-19 API", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-14T16:04:04.000+0000", "created": "2012-09-13T05:24:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_map", "qe-ios090112", "qe-ios6", "qe-testadded" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-26T21:55: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": "This is not a regression. It happens on 2.1.2 also.\r\nApp works fine on iOS 5.1\r\nSteps to reproduce:\r\n1. Use the app below\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\n_window.backgroundColor = 'white';\r\n\r\n\r\n \r\n\t\t//create object instance, a parasitic subclass of Observable\r\n\t\tvar self = Ti.UI.createView();\r\n\t\t_window.add(self);\r\n\t\tvar mapObject = Titanium.Map.createView({\r\n\t\t mapType : Titanium.Map.STANDARD_TYPE,\r\n\t\t animate : true,\r\n\t\t regionFit : true,\r\n\t\t userLocation : true,\r\n\t\t top : '150',\r\n\t\t height : '400dp',\r\n\t\t zoomEnabled : true,\r\n\t\t region : {\r\n\t\t latitude : 37.77501,\r\n\t\t longitude : -122.419,\r\n\t\t latitudeDelta : 0.01,\r\n\t\t longitudeDelta : 0.01\r\n\t\t },\r\n\t\t});\r\n\t\t \r\n\t\tmapObject.addEventListener('click', function() {\r\n\t\t alert('map clicked');\r\n\t\t});\r\n\t\t \r\n\t\tvar selectAnnotations = Ti.UI.createButton({\r\n\t\t title : \"Select Annotations\",\r\n\t\t top : '0',\r\n\t\t});\r\n\t\tvar annotations = []\r\n\t\t \r\n\t\tannotations[0] = Titanium.Map.createAnnotation({\r\n\t\t animate : true,\r\n\t\t title : 'Citibank',\r\n\t\t subtitle : '#1',\r\n\t\t id : '1',\r\n\t\t pincolor : Titanium.Map.ANNOTATION_RED,\r\n\t\t latitude : parseFloat(37.776),\r\n\t\t longitude : parseFloat(-122.419),\r\n\t\t image : '/images/locPin.png'\r\n\t\t});\r\n\t\t \r\n\t\tannotations[1] = Titanium.Map.createAnnotation({\r\n\t\t animate : true,\r\n\t\t title : 'Citibank',\r\n\t\t subtitle : '#2',\r\n\t\t id : '2',\r\n\t\t pincolor : Titanium.Map.ANNOTATION_RED,\r\n\t\t latitude : parseFloat(37.77501),\r\n\t\t longitude : parseFloat(-122.419),\r\n\t\t image : '/images/locPin.png'\r\n\t\t});\r\n\t\t \r\n\t\tannotations[2] = Titanium.Map.createAnnotation({\r\n\t\t animate : true,\r\n\t\t title : 'Citibank',\r\n\t\t subtitle : '#3',\r\n\t\t id : '3',\r\n\t\t pincolor : Titanium.Map.ANNOTATION_RED,\r\n\t\t latitude : parseFloat(37.770),\r\n\t\t longitude : parseFloat(-122.419),\r\n\t\t image : '/images/locPin.png'\r\n\t\t});\r\n\t\t \r\n\t\tannotations[3] = Titanium.Map.createAnnotation({\r\n\t\t animate : true,\r\n\t\t title : 'Citibank',\r\n\t\t subtitle : '#4',\r\n\t\t id : '4',\r\n\t\t pincolor : Titanium.Map.ANNOTATION_RED,\r\n\t\t latitude : parseFloat(37.770),\r\n\t\t longitude : parseFloat(-122.43),\r\n\t\t image : '/images/locPin.png'\r\n\t\t});\r\n\t\t \r\n\t\tmapObject.addAnnotation(annotations[0]);\r\n\t\tmapObject.addAnnotation(annotations[1]);\r\n\t\tmapObject.addAnnotation(annotations[2]);\r\n\t\tmapObject.addAnnotation(annotations[3]);\r\n\t\t \r\n\t\tself.add(mapObject);\r\n\t\tself.add(selectAnnotations);\r\n\t\t \r\n\t\tvar thisObj = this;\r\n\t\tselectAnnotations.addEventListener('click', function(e) {\r\n\t\t mapObject.selectAnnotation(annotations[2], true);\r\n\t\t});\r\n\t\t_window.open();\r\n{code}\r\n2. Run the app on iOS 6\r\n\r\nExpected result\r\n2. App should run successfully.\r\n\r\nActual result\r\n2. It gives a error 'Invalid Region at app.js (line 91)' Snapshot attached.", "attachment": [ { "id": "31253", "filename": "Map2012.09.13 17.50.51.png", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-13T05:24:10.000+0000", "size": 123583, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: App gives error for, center and span, being nan (iOS 6)", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 2.1.3.v20120907163110\r\nTitanium Studio: 2.1.3.201209101847\r\nDevice - iPad iOS 6\r\nMachine OS - MAC 10.8", "comment": { "comments": [ { "id": "219033", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can not reproduce this with either master or latest 2.1.3 on IOS6 device or simulator.\r\n\r\nTested with both Xcode 4.3.1 and Xcode 4.5 GM. Both devices running IOS6 GM Seed", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-14T12:55:03.000+0000", "updated": "2012-09-14T12:55:03.000+0000" }, { "id": "219068", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/2954 pull pending.\r\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-14T14:41:01.000+0000", "updated": "2012-09-14T14:41:01.000+0000" }, { "id": "219099", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-14T16:04:04.000+0000", "updated": "2012-09-14T16:04:04.000+0000" }, { "id": "219218", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment used for verification -\r\nTitanium SDK: 2.1.3.v20120915120319\r\nTitanium  Studio:2.1.2.201208301612\r\nDevice : iPad iOS 6.0\r\nXcode : 4.5 \r\nMachine OS : MAC 10.8", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-16T23:06:58.000+0000", "updated": "2012-09-16T23:06:58.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }