{ "id": "97528", "key": "TIMOB-10012", "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": "13574", "description": "Sprint 2012-15 Core", "name": "Sprint 2012-15 Core", "archived": true, "released": true, "releaseDate": "2012-07-30" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-06T02:26:32.000+0000", "created": "2012-07-17T16:52:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_webview", "qe-review", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "19456", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "94043", "key": "TIMOB-9831", "fields": { "summary": "Android: background services stop when the app is closed via the BACK button", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "19774", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "97961", "key": "TIMOB-10251", "fields": { "summary": "Android: Application crashes when consecutively opening and closing app.", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-09-06T02:26:32.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": "{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#ccc'\r\n});\r\n \r\nvar webView = Ti.UI.createWebView({ url: \"http://www.google.com\" });\r\n \r\nwebView.addEventListener(\"load\", function() {\r\n Ti.API.info(\"webView loaded\");\r\n setInterval(doSomething, 1000);\r\n});\r\n \r\nwin.add(webView);\r\n \r\nwin.open();\r\n \r\n \r\nfunction doSomething() {\r\n Ti.API.info(\"interval triggered\");\r\n try {\r\n var result = webView.evalJS(\"1+1\");\r\n Ti.API.info(\"RESULT: \" + result);\r\n } catch(e) {\r\n Ti.API.info(\"ERROR: \" + e);\r\n }\r\n}\r\n{code}\r\n \r\n1. Launch the code snippet\r\n2. Browse to a different web page, and hit the 'back' button when the page is loading\r\n3. Immediately launch the app again once the app closes.\r\n\r\n(This is some kind of race condition and happens intermittently. You may need to try several times)", "attachment": [], "flagged": false, "summary": "Android: App intermittently crashes on app restart", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "208457", "author": { "name": "canastro", "key": "canastro", "displayName": "Ricardo Canastro", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Do you get \"[INFO][TiRootActivity( 518)] (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\" ?", "updateAuthor": { "name": "canastro", "key": "canastro", "displayName": "Ricardo Canastro", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T08:54:48.000+0000", "updated": "2012-07-19T08:54:48.000+0000" }, { "id": "208574", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That message is debug info that shows up quite often, and is not related to this issue.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T17:33:36.000+0000", "updated": "2012-07-19T17:33:36.000+0000" }, { "id": "208640", "author": { "name": "canastro", "key": "canastro", "displayName": "Ricardo Canastro", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In my application all the time I close and try immediatly to open the application it crashes and I get that savedInstanceState null and a SIGSEGV error. \r\n\r\nI'm trying to figure out if this is the same bug you are experiencing... My log on DDMS while running on a device (LG P500 Android 2.3.7): http://pastebin.com/8ihM1GM8", "updateAuthor": { "name": "canastro", "key": "canastro", "displayName": "Ricardo Canastro", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-20T01:45:21.000+0000", "updated": "2012-07-20T01:45:21.000+0000" }, { "id": "210329", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Ricardo From the logs, I'm not sure if it's the same bug you experiencing. I am submitting a PR for this, so you can test it out. If you are still having problems, please narrow it down to a simple test case and submit a separate bug.\r\n\r\nThanks,\r\nAllen", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-27T17:31:16.000+0000", "updated": "2012-07-27T17:31:16.000+0000" }, { "id": "210330", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR Ready: https://github.com/appcelerator/titanium_mobile/pull/2653\r\n\r\nTo test, run the test case above.\r\n\r\nNOTE: Before my fix, the app would freeze and then ultimately crash. After my fix, the app may stay on the splash screen for a short time, and then recover (loading the app successfully).\r\n\r\nAlso when you hit the fail case (after you relaunch the app successfully) you may notice that RESULT is null in the logs. This is a result of us getting the load event from the previous instance of the app and is a separate bug. When you hit this situation, you should back out of the app and verify that all the logging from the app stops (Before my fix, this used to keep on going after you back out of an app).\r\n", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-27T17:31:29.000+0000", "updated": "2012-07-27T17:40:08.000+0000" }, { "id": "214590", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.\r\nTested and verified on:\r\nTitanium Studio, build: 2.1.1.201208091713\r\nTitanium SDK, build: 2.2.0.v20120813184911\r\nDevices: Nexus 7 tab (4.1), HTC Evo (4.0.3)\r\n\r\nCan't get crashes on app restart.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-15T11:10:10.000+0000", "updated": "2012-08-15T11:10:10.000+0000" }, { "id": "217792", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-09-06T02:25:55.000+0000", "updated": "2012-09-06T02:25:55.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }