{ "id": "154951", "key": "TIMOB-20410", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-02-17T04:24:38.000+0000", "created": "2016-02-16T20:29:20.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.2.0", "regression" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-27T22:46:44.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": "*NOTE: This is a regression. Not seen in 5.1.2.GA.*\r\n\r\nh5.Steps to reproduce:\r\n1. Use the below code in your app.js & make sure you are setup for android maps before running this:\r\n{code}\r\nvar MapModule = require('ti.map');\r\n\r\nvar win = Ti.UI.createWindow({\r\n\t\tfullscreen : false\r\n\t});\r\n\t\r\nvar myView1 = Ti.UI.createView({\r\n\twidth : 100,\r\n\theight : 100,\r\n\tbackgroundColor : 'red'\r\n});\r\n\r\nvar anno = MapModule.createAnnotation({\r\n\tlatitude : -33.87365,\r\n\tcustomView : myView1,\r\n\tlongitude : 151.20689,\r\n\ttitle : \"Drag Me\",\r\n\tsubtitle : \"Sydney is quite chill\",\r\n\tdraggable : true\r\n});\r\n\r\nvar map = MapModule.createView({\r\n\tuserLocation : true,\r\n\tmapType : MapModule.NORMAL_TYPE,\r\n\tanimate : true,\r\n\tannotations : [anno],\r\n\tregion : {\r\n\t\tlatitude : -33.87365,\r\n\t\tlongitude : 151.20689,\r\n\t\tlatitudeDelta : 0.1,\r\n\t\tlongitudeDelta : 0.1\r\n\t}, //Sydney\r\n\t// top : '30%'\r\n});\r\n\r\nwin.add(map);\r\nwin.open();\r\n{code}\r\n2. Let the app launch on device.\r\n\r\nh5.Actual Results:\r\n1. App crashes with logs:\r\n{code}\r\n*[ERROR] : TiApplication: (main) [582,959] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: No virtual method toImage()Lorg/appcelerator/titanium/TiBlob; in class Lorg/appcelerator/titanium/proxy/TiViewProxy; or its super classes (declaration of 'org.appcelerator.titanium.proxy.TiViewProxy' appears in /data/app/com.appcelerator.mapmod-1/base.apk); Titanium 5.2.0,2016/02/16 09:13,e72b2b5\r\n[ERROR] : TiApplication: java.lang.NoSuchMethodError: No virtual method toImage()Lorg/appcelerator/titanium/TiBlob; in class Lorg/appcelerator/titanium/proxy/TiViewProxy; or its super classes (declaration of 'org.appcelerator.titanium.proxy.TiViewProxy' appears in /data/app/com.appcelerator.mapmod-1/base.apk)\r\n[ERROR] : TiApplication: \tat ti.map.AnnotationProxy.handleCustomView(AnnotationProxy.java:206)\r\n[ERROR] : TiApplication: \tat ti.map.AnnotationProxy.processOptions(AnnotationProxy.java:192)\r\n[ERROR] : TiApplication: \tat ti.map.TiUIMapView.addAnnotation(TiUIMapView.java:393)\r\n[ERROR] : TiApplication: \tat ti.map.TiUIMapView.addAnnotations(TiUIMapView.java:406)\r\n[ERROR] : TiApplication: \tat ti.map.TiUIMapView.processMapProperties(TiUIMapView.java:211)\r\n[ERROR] : TiApplication: \tat ti.map.TiUIMapView.onMapReady(TiUIMapView.java:162)\r\n[ERROR] : TiApplication: \tat com.google.android.gms.maps.SupportMapFragment$zza$1.zza(Unknown Source)\r\n[ERROR] : TiApplication: \tat com.google.android.gms.maps.internal.zzm$zza.onTransact(Unknown Source)\r\n[ERROR] : TiApplication: \tat android.os.Binder.transact(Binder.java:387)\r\n[ERROR] : TiApplication: \tat com.google.android.gms.maps.internal.be.a(SourceFile:82)\r\n[ERROR] : TiApplication: \tat com.google.maps.api.android.lib6.e.fb.run(Unknown Source)\r\n[ERROR] : TiApplication: \tat android.os.Handler.handleCallback(Handler.java:739)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:148)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5417)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n{code}\r\n\r\nh5.Expected Results:\r\n1. App should not crash & view should be visible on the annotation.", "attachment": [], "flagged": false, "summary": "Android: Adding view as a customView to an annotation in maps crashes the app", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 4.5.0.20160213241\r\nTi SDK : 5.2.0.v20160216091337\r\nTi CLI : 5.0.6\r\nAlloy : 1.7.33\r\nMAC Yosemite : 10.10.5\r\nAppc NPM : 4.2.3-2\r\nAppc CLI : 5.2.0-265\r\nNode: 4.2.2\r\nNexus 6P - Android 6.0.1\r\nMap Module : 2.3.6", "closedSprints": [ { "id": 574, "state": "closed", "name": "2016 Sprint 4 SDK", "startDate": "2016-02-13T01:33:48.415Z", "endDate": "2016-02-27T01:33:00.000Z", "completeDate": "2016-02-29T03:44:48.886Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "377053", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/7743\r\n5_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/7744", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-02-17T01:51:51.000+0000", "updated": "2016-02-17T03:39:18.000+0000" }, { "id": "377058", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Master and 5_2_X PR merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-02-17T03:29:40.000+0000", "updated": "2016-02-17T04:24:20.000+0000" }, { "id": "377124", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, Using latest components, Running the sample code on Android no longer crashes on launch, and a view is visible on the annotation.\r\n\r\nTested on:\r\n\r\nAndroid NEXUS 6P device (6.0) \r\nMac OSX El Capitan 10.11.3 (15D21)\r\nTi SDK: 5.2.0.v20160216202526\r\nAppc Studio: 4.5.0.201602170254\r\nAppc NPM: 4.2.3-2\r\nApp CLI: 5.2.0-265\r\nXcode 7.2\r\nNode v4.2.6\r\nproduction\r\n\r\n*Closing ticket.*\r\n\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-02-17T18:03:35.000+0000", "updated": "2016-02-17T18:03:35.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }