{ "id": "117004", "key": "TIMOB-14504", "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": "15565", "description": "2013 Sprint 15 Core", "name": "2013 Sprint 15 Core", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15567", "description": "2013 Sprint 15", "name": "2013 Sprint 15", "archived": true, "released": true, "releaseDate": "2013-07-29" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-04-13T16:20:58.000+0000", "created": "2013-07-09T19:23:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-closed-3.3.0", "qe-testadded" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-04-13T16:21: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": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "When a change is triggered while a modal window is open, the other windows are closed, but the modal window remain open. The app also doesn't come back up again and console shows the Client doesn't reconnect either.", "attachment": [], "flagged": false, "summary": "LiveView: App doesn't restart properly when a modal window is open", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "CLI 3.1.1\r\nSDK 3.1.1.GA\r\nStudio 3.1.1\r\niPad 1 / 5.x", "comment": { "comments": [ { "id": "261164", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Fokke,\r\n\r\nTo help get this solved faster, it would be great if you could provide a simple reproducible test case with a modal window.\r\n\r\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-09T22:03:34.000+0000", "updated": "2013-07-09T22:03:34.000+0000" }, { "id": "261370", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue should be assigned to some on the sdk team since this has to do with the restart api process.", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-10T23:57:24.000+0000", "updated": "2013-07-10T23:57:24.000+0000" }, { "id": "263034", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I could recreate this outside of Liveview. Restart was internally passing arguments that caused an exception in how modal windows close.\n\nTo use: Launch app, click the color button a few times to establish state- Then click modal button, then restart. A successful restart will reset the app to the original window with a red background.\n\n{code}\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\nTitanium.UI.setBackgroundColor('#000');\nvar counter = 0;\nvar win1 = Titanium.UI.createWindow({backgroundColor:'red'});\nvar btn1 = Ti.UI.createButton({top:50,height:50,title:'Window Color'});\nwin1.add(btn1);\nbtn1.addEventListener('click',function(){\n\tvar colorArray = ['red','green','blue','yellow','purple'];\n\tcounter ++;\n\twin1.backgroundColor = colorArray[counter];\n});\n\nvar btn2 = Ti.UI.createButton({top:110,height:50,title:'modal'});\nwin1.add(btn2);\nbtn2.addEventListener('click',function(){\n\tvar win2 = Ti.UI.createWindow({backgroundColor:'white',modal:true});\n\tvar reloadbtn = Ti.UI.createButton({height:50, title:'restart'});\n\treloadbtn.addEventListener('click',function(){Ti.App._restart();});\n\twin2.add(reloadbtn);\n\twin2.open();\n});\n\nwin1.open();\n{code}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-24T20:56:37.000+0000", "updated": "2013-07-24T20:56:37.000+0000" }, { "id": "282361", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "In what way is this resolved? I only see [~blainhamon]'s comment that he can reproduce it, no comment saying it was fixed or pointing to a PR?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-12-04T07:45:08.000+0000", "updated": "2013-12-04T07:45:08.000+0000" }, { "id": "284712", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening the issue as Now app restart properly when a modal window is open.\r\nBut if any change is done on modal window then modal window does not gets open on 'modal' button click.\r\n\r\nTested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201312151544\r\nSDK:3.2.0.v20131216191854\r\nalloy: 1.3.0-cr2\r\nacs: 1.0.10\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-cr3\r\ntitanium-code-processor: 1.1.0-cr2\r\nXcode:5.0.2\r\nOS: Mac OSX 10.9\r\nDevice: Iphone5(v7.0.4)\r\n\r\n\r\n{code}\r\n\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\nvar counter = 0;\r\nvar win1 = Titanium.UI.createWindow({backgroundColor:'red',modal:true});\r\nvar btn1 = Ti.UI.createButton({top:50,height:50,title:'Window Color'});\r\nwin1.add(btn1);\r\nbtn1.addEventListener('click',function(){\r\n var colorArray = ['red','green','blue','yellow','purple'];\r\n counter ++;\r\n win1.backgroundColor = colorArray[counter];\r\n});\r\n \r\nvar btn2 = Ti.UI.createButton({top:110,height:50,title:'modal'});\r\nwin1.add(btn2);\r\nbtn2.addEventListener('click',function(){\r\n var win2 = Ti.UI.createWindow({modal:true,backgroundColor:'blue'});\r\n var reloadbtn = Ti.UI.createButton({height:50, title:'restart'});\r\n reloadbtn.addEventListener('click',function(){Ti.App._restart();});\r\n win2.add(reloadbtn);\r\n win2.open();\r\n});\r\n \r\nwin1.open();\r\n{code}\r\n\r\nSteps to reproduce:\r\n1.Copy paste the code and run the app with liveView enabled.\r\n2.App launches successfully.\r\n3.Tap on window color button. Window color changes as per code.\r\n4.Tap on modal button. Modal window with blue background opens.\r\n5.Tap on restart button. App gets relaunched successfully and previous red background colored window gets open along with two buttons.\r\n6. Now Replace line number 5 with\r\n{code}\r\nvar btn1 = Ti.UI.createButton({top:50,height:50,title:'Title changed'});\r\n{code}\r\nand save the change. LiveView changes are reflected and app launches with success.Now tap modal button. Modal Window opens.\r\n7. Now change line 16\r\n{code}\r\n var win2 = Ti.UI.createWindow({modal:true,backgroundColor:'yellow'});\r\n{code}\r\nand save the change. App launches with success. Now tap modal button. Modal Window does not gets launched.\r\n\r\nNow when we close the app manually and relaunch the app again then Step 7 also works fine.\r\nHence reopening the bug as any change done on modal window then modal window does not gets open on 'modal' button click.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-17T08:42:05.000+0000", "updated": "2013-12-17T08:42:05.000+0000" }, { "id": "284839", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "happens in 3.1.2 3.1.3 . The problem seems to occur only when the restart is manually triggered from the button inside the modal view and then if, any of the second window's parameters are changed. There is an console error message also, \n{code}\nWarning: Attempt to present on whose view is not in the window hierarchy!\n{code}\n\nNot a regression , will still keeping looking.\n\nOn a side note. Opening a modal window on top of a another modal window is not a good test case", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-17T20:31:23.000+0000", "updated": "2013-12-17T20:31:23.000+0000" }, { "id": "284842", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Deferring to 3.2.1 based upon comments.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-17T20:34:35.000+0000", "updated": "2013-12-17T20:34:35.000+0000" }, { "id": "300072", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~srahim], update?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-07T17:56:21.000+0000", "updated": "2014-04-07T17:56:21.000+0000" }, { "id": "301981", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Actually Cannot Reproduce the issue with latest 3.3.0 master(April 21).\r\nCode Used \r\n{code}\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\nvar counter = 0;\r\nvar win1 = Titanium.UI.createWindow({backgroundColor:'red',modal:true});\r\nvar btn1 = Ti.UI.createButton({top:50,height:50,title:'Window Color'});\r\nwin1.add(btn1);\r\nbtn1.addEventListener('click',function(){\r\n var colorArray = ['red','green','blue','yellow','purple'];\r\n counter ++;\r\n win1.backgroundColor = colorArray[counter];\r\n});\r\n \r\nvar btn2 = Ti.UI.createButton({top:110,height:50,title:'modal'});\r\nwin1.add(btn2);\r\nbtn2.addEventListener('click',function(){\r\n var win2 = Ti.UI.createWindow({modal:true,backgroundColor:'blue'});\r\n var reloadbtn = Ti.UI.createButton({height:50, title:'restart'});\r\n reloadbtn.addEventListener('click',function(){Ti.App._restart();});\r\n win2.add(reloadbtn);\r\n win2.open();\r\n});\r\n \r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-21T22:41:49.000+0000", "updated": "2014-04-21T22:41:49.000+0000" }, { "id": "302143", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified fix with below environment:\r\n\r\nAppc Studio: 3.3.0.201404211130\r\nSDK build: 3.3.0.v20140422163054\r\nacs: 1.0.14\r\nnpm: 1.3.2\r\nalloy: 1.4.0-dev\r\nCLI: titanium-3.3.0-dev\r\ntitanium-code-processor:1.1.1-beta1\r\nXcode: 5.1.1\r\nOsx: Mavericks(10.9.2)\r\n\r\nLiveView is working as expected. Changes are reflected on the Modal window. Hence Closing the issue.", "updateAuthor": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-23T07:14:42.000+0000", "updated": "2014-04-23T07:14:42.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }