{ "id": "102575", "key": "TIMOB-11240", "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": "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-10-08T23:43:30.000+0000", "created": "2012-10-03T11:24:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "media", "qe-ios090112", "qe-review", "qe-testadded" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [ { "id": "57753", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "173933", "key": "TIMOB-27275", "fields": { "summary": "[iOS] Unable to rotate photo gallery", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "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": "2019-07-24T10:41:45.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": "This is not a regression. It exists as far as 2.0.1.\r\nThis seems to be an ipad issue. It works fine on iPHONE 3G S(iOS 5.0.1) and iPhone 4S(iOS 5.1)\r\n\r\nSteps to reproduce\r\n1. Use the app below in app.js\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.modal = true;\t\t\r\nvar button = Titanium.UI.createButton({\r\n\t title: \"Push me\"\r\n});\r\n\t\t\r\n\tbutton.addEventListener('click', function() {\r\n\t Titanium.Media.openPhotoGallery({\r\n\t\t});\r\n\t});\r\n\t\t\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n2. Run the app and press button 'Push me' \r\n3. Rotate the device to different orientation now.\r\n\r\nExpected result\r\n2. After step 2, the photo gallery should get displayed.\r\n3. App should rotate to different orientations without crash.\r\n\r\nActual result:\r\n2. After step 2, the photo gallery is not displayed.\r\n3. App crashes on rotating to different orientation.", "attachment": [ { "id": "32258", "filename": "timob11240 10-3-12 9-32 AM.crash", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-03T16:36:01.000+0000", "size": 32225, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: App crashes on changing orientation while opening photogallery from modal window", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 2.1.3.v20121002161610\r\nTitanium  Studio: 2.1.2.201208301612\r\nDevice : iPad iOS 6.0, iPad iOS 5.1\r\nXcode : 4.5 \r\nMachine OS : MAC 10.8", "comment": { "comments": [ { "id": "221893", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Able to reproduce.\nAttached Crash log. Console output:\n{code}\n\u0000\u0000Oct 3 09:32:23 iPad-3-iOS-6 timob11240[395] : [DEBUG] Reading stylesheet from: /var/mobile/Applications/71ACBBA2-9B3A-435C-BEAB-9369B8C6EEDE/timob11240.app/stylesheet.plist\n\u0000\u0000Oct 3 09:32:23 iPad-3-iOS-6 timob11240[395] : [INFO] timob11240/1.0 (2.1.3.v20121002110115.7882ce1)\n\u0000\u0000Oct 3 09:32:23 iPad-3-iOS-6 timob11240[395] : [DEBUG] Analytics is enabled = YES\n\u0000\u0000Oct 3 09:32:23 iPad-3-iOS-6 timob11240[395] : [DEBUG] Loading: /var/mobile/Applications/71ACBBA2-9B3A-435C-BEAB-9369B8C6EEDE/timob11240.app/app.js, Resource: app_js\n\u0000\u0000Oct 3 09:32:24 iPad-3-iOS-6 timob11240[395] : [DEBUG] Application booted in 183.185995 ms\n\u0000\u0000Oct 3 09:32:24 iPad-3-iOS-6 timob11240[395] : Unbalanced calls to begin/end appearance transitions for .\n\u0000\u0000Oct 3 09:32:56 iPad-3-iOS-6 timob11240[395] : [ERROR] The application has crashed with an unhandled exception. Stack trace:\n\t\n\t0 CoreFoundation 0x38af82a3 + 162\n\t1 libobjc.A.dylib 0x35f1f97f objc_exception_throw + 30\n\t2 CoreFoundation 0x38af81c5 + 0\n\t3 UIKit 0x39b8526f + 502\n\t4 timob11240 0x00125469 timob11240 + 705641\n\t5 Foundation 0x35452a6f + 450\n\t6 CoreFoundation 0x38acd5df + 14\n\t7 CoreFoundation 0x38acd291 + 272\n\t8 CoreFoundation 0x38acbf01 + 1232\n\t9 CoreFoundation 0x38a3eebd CFRunLoopRunSpecific + 356\n\t10 CoreFoundation 0x38a3ed49 CFRunLoopRunInMode + 104\n\t11 GraphicsServices 0x384d12eb GSEventRunModal + 74\n\t12 UIKit 0x397ee301 UIApplicationMain + 1120\n\t13 timob11240 0x0007c629 timob11240 + 13865\n\t14 timob11240 0x0007bfe8 timob11240 + 12264\n\u0000\u0000Oct 3 09:32:56 iPad-3-iOS-6 timob11240[395] : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIPopoverController presentPopoverFromRect:inView:permittedArrowDirections:animated:]: Popovers cannot be presented from a view which does not have a window.'\n\t*** First throw call stack:\n\t(0x38af82a3 0x35f1f97f 0x38af81c5 0x39b8526f 0x125469 0x35452a6f 0x38acd5df 0x38acd291 0x38acbf01 0x38a3eebd 0x38a3ed49 0x384d12eb 0x397ee301 0x7c629 0x7bfe8)\n\u0000\u0000Oct 3 09:32:56 iPad-3-iOS-6 ReportCrash[398] : Formulating crash report for process timob11240[395]\n\u0000\u0000Oct 3 09:32:56 iPad-3-iOS-6 com.apple.launchd[1] (UIKitApplication:com.appcelerator.timob11240[0xd02c][395]) : (UIKitApplication:com.appcelerator.timob11240[0xd02c]) Job appears to have crashed: Abort trap: 6\n{code}\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-03T16:35:24.000+0000", "updated": "2012-10-03T16:35:24.000+0000" }, { "id": "221894", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Comment out \"win.modal = true;\" and the app does not crash.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-03T16:50:07.000+0000", "updated": "2012-10-03T16:50:07.000+0000" }, { "id": "221990", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3104", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-03T22:41:52.000+0000", "updated": "2012-10-03T22:41:52.000+0000" }, { "id": "222675", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Use this code for testing\nEvery app should have a base window. Trying to open app directly from a model window is an unsupported behavior.\n\n{code}\nvar win = Ti.UI.createWindow({backgroundColor:'blue'});\n\n \n\nwin.addEventListener('focus',function(){\n\tvar modalwin = Ti.UI.createWindow({backgroundColor:'yellow',navbarHidden:false});\n\n\tmodalwin.modal = true; \n\tvar button = Titanium.UI.createButton({\n title: \"Push me\"\n\t});\n\tbutton.addEventListener('click', function() {\n\t Titanium.Media.openPhotoGallery({});\n\t}); \n \n\tmodalwin.add(button);\n\tmodalwin.open();\n});\n\t\nwin.open();\n\n\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-09T01:28:46.000+0000", "updated": "2012-10-09T01:28:46.000+0000" }, { "id": "225159", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Tested and verified on:\r\nTitanium Studio, build: 3.0.0.201210220122\r\nTitanium SDK, build: 3.0.0.v20121025171611\r\nDevice: iPad 2G (4.3.5)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-26T20:10:59.000+0000", "updated": "2012-10-26T20:10:59.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }