{ "id": "145091", "key": "TIMOB-18609", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-02-25T22:17:21.000+0000", "created": "2015-02-24T20:51:23.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.5.1" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-04-13T15:16:52.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": "h5.Description\r\n\r\nWhen building an application to device and then opening and closing a window the message 'Window: Window is closed normally'. If the window is opened and closed multiple times then the messaged is printed out equal to the number of times it has been opened and closed.\r\n\r\nThis is *not a regression* as it occurs in 3.5.0.GA SDK\r\n\r\nThe logging appears to be coming from line 72 in *android/modules/ui/src/js/window.js*\r\n\r\nIf the app is packaged and installed onto device then the code at that line is not executed as the if statement does not trigger\r\n\r\nFor example, see the below log output where I have opened and closed the window 3 times\r\n\r\n{code}\r\n[DEBUG] : Window: Checkpoint: postWindowCreated()\r\n[DEBUG] : Window: Window is closed normally.\r\n[DEBUG] : Window: Checkpoint: postWindowCreated()\r\n[DEBUG] : Window: Window is closed normally.\r\n[DEBUG] : Window: Window is closed normally.\r\n[DEBUG] : Window: Checkpoint: postWindowCreated()\r\n[DEBUG] : Window: Window is closed normally.\r\n[DEBUG] : Window: Window is closed normally.\r\n[DEBUG] : Window: Window is closed normally.\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Add the attached app.js to an existing project\r\n2. Build the app to an Android device\r\n3. Tap the button to open a window\r\n4. Use the Android back button or the 'Close window button' on screen\r\n5. Repeat steps 3 and 4\r\n\r\nh5.Actual Result\r\n\r\n4. The window will close '\\[DEBUG] : Window: Window is closed normally.' will be printed in the console. As expected\r\n5. For each time you repeat the above steps the number of log message will increase\r\n\r\nh5.Expected Result\r\n\r\n5. There should only be one of the above log messages shown when a window is closed", "attachment": [ { "id": "54240", "filename": "app.js", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-02-24T20:51:23.000+0000", "size": 1012, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Android: The number of log messages from closing a window increases every time a window is closed", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Mac OSX 10.10.2\r\nAppcelerator Studio, build: 3.4.2.201502181619\r\nTitanium SDK build: 3.5.0.GA, 3.5.1.v20150223154830\r\nTitanium CLI, build: 3.4.2-alpha\r\nAlloy: 1.5.1\r\nAndroid build tools 21.1.2\r\nNexus 6 (5.0.1)", "closedSprints": [ { "id": 345, "state": "closed", "name": "2015 Sprint 04 SDK", "startDate": "2015-02-14T01:00:53.297Z", "endDate": "2015-03-01T01:00:00.000Z", "completeDate": "2015-02-28T15:39:43.652Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "344263", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/6661", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-25T00:47:30.000+0000", "updated": "2015-02-25T00:47:30.000+0000" }, { "id": "345065", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on: \r\n\r\nMac OSX 10.10.2\r\nAppcelerator Studio, build: 4.0.0.201502171827\r\nTitanium SDK build: 4.0.0.v20150303161012\r\nTitanium CLI, build: 3.5.0-dev\r\nAlloy: 1.5.1\r\nAndroid build tools: 21.1.2\r\nNexus 5 (5.0.1)\r\n\r\nWhen closing a window the log message is now printed only once each time.\r\n\r\nClosing ticket.\r\n", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-03-04T18:24:56.000+0000", "updated": "2015-03-04T18:27:03.000+0000" }, { "id": "349324", "author": { "name": "tdtrinh", "key": "tdtrinh", "displayName": "Iker", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Titanium Support Team,\r\n\r\nIs it meaning that i have to wait for Titanium SDK version 4.0.0? Because it was not published yet!\r\n\r\nThank you.", "updateAuthor": { "name": "tdtrinh", "key": "tdtrinh", "displayName": "Iker", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-13T15:16:52.000+0000", "updated": "2015-04-13T15:16:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }