{ "id": "102277", "key": "TIMOB-11187", "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": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14157", "description": "Sprint 2012-20 API", "name": "Sprint 2012-20 API", "archived": true, "released": true, "releaseDate": "2012-10-08" }, { "id": "14272", "description": "2012 Sprint 20", "name": "2012 Sprint 20", "archived": true, "released": true, "releaseDate": "2012-10-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-27T23:13:52.000+0000", "created": "2012-09-27T00:40:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios090112", "qe-ios6" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [ { "id": "21724", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "101745", "key": "TIMOB-11061", "fields": { "summary": "KitchenSink: Phone: Contacts: Search by ID: Find Record by ID: Intermittent Crash EXC_CRASH (SIGABRT)", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "21594", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "79240", "key": "TIMOB-5006", "fields": { "summary": "iOS: iAd rotation bug", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-03T20:09:06.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" } ], "description": "Building the app using iOS 6 & running it on Iphone running iOS 6 causes it to crash.\r\nWhereas, building the app using iOS 6 & running it on iphone running iOS 5.1 does not cause the crash.\r\nBuilding the app using iOS 5.1 sdk & running it on iphone running iOS 5.1 & 6.0 does not crash the app.\r\n \r\nDescription:\r\n1.Replace your code in app.js with the code below.\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow();\r\n \r\nwin1.orientationModes = [\r\n    Titanium.UI.LANDSCAPE_RIGHT,\r\n    Titanium.UI.LANDSCAPE_LEFT,\r\n    Titanium.UI.PORTRAIT\r\n];\r\n \r\nvar adView = Ti.UI.iOS.createAdView({\r\n    width: 'auto',\r\n    height: 'auto',\r\n    bottom:-100,\r\n    zIndex:100\r\n});\r\nadView.addEventListener('load', function(){\r\n    adView.animate({bottom:0, duration:750});\r\n});\r\nwin1.add(adView);\r\nadView.show();\r\n \r\nwin1.open();\r\n{code}\r\n\r\n2.Run the app on Iphone 5.\r\n3.You will see the iAd in portrait mode.\r\n4.Change the orientation to landscape.\r\n5.Tap on the IAd.\r\n6.You will see the test advertisement come up in portrait mode.\r\n7.Now keeping the device in landscape mode close the iAd.\r\n\r\n\r\nExpected Result:\r\n1.The app should not crash & we should get back to the previous screen .\r\n\r\n\r\nActual Results:\r\n1.The app crashes.", "attachment": [ { "id": "32097", "filename": "iads_log.crash", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-27T00:44:52.000+0000", "size": 33181, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS : Opening iAD in landscape orientation & closing it crashes the app.", "creator": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nTitanium studio : 2.1.2.201208301612\r\nSDK version : 2.1.3.v20120925173111\r\nIphone 5 iOS 6 \r\nXcode 4.5 (iOS 6 SDK)", "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "221293", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The test case code is wrong .\nPlease use the either of the codes below:\n//With Animation\n{code}\nvar win1 = Ti.UI.createWindow();\nvar focused = false;  \nwin1.orientationModes = [\n    Titanium.UI.LANDSCAPE_RIGHT,\n    Titanium.UI.LANDSCAPE_LEFT,\n    Titanium.UI.PORTRAIT\n];\n  \nvar adView = Ti.UI.iOS.createAdView({\n    width: 'auto',\n    height: 'auto',\n    bottom:-100,\n    zIndex:100\n});\nadView.addEventListener('load', function(){\n    if(focused){\n\t\tadView.animate({bottom:0, duration:750});\n\t}\n\telse\n\t{\n\t\tsetTimeout(adView.fireEvent('load'), 100);\n\t}\n\t\n});\nwin1.add(adView);\nwin1.addEventListener('focus',function(){\n\tfocused = true;\n});\n  \nwin1.open();\n\nadView.show();\n{code}\n\n//Without animation\n\n{code}\nvar win1 = Ti.UI.createWindow();\nwin1.orientationModes = [\n    Titanium.UI.LANDSCAPE_RIGHT,\n    Titanium.UI.LANDSCAPE_LEFT,\n    Titanium.UI.PORTRAIT\n];\n  \nvar adView = Ti.UI.iOS.createAdView({\n    width: 'auto',\n    height: 'auto',\n    bottom:0,\n    zIndex:100\n});\n\nwin1.add(adView);\n\nwin1.open();\n\nadView.show();\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-27T23:11:39.000+0000", "updated": "2012-09-27T23:11:39.000+0000" }, { "id": "221294", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "MASTER PR https://github.com/appcelerator/titanium_mobile/pull/3064\n2_1_X PR https://github.com/appcelerator/titanium_mobile/pull/3065", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-27T23:13:29.000+0000", "updated": "2012-09-27T23:13:29.000+0000" }, { "id": "221306", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with:\r\nTitanium studio : 2.1.2.201208301612\r\nSDK version : 2.1.3.v20120927151612\r\nIphone 5 iOS 6\r\nIphone 4 (5.1.1)\r\nxcode 4.5\r\nMac OSX 10.8.2", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T00:08:05.000+0000", "updated": "2012-09-28T00:08:05.000+0000" }, { "id": "221310", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "forgot to add master branch version.\nVerified the fix with:\nTitanium studio : 2.1.2.201208301612\nSDK version : 2.1.3.v20120927151612 , 3.0.0.v20120927164913\nIphone 5 iOS 6\nIphone 4 (5.1.1)\nxcode 4.5\nMac OSX 10.8.2", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-28T00:19:41.000+0000", "updated": "2012-09-28T00:19:41.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }