{ "id": "134848", "key": "AC-1320", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-10-28T08:36:12.000+0000", "created": "2014-08-17T21:47:30.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:43.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The app has one window that display a list of addresses. when we open a new window or replace the existing view with the a map view the application crashes with the message \"unfortunately ......\"\r\n\r\non the primary window should a list view and call this on click.\r\n\r\nvar Map = require('ti.map');\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar mountainView = Map.createAnnotation({\r\n latitude:37.390749,\r\n longitude:-122.081651,\r\n title:\"Appcelerator Headquarters\",\r\n subtitle:'Mountain View, CA',\r\n pincolor:Map.ANNOTATION_RED,\r\n myid:1 // Custom property to uniquely identify this annotation.\r\n});\r\n\r\nvar mapview = Map.createView({\r\n mapType: Map.NORMAL_TYPE,\r\n region: {latitude:33.74511, longitude:-84.38993,\r\n latitudeDelta:0.01, longitudeDelta:0.01},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n annotations:[mountainView]\r\n});\r\n\r\nwin.add(mapview);\r\n// Handle click events on any annotations on this map.\r\nmapview.addEventListener('click', function(evt) {\r\n Ti.API.info(\"Annotation \" + evt.title + \" clicked, id: \" + evt.annotation.myid);\r\n});\r\nwin.open();", "attachment": [], "flagged": false, "summary": "MapView crashing the application when opened on a second window", "creator": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "subtasks": [], "reporter": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "environment": "Ti 3.1.3\r\nTi 3.3", "comment": { "comments": [ { "id": "319222", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nWe have tested this issue with our sample code. When we have clicked a ListView item to open new window with MapView, its working as we expected . It’s not a Bug.\r\n\r\n*TESTING ENVIRONMENT:*\r\n Titanium SDK: 3.3.0.GA and 3.2.3.GA\r\n Titanium CLI: 3.3.0\r\n OS X Version: 10.9.3\r\n Android version: 4.3\r\n Android API Level: 17 and 19\r\n \r\n*STEPS TO REPRODUCE:*\r\n a) Create a simple project.\r\n b) Update this code in app.js\r\n c) Update your second window in “/ui/common/Map”\r\n d) Add Map module in tiapp.xml\r\n e) Run this with testing environment\r\n \r\n*TESTING CODE:*\r\n\r\nApp.js\r\n\r\n {code}var win = Ti.UI.createWindow({\r\n backgroundColor : '#000',\r\n navBarHidden : false,\r\n layout : 'vertical'\r\n });\r\n \r\n var Template = {\r\n properties: {height: 40},\r\n events: {click: function(e) { \r\n var item = e.section.getItemAt(e.itemIndex);\r\n var data = item.info.text;\r\n if(data=='Get Your Map')\r\n {\r\n //alert(\"you click Location services\");\r\n var Home = require('/ui/common/Home');\r\n var homePage = new Home();\r\n homePage.open();\r\n }\r\n else if(data==\"Map-2\")\r\n {\r\n alert(\"you click Map-2\");\r\n }\r\n else if(data==\"Map-3\")\r\n {\r\n alert(\"you click Map-3\");\r\n }\r\n \r\n }},\r\n childTemplates: [\r\n { \r\n type: 'Ti.UI.Label', \r\n bindId: 'info', \r\n properties: { \r\n color: 'gray',\r\n font: { fontFamily:'Arial', fontSize: '20dp' },\r\n left: '10dp',\r\n }\r\n }\r\n ]}; \r\n var section = Ti.UI.createListSection({});\r\n var listView = Ti.UI.createListView({\r\n templates: { 'temp': Template},\r\n sections: [ section ]\r\n });\r\n//Input data set here\r\n var data = [\r\n {template:'temp', properties:{height:40},info:{text:'Get Your Map'}}, // Final Map showing\r\n {template:'temp', properties:{height:40},info:{text:'Map-2'}},\r\n {template:'temp', properties:{height:40},info:{text:'Map-3'}},\r\n ];\r\n section.setItems(data);\r\n win.add(listView);\r\n win.open();{code}\r\n\r\nMap Window\r\n{code}function Map() {\r\n var self = Ti.UI.createWindow({\r\n layout : 'vertical',\r\n backgroundColor:'white'\r\n });\r\nvar Map = require('ti.map');\r\nvar mountainView = Map.createAnnotation({\r\n\tlatitude : 37.390749,\r\n\tlongitude : -122.081651,\r\n\ttitle : \"Appcelerator Headquarters\",\r\n\tsubtitle : 'Mountain View, CA',\r\n\tpincolor : Map.ANNOTATION_RED,\r\n\tmyid : 1 // Custom property to uniquely identify this annotation.\r\n});\r\n\r\nvar mapview = Map.createView({\r\n\tmapType : Map.NORMAL_TYPE,\r\n\tregion : {\r\n\t\tlatitude : 33.74511,\r\n\t\tlongitude : -84.38993,\r\n\t\tlatitudeDelta : 0.01,\r\n\t\tlongitudeDelta : 0.01\r\n\t},\r\n\tanimate : true,\r\n\tregionFit : true,\r\n\tuserLocation : true,\r\n\tannotations : [mountainView]\r\n});\r\n\r\nself.add(mapview);\r\n// Handle click events on any annotations on this map.\r\nmapview.addEventListener('click', function(evt) {\r\n\tTi.API.info(\"Annotation \" + evt.title + \" clicked, id: \" + evt.annotation.myid);\r\n});\r\n \r\n return self;\r\n}\r\nmodule.exports = Map;{code}\r\n\r\n*TESTING RESULTS:*\r\n\r\nIts working as we expected. Its not a bug.", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-19T05:10:09.000+0000", "updated": "2014-10-28T08:36:06.000+0000" }, { "id": "321484", "author": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "body": "Can we get an eta on when we will get this addressed? We are not able to show the maps to our users due to this issue.\r\n\r\n", "updateAuthor": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "created": "2014-09-03T00:40:20.000+0000", "updated": "2014-09-03T00:40:20.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }