{ "id": "82386", "key": "TIMOB-6029", "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": [], "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": "2012-03-11T22:26:00.000+0000", "created": "2011-11-05T13:34:51.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-11T22:26:00.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": "After the cleanup timer executes (around 1 minute), and cached images will be cleared out and subsequent image loads fail with exceptions. ", "attachment": [], "flagged": false, "summary": "Android: Response cache doesn't request images after they are cleaned", "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": "177461", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I could not reproduce this in master. I had to remove the check for max_cache size, so it cleans the directory regardless of the cache size (TiResponseCache.java line 93). I ran the following app.js: \r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar button = Titanium.UI.createButton({\r\n title:'open new window'\r\n});\r\n\r\nvar webview = Ti.UI.createImageView({\r\n top: 0, left: 0, width: 100, height: 50,\r\n image: 'http://www.appcelerator.com/wp-content/themes/appcelerator/img/APPC_logo.png'\r\n});\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nwin2.add(webview);\r\n\r\nbutton.addEventListener('click', function(){\r\n win2.open();\r\n});\r\n\r\nvar button2 = Titanium.UI.createButton({\r\n title:'close window'\r\n});\r\n\r\nbutton2.addEventListener('click', function(){\r\n win2.close();\r\n});\r\n\r\nwin2.add(button2);\r\n\r\nwin1.add(button);\r\nwin1.open();\r\n{code}\r\n\r\n1. Launch the app\r\n2. click on the button to open a new window.\r\n3. Use DDMS to browse the cache directory /mnt/sdcard/Android/data//cache/_tmp/remote-image-cache\r\n4. Wait for the cache directory to clear\r\n5. Close the window by clicking the button\r\n6. Reopen the window by clicking the button\r\n\r\nThe cache directory re-populates after the window is reopened.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-28T14:18:01.000+0000", "updated": "2011-12-28T14:18:01.000+0000" }, { "id": "180466", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing this issue\r\n\r\nTested with Allens test steps to reproduce and verified expected behavior\r\n\r\n*Note had to edit TiResponseCache.java to repro and scons", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-24T14:49:38.000+0000", "updated": "2012-01-24T14:49:38.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }