Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9895] Android: Slider within table crash on 2.1.0 GA

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-07-13T13:11:51.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, regression
ReporterDavide Cassenti
AssigneeNeeraj Gupta
Created2012-07-06T06:08:28.000+0000
Updated2017-03-10T19:10:40.000+0000

Description

Problem description

When a Slider is put inside a TableView, the app crashes with the exception: [ERROR][TiApplication( 317)] (main) [514,514] Sending event: exception on thread: main msg:java.lang.NumberFormatException: Unable to convert java.lang.Float; Titanium 2.1.0,2012/06/28 12:16,6e3cab6 [ERROR][TiApplication( 317)] java.lang.NumberFormatException: Unable to convert java.lang.Float

Steps to reproduce

1. Create an app with the following code:
var win = Titanium.UI.createWindow({ backgroudColor: '#333' });

var tableview = Titanium.UI.createTableView({
});

win.add(tableview);

var row = Ti.UI.createTableViewRow({
	height: 60,
	backgroundColor: '#6699cc' 
});

var volumeSlider = Ti.UI.createSlider({
    left:50,
    right:10,
    min:0,
    max:10,
    value:  1 * 10
});    
row.add(volumeSlider);

tableview.setData([row]);

win.open();
2. Run the app using SDK 2.1.0 (both on Emulator or device): the app crashes.

Expected result

The app works without issues

Additional information

The same app works just fine if you run it using SDK 2.0.2 GA. Regression.

Customer ticket

http://support.appcelerator.com/tickets/APP-266717

Comments

  1. Josh Roesslein 2012-07-13

    Duplicates TIMOB-9672 which is now resolved.
  2. Lee Morris 2017-03-10

    Closing ticket as duplicate.

JSON Source