[TIMOB-14900] iOS7 simulator only: Application has exited from iOS Simulator on a "second time" Window creation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-08-28T15:39:24.000+0000 |
Affected Version/s | Release 3.1.2 |
Fix Version/s | 2013 Sprint 18, 2013 Sprint 18 API |
Components | iOS |
Labels | ios7, ks, qe-closed-3.1.3, qe-testadded, searchbar, tableview |
Reporter | Eric Merriman |
Assignee | Ingo Muschenetz |
Created | 2013-08-16T21:05:00.000+0000 |
Updated | 2017-03-21T21:34:25.000+0000 |
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
Cloned from previous ticket to describe iOS 7 behavior.
We encountered this issue, verifying the fix for TIMOB-14292. Tested with: Appcelerator Studio, build: 3.1.2.201308091728 Titanium SDK, build: 3.1.2.GA and 3.1.3.v20130815144559 CLI: 3.1.2 KS 3.1.2.GA *works fine with* Devices: Ipad4 iOS 7 beta5 iPhone5 iOS7 beta5 *exited from iOS simultor* iPhone simulator iOS SDK: 7.0 Simulator Version: 7.0 Test steps: 1. Launch the above code in iOS7 simulator 2. Press "click" and perform search 3. Click on the chosen row 4. Press "click" again and repeat steps 2-3 Pass case: ability to repeat steps Fail case: [INFO] : Application has exited from iOS Simulator after step 4 *Note*: This behavior occurs on *iOS7 simulator only*
Tested the above code and *cannot reproduce* termination of simulator, performing repeatable search. Environment: Mac osx 10.8.4 Mountain Lion Appcelerator Studio, build: 3.1.3.201308252005 Titanium SDK, build:3.1.3.v20130822140128 alloy:1.2.1-cr CLI:3.1.2 Devices: Ipad4 iOS 7 beta6(11A4449d) iPhone5 iOS7 beta6 iPhone simulator iOS SDK: 7.0 Simulator Version: 7.0
Closing as cannot reproduce after testing with: Appcelerator Studio, build: 3.1.3.201308252005 Titanium SDK, build 3.1.3.v20130827103108 alloy 1.2.1 CLI 3.1.2 Device: iPhone 4 iOS7 beta6 (11A4449d) iPhone simulator iOS SDK: 7.0 Simulator Version: 7.0
Should have been closed as cannot reproduce.
Closing ticket as the issue cannot be reproduced.