{ "id": "93577", "key": "TIMOB-9672", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13417", "description": "Sprint 2012-13 API", "name": "Sprint 2012-13 API", "archived": true, "released": true, "releaseDate": "2012-07-01" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-26T10:29:33.000+0000", "created": "2012-06-20T16:10:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_slider", "qe-testadded", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "18763", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "94501", "key": "TIMOB-9895", "fields": { "summary": "Android: Slider within table crash on 2.1.0 GA", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-13T13:52:26.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem description\r\nApplication crashes when a Slider object is created specifying the 'value' property and it's placed inside a tableViewRow\r\n\r\nh2. Steps to reproduce\r\nRun the sample code:\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({backgroundColor:'#FFFFFF'});\r\n\r\nvar ds =[];\r\nexpandableView = Ti.UI.createView({top:0,height:40,backgroundColor:'yellow'});\r\n\r\nvar slider = Titanium.UI.createSlider({\r\n top: 0,\r\n min: 0,\r\n max: 100,\r\n // width: '100%',\r\n value:50\r\n });\r\nexpandableView.add(slider);\r\n\r\n\r\nvar row1 = Titanium.UI.createTableViewRow({height:100});\r\nrow1.add(expandableView);\r\n\r\nds.push(row1);\r\n// \r\nvar tableView = Titanium.UI.createTableView({\r\n\t\t\tdata : ds,\r\n\t\t\tscrollable : true,\r\n\t\t\tseparatorColor : 'transparent',\r\n\t\t\tseparatorStyle: 'none',\r\n\t\t\ttop:0,\r\n\t\t\theight:80\r\n\t});\r\n\r\nvar button1 = Ti.UI.createButton({\r\n\ttitle:'show slider value',\r\n\ttop: 250,\r\n\twidth:200,\r\n\theight:80\r\n});\r\nbutton1.addEventListener('click', function(){\r\n\talert(slider.value)\r\n});\r\nwin1.add(button1);\r\n\r\nvar button2 = Ti.UI.createButton({\r\n\ttitle:'set slider value to 50',\r\n\theight:80,\r\n\twidth:200,\r\n\tbottom:5\r\n});\r\nbutton2.addEventListener('click', function(){\r\n\tslider.value = 50\r\n});\r\nwin1.add(button2);\r\n\r\n\r\nwin1.add(tableView);\r\nwin1.open();\r\n{code}\r\n\r\n\r\nh2. Further notes:\r\nComment out the 'value' property and then set it manually (for example, clicking a button).\r\nIn this case, the value it's correctly stored and displayed.\r\nAdding the slider directly to the Window works. Crash only occurs when slider it's added in a tableViewRow.\r\n\r\nAttached the crash log file too.\r\n\r\nEscalated as per customer request.", "attachment": [ { "id": "28558", "filename": "sliderCrash.log", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-20T16:10:48.000+0000", "size": 6874, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: app crashes when Slider object it's inside a tableViewRow and has the 'value' property", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK tested: 2.1\r\nAndroid OS", "comment": { "comments": [ { "id": "203178", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-9895 is another report of this bug which is requesting this be back ported to 2.1.1.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-13T13:13:23.000+0000", "updated": "2012-07-13T13:13:23.000+0000" }, { "id": "203185", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created [PR #2563|https://github.com/appcelerator/titanium_mobile/pull/2563] to back port fix into 2_1_X.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-13T13:29:05.000+0000", "updated": "2012-07-13T13:29:05.000+0000" }, { "id": "207986", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Environment used for verification -\r\nTested with Titanium SDK: 2.1.1.v20120716180600\r\nTested with Titanium  Studio: 2.1.1.201207161421\r\nDevice - Android Emulator 2.3.3\r\nMachine OS - MAC 10.7.3", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-17T00:43:20.000+0000", "updated": "2012-07-17T00:43:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }