{ "id": "63245", "key": "TIMOB-2613", "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": "12093", "description": "", "name": "Sprint 2012-01", "archived": true, "released": true, "releaseDate": "2012-01-15" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-11T22:24:52.000+0000", "created": "2011-04-15T03:24:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_filesystem", "qe-testadded" ], "versions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-11T22:24:52.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}

When accessing the remote portrait url, the low level framework\r\nis not using /data on the local disk but rather always using\r\n/mnt/sdcard (even though there is no SD card mounted) when caching\r\nthe image data.

\r\n

http://developer.appcelerator.com/helpdesk/view/59711

{html}", "attachment": [], "flagged": false, "summary": "framework accessing /mnt/sdcard and fails on devices without sd card.", "creator": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128981", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "{html}

Sample Code

\n
\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\n\nwin.add(Ti.UI.createImageView({\n    top: 0, left: 0, width: 100, height: 50,\n    image: 'http://www.appcelerator.com/wp-content/themes/appcelerator/img/APPC_logo.png'\n}));\n\nwin.open();\n
\n

Steps to Reproduce with Sample

\n
    \n
  1. Run the app. You'll see the Appcelerator logo.
  2. \n
  3. Close the app.
  4. \n
  5. Unmount the SDCard on the simulator / phone.
  6. \n
  7. Run the app. You'll see a white screen.
  8. \n
\n

Log

\n

No exceptions were shown in the trace level log.

\n
\n[TRACE] I/TiRootActivity( 304): (Thread-17) [2,2] eval app.js\n[TRACE] D/KrollContext( 304): (kroll$3) [4,6] Running evaluated script: app://app.js\n[TRACE] I/ActivityManager( 60): Displayed activity com.dawson.playground2/.Playground2Activity: 1541 ms (total 1541 ms)\n
\n

Tested On

\n

Titanium Mobile 1.6.0 (02/01/11 17:45 a632082...)
\nBROKEN on Android Simulator 2.2

{html}", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-04-15T03:24:48.000+0000", "updated": "2011-04-15T03:24:48.000+0000" }, { "id": "164805", "author": { "name": "cintimedia", "key": "cintimedia", "displayName": "Rob Gabbard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is there any update on a fix for this? This is pretty major and I can't release!", "updateAuthor": { "name": "cintimedia", "key": "cintimedia", "displayName": "Rob Gabbard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-01T11:53:05.000+0000", "updated": "2011-09-01T11:53:05.000+0000" }, { "id": "167191", "author": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm suffering hard from exactly this problem, this is pretty huge, please fix this!", "updateAuthor": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-28T08:37:34.000+0000", "updated": "2011-09-28T08:37:34.000+0000" }, { "id": "168098", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar tabGroup = Titanium.UI.createTabGroup();\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 win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nwin1.add(webview);\r\n\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\nvar label2 = 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\nwin2.add(label2);\r\n\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2); \r\n\r\ntabGroup.open();\r\n{code}\r\n\r\nThere are three scenarios that need to be tested for Timob-2613\r\n\r\nWith SD card mounted\r\n\r\n1. Verify that sd card is mounted \r\n2. Launch app and verify the icon appears\r\n3. Confirm that the images are stored in the correct location: /mnt/sdcard/Android/data//cache/_tmp/remote-cache\r\n\r\nWithout SD card\r\n\r\n1. Verify that sd card is unmounted\r\n2. Launch app and verify the icon appears\r\n3. Confirm that the images are stored in the correct location (should be internal storage): /data/data//cache/_tmp/remote-cache\r\n\r\nRemove SD card while app is running\r\n\r\n1. Verify that sd card is mounted \r\n2. Launch app and verify the icon appears\r\n3. Go to settings and unmount sd card\r\n4. Hold home button and go back to your app\r\n5. Click on the second tab, and verify that the image appears", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-05T19:20:38.000+0000", "updated": "2012-01-05T10:21:56.000+0000" }, { "id": "175690", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When testing this with 1.8.0.1RC1 I am not getting the remote-image-cache directory. ", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-10T14:01:48.000+0000", "updated": "2011-12-10T14:01:48.000+0000" }, { "id": "177322", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Michael can you provide more details? Which test specifically did the remote-image-cache directory fail to show in? Can you test this again against the GA? I'm targetting this as tbs-1.8.1 until we can verify if this was fixed or not.", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T13:53:47.000+0000", "updated": "2011-12-27T13:53:47.000+0000" }, { "id": "177724", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "updating sprint till issue can be confirmed or not.", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-12-30T15:23:40.000+0000", "updated": "2011-12-30T15:23:40.000+0000" }, { "id": "178071", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just tested this in the master branch, and confirmed that it is working. Note that I had to test the \"without sd card\" and \"remove sd card while app is running\" scenarios with an emulator since I didn't have read permissions for the data directory on my test phone.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-04T18:10:11.000+0000", "updated": "2012-01-04T18:10:11.000+0000" }, { "id": "178793", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This was confirmed again by Allen, resolving", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-10T16:28:11.000+0000", "updated": "2012-01-10T16:28:11.000+0000" }, { "id": "179920", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.9.0.v20120119110134 with Droid 3 (2.3.4) for Step 2 from Allen, need to ran on Emulator to confirm the files in /data/data/...", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-19T13:40:48.000+0000", "updated": "2012-01-19T13:40:48.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }