Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11071] iOS: TabGroup - If a tabgroup is created and opened within a window, app crashes.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-09-25T18:36:02.000+0000
Affected Version/sRelease 2.1.3
Fix Version/sSprint 2012-20 Core, 2012 Sprint 20
ComponentsiOS
Labelscore, qe-ios090112, regression
ReporterAnshu Mittal
AssigneeIngo Muschenetz
Created2012-09-24T09:12:05.000+0000
Updated2013-03-13T18:55:17.000+0000

Description

If a tabgroup is created and opened within a window, app crashes. This is regression since the issue does not occur in 2.1.3.v20120920154617. Steps to reproduce: 1. Create an app using the code below. 2. Launch the app. Actual: App crashes and gets closed. See logs. Expected: Application should open normally.

var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});	
function createCustomTab(id){
var tab = Ti.UI.createTab({
});
		
return tab;
}		
var tabs = Ti.UI.createTabGroup();
tabs.addTab(createCustomTab(1));
tabs.addTab(createCustomTab(2));
tabs.open();
win1.add(tabs);
			
			
win1.open();
	

Attachments

FileDateSize
tabcrash.crash2012-09-24T09:12:05.000+000096994

Comments

  1. Vishal Duggal 2012-09-24

    Tabgroups are top level containers and are not supposed to be added to anything. Secondly the code is calling tabs.open and win.open which is what is causing the crash.
  2. Natalie Huynh 2012-12-04

    Closing as invalid

JSON Source