{ "id": "63457", "key": "TIMOB-2825", "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": "11238", "name": "Release 1.6.0 M05", "archived": true, "released": true, "releaseDate": "2011-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:11.000+0000", "created": "2011-04-15T03:30:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "gingerbread", "imagecache", "release-1.6.0", "reported-1.6.0", "responsecache" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:11.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}

getHeaderField() is apparently re-entrant on getInputStream()\nnow. You can see the trace by loading the Remote ImageView test in\nKS

{html}", "attachment": [], "flagged": false, "summary": "Android: ResponseCache throws IllegalStateException in Gingerbread", "creator": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129503", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [d5fb1399d783873d8415d9b9a4104a820f198d5b])\nlots of speedups and fixes for cache and images: - TiResponseCache\nnow works in Gingerbread - added a new TiDownloadManager class for\nmanaging multiple queued network downloads (works in conjunction\nwith TiResponseCache) - ImageViews will look at their source before\nre-fetching the image when it's changed from processProperties\n(this happens usually from TableView) - We no longer check for\n9-patch PNGs when fetching remote images [#2825\nstate:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/d5fb1399d783...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:30:31.000+0000", "updated": "2011-04-15T03:30:31.000+0000" }, { "id": "129504", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

You should be able to reproduce this by running the YQL + Flickr\ntest in KitchenSink -- when the bug is present, the test will\ncrash.

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:30:31.000+0000", "updated": "2011-04-15T03:30:31.000+0000" }, { "id": "129505", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Confirmed that the YQL+Flickr test fails in 2.3 emulator\n(crashes) in build 4755ac26d (which is before Marshall's\ncommit):

\n
\nE/AndroidRuntime(  599): Caused by: java.lang.IllegalStateException: getInputStream() is not available. Is this a reentrant call?\nE/AndroidRuntime(  599):    at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLC\n
\n

Confirmed that it now succeeds in master HEAD (specifically\nba41eca7d8). The crash does not occur.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:30:31.000+0000", "updated": "2011-04-15T03:30:31.000+0000" }, { "id": "129506", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

confirmed fixed on device as per Don's request [INFO] Titanium SDK version: 1.6.0 (01/24/11\n08:14 e1cb22a).

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:30:31.000+0000", "updated": "2011-04-15T03:30:31.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }