{ "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,
\nAfter 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.
\nI 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.
\nI 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
It looks like other users are seeing it too:
\n\nhttp://developer.appcelerator.com/question/91101/imageview-problem-...
Not sure if this is the proper venue, but ...
\nI 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.
\nFor 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.
\nSo I'm not sure if this is really related or not - but I wanted\nto mention it ...
Updating state to reflect current status.
Got a pro client asking for this fix as well.
\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
\nTitanium Mobile 1.6.0 pulled January 8th, 2011
\nWORKS on iPhone Simulator 4.2
\nBROKEN on Android Simulator 2.2
This one is preventing me from taking my android app live. I'd\nalso like to see this bug fixed soon if possible.
\nThis question in the Q&A confirms it's not working for\n1.6.0, although user claims 1.5.1 works OK.
Verified, working in 1.5.1, thanks for the tip hal.
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.
(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...
[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.
Works FINE on HTC Desire on both 1.5.2 and 1.6.0 RC1
\nHTC Desire HD:
\nSDK 1.5.2
\nFatal Exception on HTC Desire HD (App closes and Error Closes) on\nloading remote image
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)
Further Information regarding Failure On HTC Desire HD\nDevice:
\nTitanium SDK:
\nversion=1.6.0
\ntimestamp=02/18/11 15:10
\ngithash=30eec59
The following trace shows that the device cannot find the image.\nPerhaps the device is trying to find the URL locally ?
\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
\nI have tested the above URL using the devices browser and it\nloads up there fine.
\nIt 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.
Chris, it's best to report the issue you are encountering via\nhelpdesk or Q&A. Thanks!
Is this Problem fixed? I am getting the same error. Please\nprovide me a fix for that.
Is this Problem fixed? I am getting the same error. Please\nprovide me a fix for that.
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.
\nStating which version of Titanium SDK and android SDK you are\nusing would be helpful!
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