Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10152] Android: TabGroup - Application doesn't display contents on screen and crashes when hardware back button is pressed on Samsung Galaxy Note

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-08-27T16:22:35.000+0000
Affected Version/sRelease 2.1.1
Fix Version/sn/a
ComponentsAndroid
Labelscore, qe-and070112
ReporterNeha Chhabra
AssigneeBill Dawson
Created2012-07-26T00:38:57.000+0000
Updated2017-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

FileDateSize
log.txt2012-07-26T00:38:57.000+00004221

Comments

  1. Neha Chhabra 2012-07-26

    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.
  2. Josh Roesslein 2012-08-06

    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?
  3. Bill Dawson 2012-08-06

    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.
  4. Bill Dawson 2012-08-06

    If we do decide they're dupes, we should keep this one open, since it has a very definitive and clean fail case.
  5. Bill Dawson 2012-08-06

    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.
  6. Josh Roesslein 2012-08-22

    I think that native crash is the same one I am seeing in TIMOB-10406.
  7. Bill Dawson 2012-08-27

    Closing in favor of newer TIMOB-10406 duplicate, which should have a fix soon.
  8. Lee Morris 2017-03-10

    Closing ticket as duplicate.

JSON Source