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

iOS7 simulator only: Application has exited from iOS Simulator on a "second time" Window creation

    Details

      Description

      Problem
      The iPhone version of my app is crashing. This happens with Ti 3.1.0 but not with 3.0.2. The view consists of a window containing a table view and a search bar. when the window opens a request is sent to the server and data is retrieved to populate the tableview. When any row is clicked the window closes and the value of the row is returned. The crash happens when I click on any row resulting from search bar filtering.

      Test case

      var win1 = Ti.UI.createWindow({
      	backgroundColor : "#FFF"
      });
       
      var wins = Ti.UI.createWindow({
      	backgroundColor : 'white'
      });
       
      var nav = Titanium.UI.iPhone.createNavigationGroup({
      	window : wins
      });
       
      var btn = Ti.UI.createButton({
      	title : 'click'
      });
       
      btn.addEventListener('click', function(e) {
      	var win = Titanium.UI.createWindow({
      		backgroundColor : 'white'
      	});
      	var search = Titanium.UI.createSearchBar({
      		showCancel : true,
      		height : 43,
      		top : 0
      	});
      	var data = [];
       
      	data[0] = Titanium.UI.createTableViewSection({
      		headerTitle : 'Header 1'
      	});
      	data[0].add(Titanium.UI.createTableViewRow({
      		title : 'Row 1'
      	}));
       
      	data[1] = Titanium.UI.createTableViewSection({
      		headerTitle : 'Header 2'
      	});
      	data[1].add(Titanium.UI.createTableViewRow({
      		title : 'Row 2'
      	}));
       
      	search.addEventListener('focus', function(e) {
      		Ti.API.info('focus');
      	});
       
      	var tableview = Titanium.UI.createTableView({
      		data : data,
      		search : search,
       
      	});
       
      	tableview.addEventListener('click', function(e) {
      		Ti.API.info(e);
      		nav.close(win);
      	});
       
      	win.add(tableview);
       
      	nav.open(win);
      });
       
      wins.add(btn);
       
      win1.add(nav);
      win1.open();
      

      Log

      [INFO] :   Deploy type: development
      [INFO] :   Building for target: simulator
      [INFO] :   Building using iOS SDK: 7.0
      [INFO] :   Building for iOS iPad Simulator: 7.0
      [INFO] :   Building for device family: ipad
      [INFO] :   Minimum iOS version: 5.0
      [INFO] :   Debugging disabled
      [INFO] :   Profiler disabled
      [INFO] :   Initiating prepare phase
      [INFO] :   Forcing rebuild: device family changed since last build
      [INFO] :     Was: iphone
      [INFO] :     Now: ipad
      [INFO] :   Found Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=development
      [INFO] :   Found Titanium module id=com.appcelerator.apm version=latest platform=iphone deploy-type=development
      [INFO] :   Found Titanium module id=com.soasta.touchtest version=1.0 platform=iphone deploy-type=development
      [INFO] :   Detected third-party native iOS module: com.appcelerator.apm version 1.0.4
      [INFO] :   Detected third-party native iOS module: com.soasta.touchtest version 1.0
      [INFO] :   Cleaning old build directory
      [INFO] :   Performing full rebuild
      [INFO] :   Copying Xcode iOS files
      [INFO] :   Creating Xcode project directory: /Users/oromero/Documents/Appcelerator_Studio_Workspace/myapp/build/iphone/myapp.xcodeproj
      [INFO] :   Writing Xcode project data file: Titanium.xcodeproj/project.pbxproj
      [INFO] :   Writing Xcode project configuration: project.xcconfig
      [INFO] :   Writing Xcode module configuration: module.xcconfig
      [INFO] :   Creating symlinks for simulator build
      [INFO] :   Injecting native libraries into Xcode project file
      [INFO] :   Forcing rebuild: ApplicationDefaults.m has changed since last build
      [INFO] :   Writing properties to ApplicationDefaults.m
      [INFO] :   No module resources to copy
      [INFO] :   Copying CommonJS modules
      [INFO] :   Invoking xcodebuild
      [INFO] :   Finished building the application in 12s 883ms
      [LiveView] No active servers
      [INFO] :   Running application in iOS Simulator
      [INFO] :   Launching application in iOS Simulator
      [INFO] :   Focusing the iOS Simulator
      [INFO] :   Application started
      [INFO] :   myapp/1.0 (3.1.3.v20130815144559.0464cae)
      [INFO] :   focus
      [INFO] :   {
      [INFO] :       bubbles = 1;
      [INFO] :       cancelBubble = 0;
      [INFO] :       detail = 0;
      [INFO] :       index = 0;
      [INFO] :       row = "[object TiUITableViewRow]";
      [INFO] :       rowData = "[object TiUITableViewRow]";
      [INFO] :       searchMode = 1;
      [INFO] :       section = "[object TiUITableViewSection]";
      [INFO] :       source = "[object TiUITableViewRow]";
      [INFO] :       type = click;
      [INFO] :       x = 30;
      [INFO] :       y = 27;
      [INFO] :   }
      [INFO] :   objc[8514]: __weak variable @ 0xcba5804 holds 0x10cbac6b instead of 0xd209000
      -- End simulator log ---------------------------------------------------------
      [INFO] :   Application has exited from iOS Simulator
      [INFO] :   Project built successfully in 1m 4s 965ms
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                emerriman Eric Merriman
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration