{ "id": "63239", "key": "TIMOB-2607", "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": "11238", "name": "Release 1.6.0 M05", "archived": true, "released": true, "releaseDate": "2011-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:35.000+0000", "created": "2011-04-15T03:24:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "imageview", "regression", "release-1.6.0", "reported-1.5.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:35.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}

Hello,

\n

After upgrading to the Titanium 1.5 and 1.5.1 SDK, my\napplication can no longer load remote images via an ImageView on\nAndroid. It causes a force close. If I build with the previous\n1.4.2 SDK the problem goes away, so I'm pretty sure it's a\nregression in the new SDK.

\n

I built a test case that seems to demonstrate the problem. Use\nthe attached app.js in a new project and deploy the attached image\nto a local server, then update line 34 in the attached app.js to\nuse the URL to the image. When you run the project (I used the 2.3\nemulator) it will fail sometime after it loads the image; if you\nuse the 1.4.2 SDK it won't fail.

\n

I hope the test case helps track down the issue. This is a show\nstopper for my application. Thank you so much for all the great\nwork on Appcelerator Titanium!!

\n

-Ryan

{html}", "attachment": [ { "id": "18175", "filename": "app.js", "author": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:34.000+0000", "size": 2025, "mimeType": "application/x-javascript" }, { "id": "18174", "filename": "login-photo.jpg", "author": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:34.000+0000", "size": 31931, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: ImageView Fails When Loading Remote Image", "creator": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128955", "author": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

It looks like other users are seeing it too:

\n

\nhttp://developer.appcelerator.com/question/91101/imageview-problem-...

{html}", "updateAuthor": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:34.000+0000", "updated": "2011-04-15T03:24:34.000+0000" }, { "id": "128956", "author": { "name": "richardbrents", "key": "richardbrents", "displayName": "Richard Brents", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Not sure if this is the proper venue, but ...

\n

I reported a similar problem via the forums (http://developer.appcelerator.com/question/91101/imageview-problem-....\nOriginally I thought my problem was the same as this ticket, but\nnow I'm not so sure.

\n

For me, I can make the remote image fail every time if the phone\n(Android, 2.2) is plugged in via the USB port for either USB\nMass Storage or Charge Only modes. But if the phone\nis plugged in via PC Mode or Windows Media Syne\nmodes, the remote image load works flawlessly every time.

\n

So I'm not sure if this is really related or not - but I wanted\nto mention it ...

{html}", "updateAuthor": { "name": "richardbrents", "key": "richardbrents", "displayName": "Richard Brents", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:35.000+0000", "updated": "2011-04-15T03:24:35.000+0000" }, { "id": "128957", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Updating state to reflect current status.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:35.000+0000", "updated": "2011-04-15T03:24:35.000+0000" }, { "id": "128958", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "{html}

Got a pro client asking for this fix as well.

\n

Simpler Sample Code

\n
\nvar win = Ti.UI.createWindow({title: 'Broken Image on Android', backgroundColor: '#fff'});\nwin.add(Titanium.UI.createImageView({\n    top: 0, left: 0,\n    height: 48, width: 320,\n    canScale: true,\n    image: 'http://ads.farmcentric.com/banners/1/2010/PioneerHBus_rgb_320x48.jpg'\n}));\nwin.open();\n
\n

Tested On

\n

Titanium Mobile 1.6.0 pulled January 8th, 2011
\nWORKS on iPhone Simulator 4.2
\nBROKEN on Android Simulator 2.2

\n

Associated Helpdesk Ticket

\n

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

{html}", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-04-15T03:24:36.000+0000", "updated": "2011-04-15T03:24:36.000+0000" }, { "id": "128959", "author": { "name": "anthonywebb", "key": "anthonywebb", "displayName": "Anthony Webb", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This one is preventing me from taking my android app live. I'd\nalso like to see this bug fixed soon if possible.

{html}", "updateAuthor": { "name": "anthonywebb", "key": "anthonywebb", "displayName": "Anthony Webb", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:36.000+0000", "updated": "2011-04-15T03:24:36.000+0000" }, { "id": "128960", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

\nThis question in the Q&A confirms it's not working for\n1.6.0, although user claims 1.5.1 works OK.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:36.000+0000", "updated": "2011-04-15T03:24:36.000+0000" }, { "id": "128961", "author": { "name": "anthonywebb", "key": "anthonywebb", "displayName": "Anthony Webb", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Verified, working in 1.5.1, thanks for the tip hal.

{html}", "updateAuthor": { "name": "anthonywebb", "key": "anthonywebb", "displayName": "Anthony Webb", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:36.000+0000", "updated": "2011-04-15T03:24:36.000+0000" }, { "id": "128962", "author": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

request from two pro seats is to include this fix on the 1.5.x\nbranch, but it looks like it might be there already? Should verify\nbefore closing ticket in any case.

{html}", "updateAuthor": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:36.000+0000", "updated": "2011-04-15T03:24:36.000+0000" }, { "id": "128963", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [608046073c1c29c58a000397404c44897c4c7d17])\n[#2607 state:fixed-in-qa] reworked background\ndownloading to be less complex and to also correctly handle already\ncached images. \nhttps://github.com/appcelerator/titanium_mobile/commit/608046073c1c...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:37.000+0000", "updated": "2011-04-15T03:24:37.000+0000" }, { "id": "128964", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

[INFO] Titanium SDK version: 1.6.0 (01/14/11\n10:32 43fff62) g1 (1.6) droid1 (2.2.1) sim 2.1. as per Kevin,\nchecked [INFO] Titanium SDK version: 1.5.2 (01/14/11\n10:34 8e8e048) and saw no issue.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:37.000+0000", "updated": "2011-04-15T03:24:37.000+0000" }, { "id": "128965", "author": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Works FINE on HTC Desire on both 1.5.2 and 1.6.0 RC1

\n

HTC Desire HD:

\n

SDK 1.5.2
\nFatal Exception on HTC Desire HD (App closes and Error Closes) on\nloading remote image

\n

SDK 1.6.0 RC1
\nNo Exception but image does not load on HTC Desire HD on 1.6.0\n(local images load ok)

{html}", "updateAuthor": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:37.000+0000", "updated": "2011-04-15T03:24:37.000+0000" }, { "id": "128966", "author": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Further Information regarding Failure On HTC Desire HD\nDevice:

\n

Titanium SDK:
\nversion=1.6.0
\ntimestamp=02/18/11 15:10
\ngithash=30eec59

\n

The following trace shows that the device cannot find the image.\nPerhaps the device is trying to find the URL locally ?

\n
\nI/TiAPI   (28702): (kroll$6: app://main.js) [2,376412] album URL: http://userserve-ak.last.fm/serve/300x300/43954033.jpg\nI/TiFileHlpr(28702): (main) [122,376534] http://userserve-ak.last.fm/serve/300x300/43954033.jpg not found.\nI/TiFileHlpr(28702): (main) [130,376664] http://userserve-ak.last.fm/serve/300x300/43954033.jpg not found.\nI/TiFileHlpr(28702): (main) [134,376798] http://userserve-ak.last.fm/serve/300x300/43954033.jpg not found.\nI/TiFileHlpr(28702): (main) [135,376933] http://userserve-ak.last.fm/serve/300x300/43954033.jpg not found.\n
\n

I have tested the above URL using the devices browser and it\nloads up there fine.

\n

It makes no difference how the device is connected to the\ninternet, via Mobile Network or WiFi has the same result where the\nHTC Desire has no problem.

{html}", "updateAuthor": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:38.000+0000", "updated": "2011-04-15T03:24:38.000+0000" }, { "id": "128967", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Chris, it's best to report the issue you are encountering via\nhelpdesk or Q&A. Thanks!

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:38.000+0000", "updated": "2011-04-15T03:24:38.000+0000" }, { "id": "128968", "author": { "name": "radhakrishnan", "key": "radhakrishnan", "displayName": "Radhakrishnan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Is this Problem fixed? I am getting the same error. Please\nprovide me a fix for that.

{html}", "updateAuthor": { "name": "radhakrishnan", "key": "radhakrishnan", "displayName": "Radhakrishnan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:39.000+0000", "updated": "2011-04-15T03:24:39.000+0000" }, { "id": "128969", "author": { "name": "krishnan", "key": "krishnan", "displayName": "krishnan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Is this Problem fixed? I am getting the same error. Please\nprovide me a fix for that.

{html}", "updateAuthor": { "name": "krishnan", "key": "krishnan", "displayName": "krishnan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:39.000+0000", "updated": "2011-04-15T03:24:39.000+0000" }, { "id": "128970", "author": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

In the 1.6.0 Release this is working for me. The issue with the\nHTC Desire HD I was having above was due to a dodgy SD Card, since\nthe images are cached to the SD Card.

\n

Stating which version of Titanium SDK and android SDK you are\nusing would be helpful!

{html}", "updateAuthor": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:39.000+0000", "updated": "2011-04-15T03:24:39.000+0000" }, { "id": "128971", "author": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Also, Sorry I have to make another post because I cant edit my\nlast post, like Thomas said to me its probably best to get support\nfor your problem on the helpdesk, or there is a relevant ticket in\nthe community Q&Ahere

{html}", "updateAuthor": { "name": "chrisbrooks", "key": "chrisbrooks", "displayName": "Chris Brooks", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:39.000+0000", "updated": "2011-04-15T03:24:39.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }