[TIMOB-26338] iOS: Label not shown when opened in window from tab-group in 7.3.0 (kroll-thread only)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-08-29T10:01:08.000+0000 |
Affected Version/s | Release 7.3.0 |
Fix Version/s | Release 7.3.1 |
Components | iOS |
Labels | ios |
Reporter | Andreas Pingas |
Assignee | Vijay Singh |
Created | 2018-08-24T11:40:18.000+0000 |
Updated | 2018-08-29T10:48:31.000+0000 |
Description
Createlabel bug
The algorithm below works properly on 7.2.1GA however on 7.3.0GA does not. The label is not created as it should be.
Check the algorithm below with the setting “run on main thread” turned off.
var windowA = Ti.UI.createWindow();
var windowB = Ti.UI.createWindow();
var tabA = Ti.UI.createTab({
window:windowA,
title:'Tab A'
});
var tabB = Ti.UI.createTab({
window:windowB,
title:'Tab B'
});
var tabGroup = Titanium.UI.createTabGroup({
tabs:[tabA, tabB]
});
tabGroup.open();
windowA.addEventListener('click', function() {
var win = Titanium.UI.createWindow();
win.add(Ti.UI.createLabel({
text:'TEST',
color:'#000'
}));
tabA.open(win);
});
Hello, I have tested your issue on our end and I was able to reproduce the issue. There seems to be an issue with running on the main thread turned off for SDK 7.3.0.GA. With the main thread set to true, there is no issue. For 7.2.x.GA there is no issue. I will forward this to our engineering. Thanks.
This is a valid issue and regression from TIMOB-17235. Assigning to [~vijaysingh] for further investigation. [~andreas.pingas] Out of interest: What blocks you from migrating to main-thread? The deprecated kroll-thread will be removed later this year, so if there are any issues with it, we should know those to fix them.
This problem is happening only on kroll-thread. I'll look in this. [~andreas.pingas] You should migrate to main-thread as [~hknoechel] has suggested.
PR (master) - https://github.com/appcelerator/titanium_mobile/pull/10294 PR (7_4_X) - https://github.com/appcelerator/titanium_mobile/pull/10295 PR (7_3_X) - https://github.com/appcelerator/titanium_mobile/pull/10293 Note - Please verify test cases using Kroll-thread and main-thread both. Test Case 1 (From this ticket) -
Test case 2 (From TIMOB-17235) -
Verified fix in SDK version
7.3.1.v20180829001917
and7.4.0.v20180829013317
*Test Steps (FR Passed):*Created a new Titanium application
Added the first test case in to the app
Ran the app with “run on main thread” turned off.
Clicked in to Tab A
Able to see the label
Ran the app again but this time with “run on main thread” turned on.
Clicked in to Tab A
Still able to see the label
Created an application with the second test case
Ran the program
Able to see no flickering
*Test environment**Note:* Waiting for build on Master.
*Closing ticket.* Verified fix in SDK version
7.5.0.v20180829030547
using the test steps above.