{ "id": "149568", "key": "TIMOB-19228", "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": "16919", "description": "Critical updates", "name": "Release 4.1.1", "archived": true, "released": true, "releaseDate": "2015-07-15" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-08-19T18:02:59.000+0000", "created": "2015-07-09T13:14:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "annotation", "mapView" ], "versions": [], "issuelinks": [ { "id": "48735", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "150151", "key": "TIMOB-19314", "fields": { "summary": "Android Map doesn't compile with 4.1.0.GA", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-09-21T18:45:47.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": "From SDK 4.1.0 this code fails:\r\n\r\n{code:java}\r\n\t\tvar aMView = Ti.UI.createView({\r\n\t\t\ttop: 0, \r\n\t\t\tzIndex: 10\t\t\r\n\t\t});\r\n\t\t\tvar aMImgView = Ti.UI.createImageView({\r\n\t\t\t\ttop:0,\r\n\t\t\t\timage: 'KS_nav_ui.png'\r\n\t\t\t});\r\n\t\t\taMView.add(aMImgView);\r\n\t\tann = MapModule.createAnnotation({\r\n\t\t\tlatitude: 47.49,\r\n\t\t\tlongitude: 19.13,\r\n\t\t\ttitle: 'Text',\r\n\t\t\tanimate: true,\r\n\t\t\tcustomView: aMView // This is the correct view, but it doesn't affect the problem, still crashing...\r\n\t\t});\r\n\t\tmap1.addAnnotation(ann);\r\n{code}\r\n\r\nError in log:\r\n\r\n{code:java}\r\n[INFO] : dalvikvm: Could not find method org.appcelerator.titanium.proxy.TiViewProxy.toImage, referenced from method ti.map.AnnotationProxy.handleCustomView\r\n[WARN] : dalvikvm: VFY: unable to resolve virtual method 42619: Lorg/appcelerator/titanium/proxy/TiViewProxy;.toImage ()Lorg/appcelerator/kroll/KrollDict;\r\n[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 16.157MB for 1048592-byte allocation\r\n[ERROR] : dalvikvm: adjustAdaptiveCoef max=4194304, min=1048576, ut=568\r\n[WARN] : dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41d84930)\r\n[ERROR] : TiApplication: (main) [69192,69192] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: org.appcelerator.titanium.proxy.TiViewProxy.toImage; Titanium 4.1.0,2015/07/06 11:15,d57aa7d\r\n[ERROR] : TiApplication: java.lang.NoSuchMethodError: org.appcelerator.titanium.proxy.TiViewProxy.toImage\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:404)\r\n[ERROR] : TiApplication: \tat ti.map.ViewProxy.handleAddAnnotation(ViewProxy.java:280)\r\n[ERROR] : TiApplication: \tat ti.map.ViewProxy.handleMessage(ViewProxy.java:96)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:176)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5317)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Method.java:511)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)\r\n[ERROR] : TiApplication: \tat dalvik.system.NativeStart.main(Native Method)\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: App crash if add annotation with customView", "creator": { "name": "tcheeco", "key": "tcheeco", "displayName": "Zoltan Lengyel", "active": true, "timeZone": "Europe/Budapest" }, "subtasks": [], "reporter": { "name": "tcheeco", "key": "tcheeco", "displayName": "Zoltan Lengyel", "active": true, "timeZone": "Europe/Budapest" }, "environment": "OSX 10.10.4, Appcelerator Studio 4.1.0.201507071245, SDK 4.1.0GA, Samsung Galaxy GT-S7580, Android 4.2.2", "comment": { "comments": [ { "id": "357428", "author": { "name": "tcheeco", "key": "tcheeco", "displayName": "Zoltan Lengyel", "active": true, "timeZone": "Europe/Budapest" }, "body": "Tested on a Sony Xperia (4.0.4), result is the same...", "updateAuthor": { "name": "tcheeco", "key": "tcheeco", "displayName": "Zoltan Lengyel", "active": true, "timeZone": "Europe/Budapest" }, "created": "2015-07-10T05:10:26.000+0000", "updated": "2015-07-10T05:10:26.000+0000" }, { "id": "357819", "author": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "body": "Yes, does'nt works.\r\n", "updateAuthor": { "name": "kopiro", "key": "kopiro", "displayName": "Flavio De Stefano", "active": true, "timeZone": "Europe/Rome" }, "created": "2015-07-16T07:11:33.000+0000", "updated": "2015-07-16T07:11:33.000+0000" }, { "id": "357904", "author": { "name": "mole", "key": "mole", "displayName": "Georgi Nikolov", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "mole", "key": "mole", "displayName": "Georgi Nikolov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-17T09:41:41.000+0000", "updated": "2015-07-20T10:21:42.000+0000" }, { "id": "358072", "author": { "name": "milgner", "key": "milgner", "displayName": "Marcus Ilgner", "active": true, "timeZone": "Europe/Berlin" }, "body": "Same here: our app works with 4.0.0 but crashes with above error when on 4.1.0.GA.", "updateAuthor": { "name": "milgner", "key": "milgner", "displayName": "Marcus Ilgner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-07-21T14:24:12.000+0000", "updated": "2015-07-21T14:24:12.000+0000" }, { "id": "358135", "author": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "body": "Same problem, we can't upgrade to 4.1.0", "updateAuthor": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-07-22T08:06:29.000+0000", "updated": "2015-07-22T08:06:29.000+0000" }, { "id": "360332", "author": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "body": "IMHO this bug should be critical and hot fixed in the next release (5.0.0?)", "updateAuthor": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-08-19T09:19:15.000+0000", "updated": "2015-08-19T09:20:47.000+0000" }, { "id": "360374", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-19T18:02:21.000+0000", "updated": "2015-08-19T18:02:21.000+0000" }, { "id": "360482", "author": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "body": "Great. Many thanks.", "updateAuthor": { "name": "vdegroote", "key": "vdegroote", "displayName": "Vincent Degroote", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-08-20T11:53:04.000+0000", "updated": "2015-08-20T11:53:04.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }