[TIMOB-10152] Android: TabGroup - Application doesn't display contents on screen and crashes when hardware back button is pressed on Samsung Galaxy Note
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-08-27T16:22:35.000+0000 |
Affected Version/s | Release 2.1.1 |
Fix Version/s | n/a |
Components | Android |
Labels | core, qe-and070112 |
Reporter | Neha Chhabra |
Assignee | Bill Dawson |
Created | 2012-07-26T00:38:57.000+0000 |
Updated | 2017-03-10T19:10:11.000+0000 |
Description
On android platform,Application doesn't display contents on screen and crashes when hardware back button is pressed on Samsung Note
This is not a regression.It even occurs on 2.1.0,but works fine on 2.0.2 and 2.0.1.
The issue is occurring only on Samsung Galaxy Note GT-7000 (2.3.6) and does not happens on Android Emulator(2.3.3), Samsung Tab (3.2),LG P970 (2.2)
Steps to Reproduce:
1. Install the app and launch it on to the Android Samsung galaxy note device.
2. Press hardware back button.
Expected Result:
1. one Button on top with table view should appear on the screen.
2. Application should exit successfully.
Actual Result:
1. Blank black screen appears.
2. Application crashes.Find attached the log.txt
(function() {
var create = function() {
var tabGroupWrapper = {}, tabWrapper = {}, winWrapper = {}, tableViewWrapper = {}, buttonWrapper = {};
tabGroupWrapper.Element = Ti.UI.createTabGroup();
winWrapper.Element = Ti.UI.createWindow({ navBarHidden: true, backgroundColor: '#fc9', layout: 'vertical' });
tabWrapper.Element = Ti.UI.createTab({ title: 'Test', window: winWrapper.Element });
tabGroupWrapper.Element.addTab(tabWrapper.Element);
tableViewWrapper.Element = Ti.UI.createTableView();
var data = [];
for (var i = 1; i <= 500; ++i) {
data.push({ title: 'Row ' + i});
}
tableViewWrapper.Element.setData(data);
buttonWrapper.Element = Ti.UI.createButton({
title: 'Create new tabgroup!'
});
buttonWrapper.Element.addEventListener('click', function() {
create();
});
winWrapper.Element.add(buttonWrapper.Element);
winWrapper.Element.add(tableViewWrapper.Element);
tabGroupWrapper.Element.setActiveTab(0);
tabGroupWrapper.Element.open();
};
create();
})();
Attachments
File | Date | Size |
---|---|---|
log.txt | 2012-07-26T00:38:57.000+0000 | 4221 |
On further testing found,that the issue also exists on other devices (Samsung Tab(3.2),Emulator(2.2,2.3.3)). However,the issue doesn't reproduce during the launch of the app,but while pressing the button quickly and continuously for a longer period of time.It eventually shows the blank black screen as mentioned in the bug above.
Bill, the log.txt here matches the one in TIMOB-10227. Is this the crash you are looking at? If so isn't this bug just a duplicate of TIMOB-10227?
The log here is a result of backing out of a blank Tab group. The main problem here is the blank Tab group. No idea if that was a symptom of 10227 as well. In other words, I'm not sure if multiple things can cause the NPE. Fixing the NPE doesn't fix the main problem. Could be duplicates. Don't know.
If we do decide they're dupes, we should keep this one open, since it has a very definitive and clean fail case.
Now that TIMOB-10227 has been merged to master, the NPE upon backing out of the anomalous empty TabGroup _no longer occurs_. The TabGroup is, of course, still empty, however.
I think that native crash is the same one I am seeing in TIMOB-10406.
Closing in favor of newer TIMOB-10406 duplicate, which should have a fix soon.
Closing ticket as duplicate.