{ "id": "80509", "key": "TIMOB-5337", "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": "12078", "description": "", "name": "Sprint 2011-38", "archived": true, "released": true, "releaseDate": "2011-09-26" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-22T11:29:40.000+0000", "created": "2011-09-22T11:21:19.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "branch-5062", "module_popover", "qe-testadded" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "12787", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "63923", "key": "TIMOB-3291", "fields": { "summary": "iOS: Popover Crash when Navigating Back in Tab Group", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46: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": "h1. Problem\r\nIf you start to show a popover, but then switch to another tab, the app will crash.\r\n\r\nh2. Error Message\r\nPopovers cannot be presented from a view which does not have a window.\r\n\r\nh2. Reproduction\r\nDrop the following in an app.js. Run it, and it will crash.\r\n{code:title=app.js}\r\nvar tab1, tab2, win;\r\nvar tabs = Ti.UI.createTabGroup();\r\ntabs.addTab(tab1 = Ti.UI.createTab({\r\n window: win = Ti.UI.createWindow({\r\n rightNavButton: Ti.UI.createButton({\r\n title: 'Launch Popover',\r\n url: 'what'\r\n })\r\n })\r\n}));\r\nwin.rightNavButton.addEventListener('click',\r\n function() {\r\n Ti.UI.iPad.createPopover({\r\n width: 250, height: 100,\r\n title: 'Test Popover Crash'\r\n }).show({ view: win.rightNavButton });\r\n });\r\ntabs.addTab(tab2 = Ti.UI.createTab({\r\n title: 'Touch Me',\r\n window: Ti.UI.createWindow({\r\n url: 'what'\r\n })\r\n}));\r\ntabs.open();\r\n\r\nfunction cycle() {\r\n tabs.setActiveTab(0);\r\n win.rightNavButton.fireEvent('click');\r\n tabs.setActiveTab(1);\r\n}\r\n\r\nwin.addEventListener('open', cycle);\r\nsetInterval(cycle, 1000);\r\n{code}\r\n\r\nh2. Console Log\r\n{code:title=Console Log}\r\nep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : [ERROR] The application has crashed with an unhandled exception. Stack trace:\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 0 CoreFoundation 0x34c6563d __exceptionPreprocess + 96\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 1 libobjc.A.dylib 0x34243c5d objc_exception_throw + 24\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 2 CoreFoundation 0x34c65491 +[NSException raise:format:arguments:] + 68\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 3 CoreFoundation 0x34c654cb +[NSException raise:format:] + 34\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 4 UIKit 0x33a9ca73 -[UIPopoverController presentPopoverFromRect:inView:permittedArrowDirections:animated:] + 142\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 5 UIKit 0x33a9c123 -[UIPopoverController presentPopoverFromBarButtonItem:permittedArrowDirections:animated:] + 506\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 6 mmxii-lt 0x000a1179 -[TiUIiPadPopoverProxy updatePopoverNow] + 108\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 7 mmxii-lt 0x000a0f9d -[TiUIiPadPopoverProxy show:] + 708\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 8 CoreFoundation 0x34bd2f03 -[NSObject(NSObject) performSelector:withObject:] + 22\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 9 Foundation 0x362777a9 __NSThreadPerformPerform + 268\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 10 CoreFoundation 0x34c3ca79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 11 CoreFoundation 0x34c3e75f __CFRunLoopDoSources0 + 382\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 12 CoreFoundation 0x34c3f4eb __CFRunLoopRun + 230\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 13 CoreFoundation 0x34bcfec3 CFRunLoopRunSpecific + 230\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 14 CoreFoundation 0x34bcfdcb CFRunLoopRunInMode + 58\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 15 GraphicsServices 0x337f641f GSEventRunModal + 114\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 16 GraphicsServices 0x337f64cb GSEventRun + 62\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 17 UIKit 0x3382dd69 -[UIApplication _run] + 404\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 18 UIKit 0x3382b807 UIApplicationMain + 670\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 19 mmxii-lt 0x00004257 main + 50\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : 20 mmxii-lt 0x00003da0 start + 40\r\nSep 22 20:09:38 unknown mmxii-lt[142] : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Popovers cannot be presented from a view which does not have a window.'\r\n\t*** Call stack at first throw:\r\n\t(\r\n\t\t0 CoreFoundation 0x34c6564f __exceptionPreprocess + 114\r\n\t\t1 libobjc.A.dylib 0x34243c5d objc_exception_throw + 24\r\n\t\t2 CoreFoundation 0x34c65491 +[NSException raise:format:arguments:] + 68\r\n\t\t3 CoreFoundation 0x34c654cb +[NSException raise:format:] + 34\r\n\t\t4 UIKit 0x33a9ca73 -[UIPopoverController presentPopoverFromRect:inView:permittedArrowDirections:animated:] + 142\r\n\t\t5 UIKit 0x33a9c123 -[UIPopoverController presentPopoverFromBarButtonItem:permittedArrowDirections:animated:] + 506\r\n\t\t6 mmxii-lt 0x000a1179 -[TiUIiPadPopoverProxy updatePopoverNow] + 108\r\n\t\t7 mmxii-lt 0x000a0f9d -[TiUIiPadPopoverProxy show:] + 708\r\n\t\t8 CoreFoundation 0x34bd2f03 -[NSObject(NSObject) performSelector:withObject:] + 22\r\n\t\t9 Foundation 0x362777a9 __NSThreadPerformPerform + 268\r\n\t\t10 CoreFoundation 0x34c3ca79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12\r\n\t\t11 CoreFoundation 0x34c3e75f __CFRunLoopDoSources0 + 382\r\n\t\t12 CoreFoundation 0x34c3f4eb __CFRunLoopRun + 230\r\n\t\t13 CoreFoundation 0x34bcfec3 CFRunLoopRunSpecific + 230\r\n\t\t14 CoreFoundation 0x34bcfdcb CFRunLoopRunInMode + 58\r\n\t\t15 GraphicsServices 0x337f641f GSEventRunModal + 114\r\n\t\t16 GraphicsServices 0x337f64cb GSEventRun + 62\r\n\t\t17 UIKit 0x3382dd69 -[UIApplication _run] + 404\r\n\t\t18 UIKit 0x3382b807 UIApplicationMain + 670\r\n\t\t19 mmxii-lt 0x00004257 main + 50\r\n\t\t20 mmxii-lt 0x00003da0 start + 40\r\n\t)\r\nSep 22 20:09:38 unknown UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9][142] : terminate called after throwing an instance of 'NSException'\r\nSep 22 20:09:38 unknown ReportCrash[143] : Formulating crash report for process mmxii-lt[142]\r\nSep 22 20:09:38 unknown com.apple.launchd[1] : (UIKitApplication:com.medtronic.eu.mmxii.m3[0x7ee9]) Job appears to have crashed: Abort trap: 6\r\nSep 22 20:09:38 unknown SpringBoard[29] : Application 'mmxii-lt' exited abnormally with signal 6: Abort trap: 6\r\nSep 22 20:09:38 unknown ReportCrash[143] : libMobileGestalt loadBasebandMobileEquipmentInfo: CommCenter error: 1:45\r\nSep 22 20:09:38 unknown ReportCrash[143] : libMobileGestalt copyInternationalMobileEquipmentIdentity: Could not get mobile equipment info dictionary\r\nSep 22 20:09:38 unknown ReportCrash[143] : libMobileGestalt copyInternationalMobileEquipmentIdentity: Could not get mobile equipment info dictionary\r\nSep 22 20:09:38 unknown ReportCrash[143] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/mmxii-lt_2011-09-22-200938_Dawsons-iPad-1.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Popover Crash when Switching Tabs", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": "CRASHES on iPad Simulator 4.2\r\n\r\nbranch-5062\r\nversion=1.8.0\r\ntimestamp=09/21/11 08:26\r\ngithash=2d83d86", "comment": { "comments": [ { "id": "166648", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Repro app.js en route.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-09-22T11:21:36.000+0000", "updated": "2011-09-22T11:21:36.000+0000" }, { "id": "166653", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Added reproduction and environment tested in.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-09-22T11:39:50.000+0000", "updated": "2011-09-22T11:39:50.000+0000" }, { "id": "166717", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Continues to crash test app even after integrating fix.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-23T00:18:36.000+0000", "updated": "2011-09-23T00:18:36.000+0000" }, { "id": "173571", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Ti Studio 1.0.7.201111182325 on OSX Lion\r\nTi Mob SDK 1.8.0.1.v20111121090256\r\niPad 2 OS 5.0, iPad 2 OS 4.3.5\r\n\r\nPopover doesn't cause crash when switching tabs", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-21T14:56:58.000+0000", "updated": "2011-11-21T14:56:58.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }