[TIMOB-7573] Android: Rhino: Titanium.UI.TabGroup: opening and closing new tab group in a cycle crashes app with null pointer exception
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-14T23:29:05.000+0000 |
Affected Version/s | Release 2.0.0, Release 1.8.1 |
Fix Version/s | Sprint 2012-03, Release 2.0.0, Release 1.8.2 |
Components | Android |
Labels | module_tabgroup, qe-testadded |
Reporter | Dustin Hyde |
Assignee | Hieu Pham |
Created | 2012-02-07T17:14:02.000+0000 |
Updated | 2013-12-10T05:57:32.000+0000 |
Description
Opening and closing a new tab group successively crashes app 1 times out of 12.
Steps to Reproduce:
1. Run Code.
var win = Ti.UI.createWindow({
backgroundColor: 'red',
fullscreen: false,
exitOnClose: true
});
var button = Ti.UI.createButton({
height: 50,
title: 'click'
});
button.addEventListener('click', function(e)
{
var tabGroup = Ti.UI.createTabGroup();
var tabWin = Ti.UI.createWindow({
title: 'blue',
backgroundColor: 'blue'
});
var tabButton = Ti.UI.createButton({
title: 'close'
});
var tab = Ti.UI.createTab({
title: 'blue',
window: tabWin
});
tabWin.add(tabButton);
tabButton.addEventListener('click', function(e){
tabGroup.close();
});
tabGroup.addTab(tab);
tabGroup.open();
});
win.add(button);
win.open();
2. Click 'click' and 'close' a dozen times. must click VERY FAST.
Expected Result:
No crash.
Actual Result:
Crash with null pointer exception. Logs attached.
Attachments
File | Date | Size |
---|---|---|
rhino opening and closing tabgroup crashes app.txt | 2012-02-07T17:14:02.000+0000 | 13656 |
v8 opening and closing tabgroup crashes app.txt | 2012-02-07T17:14:02.000+0000 | 19762 |
Closing as Duplicate of TIMOB-7572.
Bug occurs in Rhino, not a duplicate.
Verified fixed with SDK 1.9.0.v20120212011634 on Droid 3.
Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5074