Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10002] Android: Custom TableViewSection in ScrollableView crash

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-11T06:48:41.000+0000
Affected Version/sRelease 2.0.2
Fix Version/sRelease 3.0.2
ComponentsAndroid
Labelscore
ReporterSebastien
Assigneejithinpv
Created2012-07-13T03:07:46.000+0000
Updated2017-03-27T18:13:44.000+0000

Description

If I put a tableview with custom tabelviewsection in a scrollableview, when I click on row and use addView method of scrollableView the application crashes. Here sample of code to reproduce the issue : App.js is attached. (function() { //create component instance var self = Ti.UI.createWindow({ backgroundColor:'#ffffff', navBarHidden:true, exitOnClose:true }); var tableView = Ti.UI.createTableView(); var oneSection = Ti.UI.createTableViewSection({ headerView: Ti.UI.createView({ height: '25dp', backgroundColor: '#F00' }) }); for (var i=0; i < 20; i++) { oneSection.add(Ti.UI.createTableViewRow({ title: 'coucou' + i, height: '40dp' })) }; tableView.setData([oneSection]); var scrollView = Ti.UI.createScrollableView({ views: [tableView] }); self.add(scrollView); var secondView = Ti.UI.createView({ backgroundColor: '#F00' }); tableView.addEventListener('click', function(item) { // crash HERE !!!!!! scrollView.addView(secondView); scrollView.moveNext(); }); self.open(); })();

Attachments

FileDateSize
android_crash_log2012-07-18T14:51:17.000+000010548
app.js2012-07-13T03:07:46.000+0000987

Comments

  1. Sebastien 2012-07-18

    Hi, Just to say, it's bug is not just for iOS. Regards, Seb
  2. Neeraj Gupta 2012-07-18

    Filer has reported that this issue occurs for both iOS and Android platforms so we should test it on all platforms.
  3. Vishal Duggal 2012-07-18

    Crash on IOS is false. It crashes because of the moveNext() method which is documented as Android only. Setting this as an android issue
  4. Vishal Duggal 2012-07-18

    Attaching crash log from android device running 4.0.2
  5. Vishal Duggal 2012-07-18

    Crash is in tableView layout. Setting label to core
  6. jithinpv 2013-03-11

    Issue does not reproduces with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4
  7. Lee Morris 2017-03-27

    Closing ticket as I am unable to reproduce this issue with the following environment; Pixel (7.1) MacOS 10.11.6 (15G31) Studio 4.8.1.201612050850 Ti SDK 6.0.3 GA Appc NPM 4.2.8 Appc CLI 6.1.0 Ti CLI 5.0.11 Alloy 1.9.5 Arrow 1.10.1 Xcode 8.2 (8C38) Node v4.6.0 Java 1.7.0_80

JSON Source