{ "id": "155100", "key": "AC-651", "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": "2016-02-26T09:39:08.000+0000", "created": "2016-02-24T15:25:42.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "updated": "2016-02-26T09:39:08.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." } ], "description": "The Map I have, has polygon overlays, it centers to a location, event listeners do not trigger, and has other ti.map functions that do not get called.\r\n\r\nRunning the App with Ti SDK 5.2.0.GA, The App compiles and runs, the Map loads, however does not center to the specified location, it simply defaults to the World view. Zooming in manually to the Polygons that have been placed, shows no polygons.\r\n\r\nIt's as if the Map only loads, but nothing else can be done with it.\r\n\r\nRunning the same code, with Ti SDK 5.1.2.GA, everything works normally and well, it's when we use Ti SDK 5.2.0.GA that causes the issues.\r\n\r\nCalling a method to center the map (for example with Ti.SDK 5.2.0.GA, as with other calls), crashes, here is the console when that happens:\r\n\r\n{code:java}\r\n[ERROR] TiApplication: (main) [703569,708944] Sending event: exception on thread: main msg:java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap\r\n.moveCamera(com.google.android.gms.maps.CameraUpdate)' on a null object reference; Titanium 5.2.0,2016/02/20 08:05,384775e\r\n[ERROR] TiApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.moveCamera(com.google.android.gms.maps.CameraUpdate)' on a null obj\r\nect reference\r\n[ERROR] TiApplication: at ti.map.TiUIMapView.moveCamera(TiUIMapView.java:395)\r\n[ERROR] TiApplication: at ti.map.TiUIMapView.updateCamera(TiUIMapView.java:388)\r\n[ERROR] TiApplication: at ti.map.TiUIMapView.propertyChanged(TiUIMapView.java:262)\r\n[ERROR] TiApplication: at org.appcelerator.kroll.KrollPropertyChange.fireEvent(KrollPropertyChange.java:21)\r\n[ERROR] TiApplication: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1093)\r\n[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:356)\r\n[ERROR] TiApplication: at ti.map.ViewProxy.handleMessage(ViewProxy.java:248)\r\n[ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:98)\r\n[ERROR] TiApplication: at android.os.Looper.loop(Looper.java:135)\r\n[ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5221)\r\n[ERROR] TiApplication: at java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] TiApplication: at java.lang.reflect.Method.invoke(Method.java:372)\r\n[ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n[ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Ti.Map (any version) + Ti SDK 5.2.0.GA crashes", "creator": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "environment": "Ti SDK *5.2.0.GA*\r\nAppc Studio *4.5.0*\r\nModule *ti.map* 2.3.4 up to 2.3.7\r\n*Android issue* only _(iOS works fine)_", "comment": { "comments": [ { "id": "377795", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi,\r\nThanks for reaching out.\r\nCan you be more specific about your issue like provide a screenshot and reproducing test case showing this is a bug so that we can dig into and help you out.\r\n\r\n", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2016-02-24T18:56:02.000+0000", "updated": "2016-02-24T18:56:02.000+0000" }, { "id": "377913", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested Ti.Map with the below sample code. Map is working as expected. \r\n\r\n{code}\r\n\r\n// Add in the module\r\nvar MapModule = require('ti.map');\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar map1 = MapModule.createView({\r\n userLocation: true,\r\n mapType: MapModule.NORMAL_TYPE,\r\n animate: true,\r\n region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 },\r\n height: '50%',\r\n top: 0,\r\n left: 0,\r\n width: '50%'\r\n});\r\nvar map2 = MapModule.createView({\r\n userLocation: true,\r\n mapType: MapModule.TERRAIN_TYPE,\r\n animate: true,\r\n region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 },\r\n height: '50%',\r\n top: 0,\r\n right: 0,\r\n width: '50%'\r\n});\r\nvar map3 = MapModule.createView({\r\n userLocation: true,\r\n mapType: MapModule.SATELLITE_TYPE,\r\n animate: true,\r\n region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 },\r\n height: '50%',\r\n bottom: 0,\r\n\tleft: 0,\r\n width: '50%'\r\n});\r\nvar map4 = MapModule.createView({\r\n userLocation: true,\r\n mapType: MapModule.HYBRID_TYPE,\r\n animate: true,\r\n region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 },\r\n height: '50%',\r\n bottom: 0,\r\n right: 0,\r\n width: '50%',\r\n traffic: true\r\n});\r\nwin.add(map1);\r\nwin.add(map2);\r\nwin.add(map3);\r\nwin.add(map4);\r\nwin.open();\r\n{code}\r\n\r\nI have tested with SDK 5.2.0.GA. The issue is not reproducible from our end. Pleas provide your code or we will close the ticket. Thanks. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-25T19:06:07.000+0000", "updated": "2016-02-25T19:06:07.000+0000" }, { "id": "377918", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "Was just about to provide a sample code. I will provide my sample shortly. Thanks", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2016-02-25T19:25:21.000+0000", "updated": "2016-02-25T19:25:21.000+0000" }, { "id": "377936", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "You can close this ticket, it was an issue with my custom ti.map version.", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2016-02-25T22:32:24.000+0000", "updated": "2016-02-25T22:32:58.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }