{ "id": "62672", "key": "TIMOB-2040", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:53.000+0000", "created": "2011-04-15T03:08:49.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "defect", "ios", "ipad", "orientations", "popover", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:53.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": "{html}

On the ipad, running 3.2,4.1 using 1.4.2 and 1.5 if a popover is\nvisible during and orientation change, the app crashes.

\n

From the console:
\n2010-10-11 08:10:58.455 iPadTestApp[16045:207]\nTerminating app due to uncaught exception\n'NSGenericException', reason: '-[UIPopoverController dealloc]\nreached while popover is still visible.'
Call\nstack at first throw: ( 0 CoreFoundation 0x03815b99\nexceptionPreprocess + 185
\n1 libobjc.A.dylib 0x0396540e objc_exception_throw + 47
\n2 CoreFoundation 0x037ce238 +[NSException raise:format:arguments:]\n+ 136
\n3 CoreFoundation 0x037ce1aa +[NSException raise:format:] + 58
\n4 UIKit 0x00bc38d4 -[UIPopoverController dealloc] + 86
\n5 Foundation 0x005d630d
delayedPerformCleanup + 74
\n6 CoreFoundation 0x0378e61e CFRunLoopTimerInvalidate + 446
\n7 CoreFoundation 0x037f877a CFRunLoopDoTimer + 1818
\n8 CoreFoundation 0x03754dd9
CFRunLoopRun + 1817
\n9 CoreFoundation 0x03754350 CFRunLoopRunSpecific + 208
\n10 CoreFoundation 0x03754271 CFRunLoopRunInMode + 97
\n11 GraphicsServices 0x053fc00c GSEventRunModal + 217
\n12 GraphicsServices 0x053fc0d1 GSEventRun + 115
\n13 UIKit 0x00866af2 UIApplicationMain + 1160
\n14 iPadTestApp 0x00003a59 main + 362
\n15 iPadTestApp 0x00002841 start + 53
\n16 ??? 0x00000001 0x0 + 1
\n) terminate called after throwing an instance of 'NSException'

{html}", "attachment": [], "flagged": false, "summary": "visible popover causes app crash during orientation chnage", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127328", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Unable to replicate in KS-iPad->Main Tests->Popovers (on\ndevice). Going to try and create some other sample code but it\nappears that this bug may have been fixed.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:50.000+0000", "updated": "2011-04-15T03:08:50.000+0000" }, { "id": "127329", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Unable to replicate with this JS, either:

\n
\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\n\nvar button = Ti.UI.createButton({\n    title:'Show popover',\n    width:250,\n    height:40\n});\nbutton.addEventListener('click', function() {\n    var popover = Ti.UI.iPad.createPopover({ \n            width:200, \n            height:350,\n            title:'Pop!',\n            barColor:'#111'\n    }); \n    popover.show({view:button, animated:false});\n});\nwin.add(button);\n\nwin.open();\n
\n

Reassigning to Thom so he may confirm that this is fixed, and\nmarking fixed-in-qa.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:50.000+0000", "updated": "2011-04-15T03:08:50.000+0000" }, { "id": "127330", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm not able to to repro this crash in 1.4.x either? Clint to\nre-open if he has steps. closing on iPad 3.2.2 mobile sdk build\n1.5.0.62c1cae

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:50.000+0000", "updated": "2011-04-15T03:08:50.000+0000" }, { "id": "127331", "author": { "name": "martinprebio", "key": "martinprebio", "displayName": "Martin Prebio", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I also receive this Exception, when I often close and reopen the\npopover, which has a hide EventListener that takes some moments to\ncomplete.

\n

Developer Version 1.2.2

\n

[INFO] Titanium SDK version: 1.5.1 [INFO] iPhone Device family: ipad [INFO] iPhone SDK version: 4.2 ... [INFO] bg_oop11/1.0 (1.5.1.16bbb92) [ERROR] The application has crashed with an\nunhandled exception. Stack trace: 0 CoreFoundation 0x02237bcc\nexceptionPreprocess + 156
\n1 libobjc.A.dylib 0x0238c5c2 objc_exception_throw + 47
\n2 CoreFoundation 0x021f0628 +[NSException raise:format:arguments:]\n+ 136
\n3 CoreFoundation 0x021f059a +[NSException raise:format:] + 58
\n4 UIKit 0x00bc3f9b -[UIPopoverController dealloc] + 86
\n5 Foundation 0x005ff8e9
delayedPerformCleanup + 74
\n6 CoreFoundation 0x021b0bde CFRunLoopTimerInvalidate + 446
\n7 CoreFoundation 0x0221a7d7 CFRunLoopDoTimer + 1799
\n8 CoreFoundation 0x02176cc9
CFRunLoopRun + 1817
\n9 CoreFoundation 0x02176240 CFRunLoopRunSpecific + 208
\n10 CoreFoundation 0x02176161 CFRunLoopRunInMode + 97
\n11 GraphicsServices 0x04009268 GSEventRunModal + 217
\n12 GraphicsServices 0x0400932d GSEventRun + 115
\n13 UIKit 0x0089042e UIApplicationMain + 1160
\n14 bg_oop11 0x0000367c main + 362
\n15 bg_oop11 0x000024a1 start + 53
\n2011-01-19 20:15:06.484 bg_oop11[42760:207] *** Terminating app due\nto uncaught exception 'NSGenericException', reason:\n'-[UIPopoverController dealloc] reached while popover is still\nvisible.'

{html}", "updateAuthor": { "name": "martinprebio", "key": "martinprebio", "displayName": "Martin Prebio", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:51.000+0000", "updated": "2011-04-15T03:08:51.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }