{ "id": "62808", "key": "TIMOB-2176", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:19.000+0000", "created": "2011-04-15T03:12:48.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "crash", "defect", "usability" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:19.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": "{html}

Using the following script and TiMobile 1.5.0.70ce98 g2 running\n2.2 crashes on load.

\n

var win = Ti.UI.createWindow({

\n
\nbackgroundColor : 'white'\n
\n

});

\n

var customSlider = Titanium.UI.createSlider({

\n
\nmin:0,\nmax:100,\nvalue:25,\nwidth:268,\nheight:40,\ntop:90,\nthumbImage: 'images/custom-slider-handle.png',\nleftTrackImage: 'images/custom-slider-left.9.png',\nrightTrackImage: 'images/custom-slider-right.9.png'\n
\n

}); win.add(customSlider);
\nwin.open();

\n

pastie crash log: http://pastie.org/1241601

{html}", "attachment": [], "flagged": false, "summary": "Android - custom slider crashes (device and sim)", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127739", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

We verified that this was a test issue, but I don't like having\na crash so I updated the code to correctly report an error in the\nlog if the images are missing and fall back to the standard\nslider.

\n

There should be a message for each missing image telling you\nthat it's the thumb, left, or right and where it tried to locate\nthe image.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:48.000+0000", "updated": "2011-04-15T03:12:48.000+0000" }, { "id": "127740", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [8bc11b39ba40d41581da9cff2e31e2002170a3f3])\n[#2100 state:fixed-in-qa] Ported slider\nminRange/maxRange support from android_native_refactor. Added\nexample in KitchenSink for Android support. Added messages instead\nof crashing for [#2176 state:fixed-in-qa] also fixed a bug that\nsurfaced when fixing 2176 where a drawable w/ a null bitmap was\ncreated. \nhttp://github.com/appcelerator/titanium_mobile/commit/8bc11b39ba40d...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:48.000+0000", "updated": "2011-04-15T03:12:48.000+0000" }, { "id": "127741", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

regression tested android 1.6

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:49.000+0000", "updated": "2011-04-15T03:12:49.000+0000" }, { "id": "127742", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

regression tested android 2.1

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:49.000+0000", "updated": "2011-04-15T03:12:49.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }