{ "id": "130881", "key": "AC-1367", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-06-12T04:40:39.000+0000", "created": "2014-05-26T07:48:19.000+0000", "labels": [ "android", "mobilesdk" ], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:47.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "There's a bug in {{TiDrawableReference.getBitmap(true)}}\r\n\r\nCalling {{BitmapFactory.decodeStream(is, null, opts)}} the second time in the retry loop fails because the input stream ({{is}}) has to be rewound.\r\n\r\nAt the beginning of the retry loop, you need to add something like:\r\n{noformat}\r\nif (i > 0)\r\n is = getInputStream();\r\n{noformat}\r\nand also make sure that it is not null.", "attachment": [], "flagged": false, "summary": "TiDrawableReference.getBitmap(true) fails on the second retry (android)", "creator": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": null, "comment": { "comments": [ { "id": "306511", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you for your suggestion but we need a simple test case to reproduce this issue. ", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-27T19:28:47.000+0000", "updated": "2014-05-27T19:28:47.000+0000" }, { "id": "306591", "author": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "This is not a suggestion - it is a BUG report. Just find a huge image on the internet (search for very high resolution world map) and load it into an image view. You need to cause an out of memory exception. Or you can manually insert code to simulate this.\r\nI gave you a very good description of the problem and how to solve it, this should be enough. I don't have time to write your unit tests for you.", "updateAuthor": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-05-28T06:32:34.000+0000", "updated": "2014-05-28T06:35:47.000+0000" }, { "id": "308596", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We have not been able to reproduce this issue and the reporter has declined to provide a test case.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-12T04:40:39.000+0000", "updated": "2014-06-12T04:40:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }