{ "id": "104372", "key": "TIMOB-11663", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-11-05T23:48:50.000+0000", "created": "2012-11-05T10:24:42.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-and100112" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T20:46:29.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": "An application with tabgroup which has more than one tab with a mapview, crashes when the second tab with mapview is opened\r\n\r\nThis is not a regression. The issue occurs as atleast as far as 2.1.1\r\n\r\nSteps to Reproduce:\r\n1. Create an application with code below and launch the application\r\n2. Click on Tab2\r\n\r\nActual Result:\r\nAfter Step1: Application opens up with mapview shown in tab1\r\nAfter step2: Application crashes. (refer to the attached error logs)\r\n\r\nExpected Result: After Step 2, the application should not crash and tab2 with mapview should be shown\r\n\r\n{code}\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\nvar _window = Ti.UI.createWindow();\r\n_window.title='Tab 1';\r\n_window.backgroundColor='#fff';\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n\ticon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:_window\r\n});\r\nvar regionSV = {latitude:37.337681,longitude:-122.038193,latitudeDelta:0.04, longitudeDelta:0.04};\r\n \r\nvar mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n animate:true,\r\n region: regionSV,\r\n regionFit:true,\r\n userLocation:true,\r\n visible: true,\r\n});\r\n_window.add(mapview);\r\n \r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\nvar regionSV2 = {latitude:37.337681,longitude:-122.038193,latitudeDelta:0.04, longitudeDelta:0.04};\r\n \r\nvar mapview2 = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n animate:true,\r\n region: regionSV2,\r\n regionFit:true,\r\n userLocation:true,\r\n visible: true,\r\n});\r\nwin2.add(mapview2);\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n \r\ntabGroup.open();\r\n{code}", "attachment": [ { "id": "33179", "filename": "log.txt", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T10:24:43.000+0000", "size": 6189, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Map: Mapview in more than one tab of a tabgroup crashes application ", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 3.0.0.201210301422\r\nTitanium SDK:3.0.0.v20121030170824\r\nAndroid Device: LGP970 (v2.2), Galaxy Nexus (v4.0)", "comment": { "comments": [ { "id": "226170", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Evidently can only have one MapView per application", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T19:08:49.000+0000", "updated": "2012-11-05T19:08:49.000+0000" }, { "id": "226243", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Log file indicates that Android only supports on MapView at a time. It is suggested that this is information enough.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-05T23:48:50.000+0000", "updated": "2012-11-05T23:48:50.000+0000" }, { "id": "413959", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:46:29.000+0000", "updated": "2017-03-20T20:46:29.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }