SkImageDecoder::Factory returned null when doing a HTTP Request on Android with Ti3.0.0+ and Alloy

You must Login before you can answer or comment on any questions.

Hi Guys,

I've noticed some strange behavior when making a HTTP Request using HTTPClient on Android. I was previously using the 2.1.4GA SDK, but had to start using 3.0.0GA+ today after I updated Titanium Studio, the Titanium CLI and Alloy this morning. Apparently with this update you can no longer build Alloy apps using 2.1.4GA.

Whenever I make a simple request like the following:

Ti.API.info("################## Clicked Sync ####################");
var client = Ti.Network.createHTTPClient();
client.onload = function(){ alert(this.responseText); client=null; Ti.API.info("################## Loaded ####################"); }
client.open("GET", "http://api.productworld.com/companies/aicoandroid/public_categories/");
Ti.API.info("################## Connection Created and Sending ####################");
client.send();
I'm getting the following in the log cat on my device (ASUS Transformer TF300)
I/TiAPI   (20948):  ################## Clicked Sync ####################
I/TiAPI   (20948):  ################## Connection Created and Sending ####################
D/skia    (20948): --- SkImageDecoder::Factory returned null
D/skia    (20948): --- SkImageDecoder::Factory returned null
I/ALERT   (20948): (KrollRuntimeThread) [4427,24657] [{"catalog_uri": "/catalogs/aicoandroid", "parent": "aicoandroid_publ
ic", "uri": "/categories/aicoandroid_SmokeAlarmsandAccessories", "label": "SmokeAlarmsandAccessories", "catalog": "aicoand
roid", "subcategories_uri": "/categories/aicoandroid_SmokeAlarmsandAccessories/subcategories/", "id": "aicoandroid_SmokeAl
armsandAccessories"}]
W/HardwareRenderer(20948): Attempting to initialize hardware acceleration outside of the main thread, aborting
I/TiAPI   (20948):  ################## Loaded ####################
The above example is only a small request. When I try download a zip file (~20MB) I am getting several lines of the "SkImageDecoder::Factory returned null".

As this behavior is new and unexpected, should I be concerned about it? So far, from what I can tell it hasn't caused anything to crash, although I do have another problem with writing the zip file data to a file, but thats for another thread.

Any help is greatly appreciated.

— asked 1 year ago by Michael Browne
6 Comments
  • Just for help debugging I am using the following:

    Titanium Studio Version: 3.0.2.201302191606
    Titanium CLI Version: 3.0.24
    Alloy Version: 1.0.0
     
    Titanium SDK Version: 2.1.4
    Mobile SDK Modules API Version:2
    Mobile SDK Timestamp: 11/09/12 12:46
    Mobile SDK Build Number: 51f2c64
     
    Titanium SDK Version: 3.0.0
    Mobile SDK Modules API Version:2
    Mobile SDK Timestamp: 12/12/12 18:49
    Mobile SDK Build Number: a5894b3
     
    Titanium SDK Version: 3.0.2
    Mobile SDK Modules API Version:2
    Mobile SDK Timestamp: 02/15/13 19:02
    Mobile SDK Build Number: 5a77fe7

    — commented 1 year ago by Michael Browne

  • I have a similar problem when trying to download a large file, were you able to solve this?

    — commented 1 year ago by Srihari Gottumukkala

  • No. I'm still getting that message. It doesn't seem to be affecting anything so I'm just ignoring it for the moment.

    — commented 1 year ago by Michael Browne

  • Show 3 more comments

5 Answers

I am getting the same error message. And, I tried SDK 3.2 and still no luck. Someone, please reply on how to solve this.

I'm in the same situation and downloading some more or less big json files, the number of lines is...impressive.

Hello, i have the same problem and i am getting images from remote url, i have fixed this with timthumb.php, when i use timthumb.php at my server all my images appear at anroid app. Yes i am still getting the warning about " SkImageDecoder::Factory returned null" but images appears.

You can have more information from this website

http://www.binarymoon.co.uk/2010/08/timthumb/

Your Answer

Think you can help? Login to answer this question!