{ "id": "135250", "key": "AC-1242", "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": "2015-03-27T07:17:10.000+0000", "created": "2014-08-25T13:05:35.000+0000", "labels": [ "TCSupportTriage" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:37.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": "I have a view containing a webview (not a full screen thing). We have ZoomControlsEnabled= true;\r\n\r\nWhen the view closes (for example through the back button), while the zoomcontrols are visible, this gives the following error:\r\n\r\nERROR] : WindowManager: android.view.WindowLeaked: Activity org.appcelerator.titanium.TiActivity has leaked window android.widget.ZoomButtonsController$Container{42b5c6e8 V.E..... ......I. 0,0-1080,146} that was originally added here\r\n[ERROR] : WindowManager: \tat android.view.ViewRootImpl.(ViewRootImpl.java:457)\r\n[ERROR] : WindowManager: \tat android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:267)\r\n[ERROR] : WindowManager: \tat android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)\r\n[ERROR] : WindowManager: \tat android.widget.ZoomButtonsController.setVisible(ZoomButtonsController.java:373)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.android_webview.AwZoomControls.invokeZoomPicker(AwZoomControls.java:28)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.ContentViewCore.invokeZoomPicker(ContentViewCore.java:2607)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.ContentViewGestureHandler$1.onScroll(ContentViewGestureHandler.java:429)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.third_party.GestureDetector.onTouchEvent(GestureDetector.java:582)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.ContentViewGestureHandler.processTouchEvent(ContentViewGestureHandler.java:970)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.ContentViewGestureHandler.confirmTouchEvent(ContentViewGestureHandler.java:1021)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.content.browser.ContentViewCore.confirmTouchEvent(ContentViewCore.java:1271)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)\r\n[ERROR] : WindowManager: \tat com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:27)\r\n[ERROR] : WindowManager: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[ERROR] : WindowManager: \tat android.os.Looper.loop(Looper.java:157)\r\n[ERROR] : WindowManager: \tat android.app.ActivityThread.main(ActivityThread.java:5356)\r\n[ERROR] : WindowManager: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : WindowManager: \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n[ERROR] : WindowManager: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)\r\n[ERROR] : WindowManager: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)\r\n[ERROR] : WindowManager: \tat dalvik.system.NativeStart.main(Native Method)\r\n\r\nThis error does not appear when the zoom controls have faded away while closing the view.\r\n\r\n\r\n[I hope I put this issue in the right place, Jira might be fine for the developpers, it's like a dark forest for us simple Titanium users]", "attachment": [], "flagged": false, "summary": "Webview zoomcontrol leaks window", "creator": { "name": "jelmerjellema", "key": "jelmerjellema", "displayName": "Jelmer Jellema", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jelmerjellema", "key": "jelmerjellema", "displayName": "Jelmer Jellema", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK 3.3.0, Android 4.3", "comment": { "comments": [ { "id": "320178", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello!\r\n\r\nCan you please provide a testcase in the form of app.js that reproduces this issue? \r\n\r\nBest Regards,\r\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-25T20:06:39.000+0000", "updated": "2014-08-25T20:06:39.000+0000" }, { "id": "320326", "author": { "name": "jelmerjellema", "key": "jelmerjellema", "displayName": "Jelmer Jellema", "active": true, "timeZone": "Europe/Berlin" }, "body": "{code:title=app.js|borderStyle=solid}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Win 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Win 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar btn = Titanium.UI.createButton({\r\n\ttitle: 'Open web'\r\n});\r\n\r\nbtn.addEventListener('click',\r\n\tfunction()\r\n\t{\r\n\t\twin2.open();\t\t\r\n\t});\r\n\t\r\nwin1.add(btn);\r\n\r\nvar webview = Titanium.UI.createWebView({\r\n\turl: 'http://spininhetweb.nl',\r\n\theight: '50%',\r\n\tenableZoomControls: true\r\n});\r\n\r\nwin2.addEventListener('close',function()\r\n{\r\n\twin2.remove(webview);\r\n\twin2 = null;\r\n});\r\n\r\nwin2.add(webview);\r\n\r\nwin1.open();\r\n{code}\r\n\r\nWhen running, open the second window by clicking the button. Then try to zoom the webview, and while the zoom controls are still visibile, hit the Android back button.\r\n\r\nThis happens on the Samsung Galaxy S4 (GT-I9505), not on the Galaxy Tab 2 (GT-P5110).", "updateAuthor": { "name": "jelmerjellema", "key": "jelmerjellema", "displayName": "Jelmer Jellema", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-26T12:47:07.000+0000", "updated": "2014-08-26T12:49:19.000+0000" }, { "id": "321222", "author": { "name": "jelmerjellema", "key": "jelmerjellema", "displayName": "Jelmer Jellema", "active": true, "timeZone": "Europe/Berlin" }, "body": "I think this has to do with the new chromium webview in Android 4.4?", "updateAuthor": { "name": "jelmerjellema", "key": "jelmerjellema", "displayName": "Jelmer Jellema", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-01T13:23:22.000+0000", "updated": "2014-09-01T13:23:22.000+0000" }, { "id": "347539", "author": { "name": "jelmerjellema", "key": "jelmerjellema", "displayName": "Jelmer Jellema", "active": true, "timeZone": "Europe/Berlin" }, "body": "That's all? Right. Thanks for the help guys.", "updateAuthor": { "name": "jelmerjellema", "key": "jelmerjellema", "displayName": "Jelmer Jellema", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-03-27T08:11:55.000+0000", "updated": "2015-03-27T08:11:55.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }