Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8016] iOS: 4.3: WebView: frequent SIGSEGV crash

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-04T16:42:14.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsiOS
Labelsmodule_webview, qe-testadded, regression
ReporterDustin Hyde
AssigneeMax Stepanov
Created2012-03-14T15:10:48.000+0000
Updated2012-04-04T16:42:14.000+0000

Description

Observed frequent SIGSEGV crash on 4.3 devices only when opening a WebView. Does not occur in 5.0, does not occur in Simulator, does not occur in 1.8.2. Regression. Steps to Reproduce: 1. Run code.
var win = Ti.UI.createWindow({
	backgroundColor:'blue'
});

var buttonGoogle = Ti.UI.createButton({
	title:'Open Google',
	top:'20%',
	height:'30%',
	left:'10%',
	right:'10%'
});

buttonGoogle.addEventListener('click', function(){
	var webView = Ti.UI.createWebView({
			url:'http://www.google.com'
		});
		
	win.add(webView);
	
	var button = Ti.UI.createButton({
		title:'Close',
		right:0,
		bottom:0,
		height:'10%',
		width:'20%'
	});
	
	button.addEventListener('click', function(){
		win.remove(webView);
	});
	
	webView.add(button);
});

win.add(buttonGoogle);

var buttonInvalid = Ti.UI.createButton({
	title:'Open Invalid URL',
	bottom:'20%',
	height:'30%',
	left:'10%',
	right:'10%'
});

buttonInvalid.addEventListener('click', function(){
	var webView = Ti.UI.createWebView({
			url:'http://xxx'
		});
		
	win.add(webView);
	
	var button = Ti.UI.createButton({
		title:'Close',
		right:0,
		bottom:0,
		height:'10%',
		width:'20%'
	});
	
	button.addEventListener('click', function(){
		win.remove(webView);
	});
	
	webView.add(button);
});

win.add(buttonInvalid);

win.open();
2. Press 'Open Google', close. Press 'Open Invalid', close. Repeat. Expected Result: No crash. Actual Result: Crash occurs within 1 to 10 seconds.

Attachments

FileDateSize
WebView_2012-03-14-154144_emate-iPad2.crash2012-03-14T15:10:48.000+000030044
WebView_2012-03-14-154956_Palladin.crash2012-03-14T15:10:48.000+000029369

Comments

  1. Dustin Hyde 2012-03-19

    Closing as Fixed. SDK: 2.0.0.v20120319003254 Studio: 2.0.0.201203182248 OS: Snow Leopard Devices Tested: iPod 4.3.3, iPad2 4.3.5
  2. Dustin Hyde 2012-04-04

    Opening to edit labels.

JSON Source