{ "id": "83938", "key": "AC-2960", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-12-15T13:36:11.000+0000", "created": "2011-12-15T13:03:47.000+0000", "labels": [ "android", "cache", "defect", "imageView", "remote" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:57.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I've seen this crop up now and again: basically I have a table with images being loaded in the rows. Initially this was working. But when I've updated the app and tweaked some unrelated scripts, then go to totally remove the app from the device then re-install it, the remote images fail to load. \r\n\r\nIt appears the remote image cache folder is non-existent (any more):\r\n\r\n{code}\r\n/TiDownloadManager( 4451): (pool-2-thread-1) [65,7571] Exception downloading http://i.ytimg.com/vi/tCdUiL4FpLI/2.jpg\r\nE/TiDownloadManager( 4451): java.io.FileNotFoundException: /mnt/sdcard/Android/data/com.amazingmedia.radio1/cache/_tmp/remote-cache/771b3e39cf992ed3f545043f43fff914ce8071ef.hdr (No such file or directory)\r\nE/TiDownloadManager( 4451): \tat org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)\r\nE/TiDownloadManager( 4451): \tat dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)\r\nE/TiDownloadManager( 4451): \tat java.io.FileOutputStream.(FileOutputStream.java:94)\r\nE/TiDownloadManager( 4451): \tat java.io.FileOutputStream.(FileOutputStream.java:66)\r\nE/TiDownloadManager( 4451): \tat java.io.FileWriter.(FileWriter.java:42)\r\nE/TiDownloadManager( 4451): \tat org.appcelerator.titanium.util.TiResponseCache.put(TiResponseCache.java:374)\r\nE/TiDownloadManager( 4451): \tat org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.maybeCache(HttpURLConnectionImpl.java:331)\r\nE/TiDownloadManager( 4451): \tat org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.retrieveResponse(HttpURLConnectionImpl.java:1043)\r\nE/TiDownloadManager( 4451): \tat org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:512)\r\nE/TiDownloadManager( 4451): \tat java.net.URL.openStream(URL.java:645)\r\nE/TiDownloadManager( 4451): \tat org.appcelerator.titanium.util.TiDownloadManager$DownloadJob.run(TiDownloadManager.java:157)\r\nE/TiDownloadManager( 4451): \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)\r\nE/TiDownloadManager( 4451): \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)\r\nE/TiDownloadManager( 4451): \tat java.lang.Thread.run(Thread.java:1019)\r\nE/TiDownloadManager( 4451): (pool-2-thread-2) [48,7720] Exception downloading http://i.ytimg.com/vi/jk_Kmlj-U7A/2.jpg\r\nE/TiDownloadManager( 4451): java.io.FileNotFoundException: /mnt/sdcard/Android/data/com.amazingmedia.radio1/cache/_tmp/remote-cache/aa30b9ef9b18afe0bb37ec514c85b8ec04a8f8c2.hdr (No such file or directory)\r\nE/TiDownloadManager( 4451): \tat org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)\r\nE/TiDownloadManager( 4451): \tat dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)\r\n{code}\r\n\r\n..etc...\r\n\r\n\r\nThe only way I seem to get this to work is to change the app id and rebuild and install (effectively a new app) - this is not possible, since my app is already in the Android Market, so the app id will need to be the same (com.amazingmedia.radio1) when I do the update. (Only the version code/number changes) \r\n\r\nSo, for some reason, it appears that the remote image cache folder is not being created. \r\n\r\nIf I (try to) navigate in the file manager on the device to {{/mnt/sdcard/Android/data/com.amazingmedia.radio1}} it does not exist.", "attachment": [], "flagged": false, "summary": "Android: remote images not loading as cache folder does not appear to exist", "creator": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "environment": "* Android\r\n* Titanium 1.8RC\r\n* OSX", "comment": { "comments": [ { "id": "176261", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "It now appears that clearing out the build folder and forcing a fresh rebuild actually fixed this. \r\n\r\nVery odd. I'm sure I'd tried that first!\r\n\r\nSorry!\r\n\r\nFeel free to make as closed. ", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-15T13:10:29.000+0000", "updated": "2011-12-15T13:10:29.000+0000" }, { "id": "176262", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Hi Kosso\r\n\r\nI have improved the ticket as much as I can, to bring it in line with the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist], but there is still some missing information which is preventing me from moving it to TIMOB. Would you mind providing more details of the environment and your code (at least relating to the table)?\r\n\r\nAlso, please remember to use the markup syntax provided, as it makes the ticket easier to understand.\r\n\r\nIf you can do so soon, I can move it across tonight.\r\n\r\nMany thanks\r\nPaul", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-15T13:28:12.000+0000", "updated": "2011-12-15T13:28:12.000+0000" }, { "id": "176263", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Kosso, do you really mean that {{/mnt/sdcard/Android/data/com.amazingmedia.radio1}} does not exist, or that {{/mnt/sdcard/Android/data/com.amazingmedia.radio/cache/}} does not exist?", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-15T13:30:37.000+0000", "updated": "2011-12-15T13:30:37.000+0000" }, { "id": "176264", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "See my first comment. \r\n\r\nIt seems that forcing a rebuild by deleting the contents of build/android/* fixed this.\r\n\r\nI thought I'd tried this first. Then did it after submitting this ticket, after spending a few hours trying all sorts of solutions. \r\n\r\nThat did it! ;)\r\n\r\nSorry.", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-15T13:32:48.000+0000", "updated": "2011-12-15T13:38:34.000+0000" }, { "id": "176265", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Don't worry - you can always reopen this if it does in fact seem to be a bug.\r\n\r\nThanks for the update, mate! :)", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-15T13:35:53.000+0000", "updated": "2011-12-15T13:35:53.000+0000" }, { "id": "218325", "author": { "name": "kokina", "key": "kokina", "displayName": "Jorge Carro", "active": true, "timeZone": "Europe/Madrid" }, "body": "I have the same problem and I resolved adding the permission WRITE_EXTERNAL_STORAGE to the AndroidManifest.xml.", "updateAuthor": { "name": "kokina", "key": "kokina", "displayName": "Jorge Carro", "active": true, "timeZone": "Europe/Madrid" }, "created": "2012-09-11T00:52:56.000+0000", "updated": "2012-09-11T00:52:56.000+0000" }, { "id": "286123", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe tested this issue recently and we were unable to reproduce this error wi TiSDK 3.2.0GA. Please check our test code and let us know if you notice any different results. \r\n\r\n\r\nh5. Test Environment \r\n\r\nMAC OSX Version 10.9,\r\nTitanium SDK 3.2.0.GA \r\n Android SDK: 2.3.3 \r\nAndroid Device 4.2.2\r\n\r\n\r\nh5. Test Code\r\n\r\n{code}\r\n var win = Titanium.UI.createWindow({\r\n\tbackgroundColor : '#fff'\r\n});\r\n// Create table view row\r\n \r\nvar table = Ti.UI.createTableView({\r\n\t\r\n});\r\n \r\n \r\n// Create http client\r\n \r\nc = Titanium.Network.createHTTPClient();\r\nc.setTimeout(10000);\r\n\t\r\nc.onload = function() {\r\n\t\tTi.API.info('IN ONLOAD ');\r\n\t\t\txml=this.responseXML.documentElement;\r\n\t\t\tdoc=xml.getElementsByTagName(\"channel\");\r\n\t\t\t\r\n\t for(var a=0;a