[TIMOB-8016] iOS: 4.3: WebView: frequent SIGSEGV crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-04T16:42:14.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | iOS |
Labels | module_webview, qe-testadded, regression |
Reporter | Dustin Hyde |
Assignee | Max Stepanov |
Created | 2012-03-14T15:10:48.000+0000 |
Updated | 2012-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
File | Date | Size |
---|---|---|
WebView_2012-03-14-154144_emate-iPad2.crash | 2012-03-14T15:10:48.000+0000 | 30044 |
WebView_2012-03-14-154956_Palladin.crash | 2012-03-14T15:10:48.000+0000 | 29369 |
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
Opening to edit labels.