{ "id": "89814", "key": "TIMOB-8675", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13405", "description": "Sprint 2012-09 API", "name": "Sprint 2012-09 API", "archived": true, "released": true, "releaseDate": "2012-05-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-27T16:55:08.000+0000", "created": "2012-04-11T01:23:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-and040912" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "16959", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "76536", "key": "TIMOB-4453", "fields": { "summary": "Android - Crash when clicked on a mapview annotation without pincolor property", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-06-07T07:11:37.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Test steps\r\n1. Launch app (use updated test case in comments as well)\r\n2. Click on pin\r\n\r\nExpected result\r\nAn annotation should appear above the pin that says: \"My Title. My Subtitle\"\r\n\r\nActual result\r\nOn clicking on the pin, the app crashes and exits.\r\nScreenshot and logs are attached and app.js is given below.\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar Ti_ann_defaultPin = Titanium.Map.createAnnotation({\r\n\t\t\tlatitude:37.390749,\r\n\t\t\tlongitude:-122.081651,\r\n\t\t\t//title:L('title'),\r\n\t\t\t// subtitle:L('subtitle'),\r\n\t\t\ttitleid:'title',\r\n\t\t\tsubtitleid:'subtitle',\r\n\t\t\tanimate:true,\r\n\t\t\tmyid:3\r\n\t\t\t//pincolor:Titanium.Map.ANNOTATION_GREEN\r\n\t\t});\r\n\t\t\r\n\t\tvar mapview = Titanium.Map.createView({\r\n\t\t mapType: Titanium.Map.STANDARD_TYPE,\r\n\t\t region: {latitude:37.337681,longitude:-122.038193, latitudeDelta:1, longitudeDelta:2},\r\n\t\t animate:true,\r\n\t\t regionFit:true,\r\n\t\t userLocation:false,\r\n\t\t annotations:[Ti_ann_defaultPin]\r\n\t\t});\r\n\t\t\r\n\t\twin.add(mapview);\r\n\t\t\r\n\t\twin.open();\r\n{code}", "attachment": [ { "id": "26975", "filename": "MapAndroid-2012-04-11-131006.png", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-11T01:23:26.000+0000", "size": 27299, "mimeType": "image/png" }, { "id": "26974", "filename": "MapTitleSubtitleLog.txt", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-11T01:23:26.000+0000", "size": 2912, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Clicking on pin displayed over a MapView causes a crash", "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.0.1.v20120410103239\r\nTitanium Studio: 2.0.1.201204091535\r\nAndroid OS 2.2 LG-P970 , Android 4.0.2 Samsung Galaxy Nexus\t\r\nAndroid Runtime : V8\r\nOS - Windows 7", "comment": { "comments": [ { "id": "192820", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here's an updated test case more friendly for Android:\r\n\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n \r\nvar Ti_ann_defaultPin = Titanium.Map.createAnnotation({\r\n\tlatitude:37.390749,\r\n\tlongitude:-122.081651,\r\n\ttitle: 'Pot of gold here!',\r\n\tsubtitle: 'Property of Josh',\r\n\tanimate:true\r\n});\r\n \r\nvar mapview = Titanium.Map.createView({\r\n\tmapType: Titanium.Map.STANDARD_TYPE,\r\n\tregion: {\r\n\t\tlatitude:37.337681,\r\n\t\tlongitude:-122.038193,\r\n\t},\r\n\tanimate:true,\r\n\tregionFit:true,\r\n\tuserLocation:false,\r\n\tannotations:[Ti_ann_defaultPin]\r\n});\r\n\r\nwin.add(mapview);\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-26T15:19:02.000+0000", "updated": "2012-04-26T15:19:02.000+0000" }, { "id": "192821", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sent [PR #2078|https://github.com/appcelerator/titanium_mobile/pull/2078] to address issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-26T15:22:58.000+0000", "updated": "2012-04-26T15:22:58.000+0000" }, { "id": "197648", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment information \r\nTested with Titanium SDK: 2.1.0.v20120606165259\r\nTested with Titanium Studio: 2.1.0.201206051612\r\nDevice: Android 2.2 and 4.0\r\nAndroid Runtime: V8\r\n", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-07T07:11:37.000+0000", "updated": "2012-06-07T07:11:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }