{ "id": "67478", "key": "TIMOB-4357", "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": "12082", "description": "", "name": "Sprint 2011-42", "archived": true, "released": true, "releaseDate": "2011-10-24" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-04T13:19:01.000+0000", "created": "2011-06-06T20:08:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "dr-list", "module_webview", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-04T13:19:01.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": "# Open KitchenSink.\r\n# Go to Base UI > Views > Web Views > Local URL.\r\n# Then cause the app to close. NOT by force-stopping it from Settings > Applications[1], but by opening enough other applications to use up memory.\r\n# Now reopen KitchenSink. It will crash.\r\n\r\nThe output from logcat includes multiple entries such as:\r\n\r\n{code}\r\nE/TiBaseActivity(10988): java.lang.RuntimeException: Can't marshal non-Parcelable objects across processes.\r\nE/TiUncaughtHandler(10988): (main) [26,9530] Sending event: exception on thread: main msg:android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@40514928 is not valid; is your activity running?; Titanium 1.7.0,2011/03/31 12:08,6cae16\r\nE/TiUncaughtHandler(10988): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@40514928 is not valid; is your activity running?\r\n{code}\r\n\r\nThe result is that any Android webview-based app will crash on reopen (whether it was closed by the system, a crash, etc.) every single time.\r\n\r\nFor more detail/discussion, see Q&A at: [Android webview crashes|http://developer.appcelerator.com/question/120635/android-webview-crashes----theyre-not-your-fault]\r\n", "attachment": [], "flagged": false, "summary": "Webview fatal exception / crash on re-open", "creator": { "name": "kt_", "key": "kt_", "displayName": "KT", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kt_", "key": "kt_", "displayName": "KT", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Android 2.1\r\n* Titanium 1.7\r\n* Nexus S running 2.3.4", "comment": { "comments": [ { "id": "156363", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "I can reliably reproduce the problem, with or without the [alwaysRetainTaskState|http://wiki.appcelerator.org/display/guides/Maintaining+a+Custom+AndroidManifest.xml#MaintainingaCustomAndroidManifest.xml-EnsuringAndroidshutsdownappscleanly] setting applied, by doing the following:\r\n\r\n* start the KS and navigating to the \"Local URL\" demo. Wait to finish loading. Press Home \r\n* start default apps: Alarm Clock, API Demos, Browser (navigate to [http://rgmwatches.com]), and Maps. Wait until one is fully loaded before pressing the Home button and opening the next\r\n* return to the KS webview demo. Observe \"Sorry!...application has stopped unexpectedly\" error\r\n\r\nEnvironment:\r\n* tested on emulator only\r\n* Ubuntu 10.04\r\n* Titanium Studio, build: 1.0.0.201106071155 Build date: 07 June 2011, 11:57:46 Titanium SDK version: 1.7.0 (06/02/11 11:34 c951553...)\r\n* Android SDK 2.2\r\n\r\nThere is a video of the issue occurring [here|http://dl.dropbox.com/u/14392713/KT-KS-crash-demo.ogv], although I am not sure if there is anything further to be gleaned from it\r\n\r\nAlso, logcat output is [here|http://pastebin.com/w1UkakMg]\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-09T15:24:01.000+0000", "updated": "2011-06-09T15:26:31.000+0000" }, { "id": "161748", "author": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4.Associated HD ticket\r\nCustomer is relying on this, so I've increased priority, http://appc.me/c/APP-828783", "updateAuthor": { "name": "framirez", "key": "framirez", "displayName": "Francisco Antonio Duran Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-03T13:06:33.000+0000", "updated": "2011-08-03T13:06:33.000+0000" }, { "id": "162673", "author": { "name": "joe.lepis", "key": "joe.lepis", "displayName": "Joe Lepis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any update on this?", "updateAuthor": { "name": "joe.lepis", "key": "joe.lepis", "displayName": "Joe Lepis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-12T08:16:10.000+0000", "updated": "2011-08-12T08:16:10.000+0000" }, { "id": "166152", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any updates on this ticket> It affects a majority of the users on 2.3.X and about 30% of users are on it. Results in a lot of crashes due to this making the app unusable. Please bump up the priority. Thanks!", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-15T08:29:22.000+0000", "updated": "2011-09-15T08:29:22.000+0000" }, { "id": "167228", "author": { "name": "johnz", "key": "johnz", "displayName": "John Zweng", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Clearly reproducable on device (Motorola Milestone, Android 2.3.4).\r\n\r\nCurrent Kitchen Sink application built with Titanium SDK Version:\r\nTitanium 1.7.2 (2011/07/21 09:36 97c3689)\r\n\r\nAny updates on this?", "updateAuthor": { "name": "johnz", "key": "johnz", "displayName": "John Zweng", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-28T12:34:43.000+0000", "updated": "2011-09-28T12:34:43.000+0000" }, { "id": "168733", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Folks its been a month since we requested information on this. Can you guys squeeze this in for 1.7.3. Its really impacting a lot of users. Pls revert.", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-11T05:44:16.000+0000", "updated": "2011-10-11T05:44:16.000+0000" }, { "id": "169683", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am not able to reproduce the behavior where you get an error message of \"Sorry!...application has stopped unexpectedly\". When I switch back to the KS demo, it restarts, but it doesn't show any pop-up error message. Are there any steps that I may be missing to trigger this behavior?", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T10:15:24.000+0000", "updated": "2011-10-19T10:15:24.000+0000" }, { "id": "169685", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Allen, If you would like to IM us pls reach out to us. We are online now. pls email us at support@taazza.com and we can help you reproduce it right away. Thannks!", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T10:20:32.000+0000", "updated": "2011-10-19T10:20:32.000+0000" }, { "id": "169694", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The reproduction sequence should be public along with the ticket. Is there a problem adding it here?", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T10:36:12.000+0000", "updated": "2011-10-19T10:36:12.000+0000" }, { "id": "169700", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We have seen this crash happen when our app opens an external app - the email app, SMS app, dialer, Google Maps app or the browser. Our app goes to the background, but gets displayed again once we close the external app. In between these actions, this crash happens. And when we reopen our app, it seems to think it is being woken up & crashes again throwing up the \"Sorry...\" dialog.\r\n\r\nThis behaviour can be easily observed on *2.3.X* both on the emulator and on a device. The code which consistently causes this crash for us uses *Ti.Platform.openURL* to open external apps:\r\n\r\n* Open the dialer using *Ti.Platform.openURL('tel:' + )*\r\n* Open a YouTube video using *Ti.Platform.openURL*\r\n* Open Google Maps - *Ti.Platform.openURL(\"http://maps.google.com/maps?f=d&saddr=12,77&daddr=13,80&hl=en\")*\r\n\r\nAs the initial description says, having lots of applications open/running helps to reproduce this quickly.", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T10:55:46.000+0000", "updated": "2011-10-19T10:59:40.000+0000" }, { "id": "169716", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you please provide an app.js that I can use to reproduce this issue? I have simple code that launches google maps, and when I go back I do not see the error message you are referring to. This is what I did:\r\n\r\n1. Open the app, and launch google maps\r\n2. Open a bunch of other activities, like msg, browser, gallery etc\r\n3. Go back and reopen the app\r\n\r\nThe app restarts, but I don't see any error message.\r\n\r\n\r\nPlease also provide step by step instructions to reproduce this.\r\n\r\nThanks!", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T12:17:11.000+0000", "updated": "2011-10-19T12:17:11.000+0000" }, { "id": "169718", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Are you trying this on 2.3.4?", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T12:26:25.000+0000", "updated": "2011-10-19T12:26:25.000+0000" }, { "id": "169722", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am using 2.3.1 emulator", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T12:48:49.000+0000", "updated": "2011-10-19T12:48:49.000+0000" }, { "id": "169724", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Its reproducible consistently on 2.3.4 devices by our users & as note by John Zweng above. Any way u can try it on 2.3.4?", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T12:53:29.000+0000", "updated": "2011-10-19T12:53:29.000+0000" }, { "id": "169741", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I just tried it on a 2.3.4 device, and I can't reproduce the error you are getting. Could you please provide an app.js and step by step instructions to reproduce this?", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T13:40:56.000+0000", "updated": "2011-10-19T13:40:56.000+0000" }, { "id": "169748", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could you also try using Titanium SDK 1.8.0? Instructions to use the latest build are located at http://wiki.appcelerator.org/display/guides/Continuous+Builds", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T14:28:44.000+0000", "updated": "2011-10-19T14:28:44.000+0000" }, { "id": "169760", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Will do. Did u try it on 1.7.X and 2.3.4? ", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T15:20:05.000+0000", "updated": "2011-10-19T15:20:05.000+0000" }, { "id": "169761", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No, I only tried it on 1.8.0 and 2.3.4\r\n\r\nThere may have been other changes in 1.8.0 that have already fixed this issue.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T15:24:38.000+0000", "updated": "2011-10-19T15:24:38.000+0000" }, { "id": "169766", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If you could try it on 1.7.X branch it would help. We will try it on the device on our end when the team is back later tonite. We would have to back port the fix to 1.7.X if we can find it.", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-19T16:52:30.000+0000", "updated": "2011-10-19T16:52:30.000+0000" }, { "id": "169838", "author": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To reproduce the issue on 1.7.X and 1.8.0:\r\n\r\n# Click on the *Open WebView* button. New window with webview containing dropdown opens up.\r\n# Close the window using the back button.\r\n# Click on the *Open WebView* button again. Webview window opens up. Now click on the dropdown. App crashes.\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nTi.UI.setBackgroundColor('#000');\r\n\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar win1 = Ti.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n});\r\nvar button = Ti.UI.createButton({title: 'Open WebView'});\r\nwin1.add(button);\r\nvar browser = Ti.UI.createWebView();\r\nvar html = '';\r\nbutton.addEventListener('click', function() {\r\n var w = Ti.UI.createWindow({fullscreen: true});\r\n w.add(browser);\r\n w.open();\r\n browser.html = html;\r\n});\r\n\r\ntabGroup.addTab(Ti.UI.createTab({ \r\n title:'Tab 1',\r\n window:win1\r\n}));\r\ntabGroup.open();\r\n{code}\r\n\r\n", "updateAuthor": { "name": "taazzago", "key": "taazzago", "displayName": "Taazza GO", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-20T10:24:02.000+0000", "updated": "2011-10-20T10:24:37.000+0000" }, { "id": "170898", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "pull request is ready (from allen)\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/594", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-10-31T08:50:55.000+0000", "updated": "2011-10-31T08:50:55.000+0000" }, { "id": "170902", "author": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "body": "Awesome, thanks for working on this guys!", "updateAuthor": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "created": "2011-10-31T08:56:17.000+0000", "updated": "2011-10-31T08:56:17.000+0000" }, { "id": "175036", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.1.v20111205164258 v8/rhino on\r\nGalaxy 10.1 (3.1)\r\nDroid 1 (2.2.2)\r\nNexus S (2.3.6)", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T13:33:35.000+0000", "updated": "2011-12-06T13:33:35.000+0000" }, { "id": "175038", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Open to add label", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T13:34:28.000+0000", "updated": "2011-12-06T13:34:28.000+0000" }, { "id": "178003", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels ", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T13:18:36.000+0000", "updated": "2012-01-04T13:18:36.000+0000" } ], "maxResults": 26, "total": 26, "startAt": 0 } } }