Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11476] iOS: Crash on launch

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2012-12-21T05:14:28.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 21 API, 2012 Sprint 21
ComponentsiOS
Labelsapi, module_scrollview, qe-ios100112, qe-testadded, regression
ReporterOlga Romero
AssigneeVishal Duggal
Created2012-10-13T21:12:00.000+0000
Updated2012-12-21T05:14:28.000+0000

Description

An application's crash on launch in module scrollview. *It is regression, not happening in 2.1.3* Test steps: 1.Run this code
var scrollView =  Ti.UI.createScrollView({
    contentWidth: 320,
    contentHeight: 'auto',
    layout: 'horizontal'
});
  
var things = [
    'item1',
    'item2',
    'item3',
    'item4',
    'item5',
    'item6' ];
  
for (var i = 0;  i < things.length;  i++) {
  
    var view = Ti.UI.createView({
        height: 90,
        width: 140,
        top: 10,
        left: 10,
        backgroundColor: '#CCC'
    });
  
    scrollView.add(view);
  
};
 
var win = Ti.UI.createWindow();
win.add(scrollView);
win.open();
Actual result: App crash Expected result: App should not crash and the 'views' added to scrollView should fall underneath each other, creating tiles going down the window.

Comments

  1. Max Stepanov 2012-10-14

    parent->child->parent loop on autoHeight calculations.
  2. Vishal Duggal 2012-10-14

    Master PR https://github.com/appcelerator/titanium_mobile/pull/3225 3_0_X PR https://github.com/appcelerator/titanium_mobile/pull/3226
  3. Sabil Rahim 2012-10-15

    CR & FR
  4. Olga Romero 2012-10-17

    Closing as fixed. Tested on: Titanium Studio, build: 3.0.0.201210151149 Titanium SDK, build: 3.0.0.v20121017102440 Device: iPhone5 ios 6.0 iPhone4s ios 6.0

JSON Source