[TIMOB-27503] iOS : Open an iPad Popover crash the app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-11-12T10:05:27.000+0000 |
Affected Version/s | Release 8.2.1 |
Fix Version/s | Release 8.3.0 |
Components | iOS, iPad |
Labels | engSchedule, ios, regression |
Reporter | nicolomonili |
Assignee | Jan Vennemann |
Created | 2019-10-25T09:44:43.000+0000 |
Updated | 2019-11-12T10:05:27.000+0000 |
Description
From SDK > 8.2.0.GA opening a Popover crash the app. Tested on iOS 11,12,13 simulator.
With SDK 8.2.0.GA no problems.
Code from http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPad.Popover
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var button = Ti.UI.createButton({title: 'Open Popover!'});
button.addEventListener('click', function(e){
popover.show({ view: button });
})
win.add(button);
var rightButton = Ti.UI.createButton({title: 'Robin'});
rightButton.addEventListener('click', function(e){
alert("But green's the color of spring.");
});
var contentWindow = Ti.UI.createWindow({
rightNavButton: rightButton,
title: 'Kermit'
});
contentWindow.add(Ti.UI.createLabel({text: "It's not easy being green."}));
var popover = Ti.UI.iPad.createPopover({
backgroundColor: 'green',
contentView: Ti.UI.createNavigationWindow({
width: 250,
height: 100,
window: contentWindow
})
});
win.open();
Using the latest 8.3.x build
8.3.0.v20190904053513
and CLI7.1.1
I have not been able to reproduce this. However, on the latest master build8.3.0.v20191023125529
it does crash with stacktrace below:I'm on 8.2.1.GA and my app crashes like above when opening a Popover.. rendering 8.2.1.GA unusable for iPad development... Is there a workaround other than staying on 8.2.0.GA?
[~thomas.neerup@eg.dk] thanks for reporting, it indeed is broken on 8.2.1.GA now too (I can reproduce too).
PR (master): https://github.com/appcelerator/titanium_mobile/pull/11303
8.2.1.GA cannot be used at all for iPad releases as this is a fix in the TitaniumKit - what is the plan for getting this into 8.2?
[~lawrence.wilson@abannan.com], 8.3.0 RC is planned for start of this week. If you need to be unblocked immediately you can build your own 8.3.0 directly from the PR. You just need to run the following commands inside your local
titanium_mobile
repo:This will build the SDK from sources and install it as 8.3.0
[~jvennemann], Is this PR ready for QE ?
[~lchoudhary], yup should be good to test. Maybe [~cwilliams] can do the CR since Vijay is still off for the week.
FR Passed. Popover on iPad does not crash and works fine. Waiting on Jenkins build.
merged to master
Verified fix in SDK version
8.3.0.v20191108110820
. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/11303Closing ticket, also verified on SDK version
9.0.0.v20191111145151