{ "id": "88991", "key": "TIMOB-8340", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13207", "name": "Sprint 2012-07", "archived": true, "released": true, "releaseDate": "2012-04-08" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-19T09:57:54.000+0000", "created": "2012-03-27T17:01:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-04-19T09:57:54.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": "Run Drillbit UI.Layout on 3.x device on Rhino a few times. Observe failure\r\nRun this code on 3.x: \r\n{code}\r\n\t\t// android\r\n var dpi = Ti.Platform.displayCaps.dpi;\r\n\r\n\t\tif (Ti.Platform.osname === 'android') {\r\n\t\t\tTi.API.info(\"should be: \" + dpi + \", is \" + Ti.UI.convertUnits('1in', Ti.UI.UNIT_PX));\r\n\t\t\tTi.API.info(\"shoulde be 100: \" + Ti.UI.convertUnits('100', Ti.UI.UNIT_PX));\r\n\t\t\tTi.API.info(\"should be: \" + dpi + \", is \" + Ti.UI.convertUnits('25.4mm',Ti.UI.UNIT_PX));\r\n }\r\n\t\t\t\r\n\t\r\n\t\t\r\n\t\tTi.API.info(\"should be 25: \" + Ti.UI.convertUnits(dpi.toString(), Ti.UI.UNIT_MM));\r\n\t\tTi.API.info(\"should be 3: \" + Ti.UI.convertUnits(dpi.toString(), Ti.UI.UNIT_CM));\r\n\t\t\r\n\t\tTi.API.info(\"should be 25: \" + Ti.UI.convertUnits(dpi.toString(), Ti.UI.UNIT_MM));\r\n\t\tTi.API.info(\"should be 3: \" + Ti.UI.convertUnits(dpi.toString(), Ti.UI.UNIT_CM));\r\n\t\tTi.API.info(\"should be 1: \" + Ti.UI.convertUnits(dpi.toString(), Ti.UI.UNIT_IN));\r\n\t\t\r\n\t\tTi.API.info(\"should be 1000: \" + Ti.UI.convertUnits('100cm', Ti.UI.UNIT_MM));\r\n\t\tTi.API.info(\"should be 254: \" + Ti.UI.convertUnits('100in', Ti.UI.UNIT_CM));\r\n\t\t\r\n\t\tTi.API.info(\"should be 0: \" + Ti.UI.convertUnits('abc', Ti.UI.UNIT_PX));\r\n\t\t\r\n{code}\r\nObserve crash in both v8/Rhino", "attachment": [], "flagged": false, "summary": "Drillbit UI.Layout failure ", "creator": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "190215", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When running the code above, you need to run from eclipse on a 3.0 device to trigger the restart caused by android bug2373. This will cause the NPE crash as described in the bug.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-06T15:47:16.000+0000", "updated": "2012-04-06T15:47:16.000+0000" }, { "id": "190354", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 2.0.1.v20120406170211 on LG Slate 3.1\r\nRan v8/rhino drillbit on\r\nversion=2.0.1\r\nmodule_apiversion=2\r\ntimestamp=04/09/12 11:28\r\ngithash=f64f23f\r\n", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-09T11:54:58.000+0000", "updated": "2012-04-09T11:54:58.000+0000" }, { "id": "191826", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening bug to update labels.\r\n\r\nNote to QE: Test already added. Removing qe-port.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-19T09:57:44.000+0000", "updated": "2012-04-19T09:57:44.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }