Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2825] Android: ResponseCache throws IllegalStateException in Gingerbread

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:11.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M05
ComponentsAndroid
Labelsandroid, defect, gingerbread, imagecache, release-1.6.0, reported-1.6.0, responsecache
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T03:30:30.000+0000
Updated2011-04-17T02:00:11.000+0000

Description

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

Comments

  1. Marshall Culpepper 2011-04-15

    (from [d5fb1399d783873d8415d9b9a4104a820f198d5b]) lots of speedups and fixes for cache and images: - TiResponseCache now works in Gingerbread - added a new TiDownloadManager class for managing multiple queued network downloads (works in conjunction with TiResponseCache) - ImageViews will look at their source before re-fetching the image when it's changed from processProperties (this happens usually from TableView) - We no longer check for 9-patch PNGs when fetching remote images [#2825 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/d5fb1399d783873d8415d9b9a4104a820f198d5b"> https://github.com/appcelerator/titanium_mobile/commit/d5fb1399d783...

  2. Marshall Culpepper 2011-04-15

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

  3. Bill Dawson 2011-04-15

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

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

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

  4. Thomas Huelbert 2011-04-15

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

JSON Source