[TIMOB-2825] Android: ResponseCache throws IllegalStateException in Gingerbread
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M05 |
Components | Android |
Labels | android, defect, gingerbread, imagecache, release-1.6.0, reported-1.6.0, responsecache |
Reporter | Marshall Culpepper |
Assignee | Marshall Culpepper |
Created | 2011-04-15T03:30:30.000+0000 |
Updated | 2011-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
(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...
You should be able to reproduce this by running the YQL + Flickr test in KitchenSink -- when the bug is present, the test will crash.
Confirmed that the YQL+Flickr test fails in 2.3 emulator (crashes) in build 4755ac26d (which is before Marshall's commit):
Confirmed that it now succeeds in master HEAD (specifically ba41eca7d8). The crash does not occur.
confirmed fixed on device as per Don's request [INFO] Titanium SDK version: 1.6.0 (01/24/11 08:14 e1cb22a).