Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-10891

iOS: App having 'tabgroup containing map' crashes when opened from a window (iOS 6)

    Details

    • Sprint:
      Release 3.0.0

      Description

      This is not a regression. It happens on 2.1.2 also.
      App do not crashes on iOS 5.1
      Steps to reproduce:
      1. Use the app below

      var basewin = Ti.UI.createWindow();
      basewin.open();
       
      var openwin1 = Ti.UI.createButton({
              title:"Case 1",
          });
       
      basewin.add(openwin1);
       
      openwin1.addEventListener('click', function(e) {
      		var tabGroup = Titanium.UI.createTabGroup();
      		var _window = Ti.UI.createWindow();
      	    _window.title='Tab 1';
      	    _window.backgroundColor='#fff';
      	
      	 
      		var tab1 = Titanium.UI.createTab({ 
      		    icon:'KS_nav_views.png',
      		    title:'Tab 1',
      		    window:_window
      		});
      		var regionSV = {latitude:37.337681,longitude:-122.038193,latitudeDelta:0.04, longitudeDelta:0.04};
      		 
      		  var mapview = Titanium.Map.createView({
      		    mapType: Titanium.Map.STANDARD_TYPE,
      		    animate:true,
      		    region: regionSV,
      		    regionFit:true,
      		    userLocation:true,
      		    visible: true,
      		});
      		_window.add(mapview);
      		 
      		var win2 = Titanium.UI.createWindow({ 
      		    title:'Tab 2',
      		    backgroundColor:'#fff'
      		});
      		var tab2 = Titanium.UI.createTab({ 
      		    icon:'KS_nav_ui.png',
      		    title:'Tab 2',
      		    window:win2
      		});
      		 
      		var label2 = Titanium.UI.createLabel({
      		    color:'#999',
      		    text:'I am Window 2',
      		    font:{fontSize:20,fontFamily:'Helvetica Neue'},
      		    textAlign:'center',
      		    width:'auto'
      		});
      		 
      		win2.add(label2);
      		 
      		tabGroup.addTab(tab1); 
      		tabGroup.addTab(tab2); 
      		tabGroup.open();
      		
      		var close = Ti.UI.createButton({
      		        title:"Close",
      		        bottom:'20dp',
      		        height:'35dp',
      		        width:'180dp'
      		});
      		
      		close.addEventListener('click', function(e) {
      		        tabGroup.close();
      		 		basewin.open();
      		});
      		tabGroup.add(close); 
      		
      });
      

      2. Run app on iOS 6.Click the 'Case 1' button.
      3. Click the 'Close' button.
      4. Click the 'Case 1' button again(may need to repeat steps 2 to 4 couple of times).

      Expected result
      2. After step 2, a tabgroup with a map in first tab will get open.
      3. Tabgroup will be closed.Initial window will be displayed.
      4. Again the tabgroup with a map in first tab should get open.

      Actual result:
      2. After step 2, a tabgroup with a map in first tab will get open.
      3. Tabgroup will be closed.Initial window is displayed.
      4. The tabgroup opens up, but after a while the app also crahes.

      Device logs are attached with the bug.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                sbhadauria Shyam Bhadauria
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-14245
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration