Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

1.4 sdk is so unstable?

I update the sdk from 1.32 to 1.4, and recompile my application that run good in 1.32, I got some problems:

  1. xhr request sometimes good, sametimes fail return result.
  2. crash very often, no error report.

anybody have the same problem?

— asked August 2nd 2010 by lan sheng
  • 1.4
  • sdk
0 Comments

7 Answers

  • Hi,

    Was wondering why my xhr request was always failing. After reading your post tried compiling with 1.3.2 and it worked like a charm. So I can only agree with you. For me xhr requests are bugged with both iOS SDK 3.2 and 4.0.
    Haven't tried with android.

    — answered August 2nd 2010 by Ferdinando Brito
    permalink
    0 Comments
  • My XHR requests work properly (on the client end). Make sure you have implemented them correctly and are checking the status of the response.

    Look at the KitchenSink.

    — answered August 2nd 2010 by John Welch
    permalink
    0 Comments
  • Everything fine here, actually its better than ever.

    — answered August 2nd 2010 by Sj Singh
    permalink
    0 Comments
  • I had some problems initially but now they are ok. Just need the right combinations of SDKs, OS, etc.

    For me, they are:

    OSX 1.6.4
    latest xcode
    SDK 3.2 and 4.0
    Ti Dev 1.2.1
    Ti Mobile SDK 1.4.0

    So far, so good.

    PS: there is a logger.py issue; read up on the dev blog

    — answered August 3rd 2010 by Peter Lum
    permalink
    0 Comments
  • Fine here too.
    OSX 10.6.4 latest xcode SDK 3.2 and 4.0 Ti Dev 1.2.1 Ti Mobile SDK 1.4.0

    No issues at all and we have 4 completed apps using Ti. All updated and compiled under Ti 1.4.

    I agree that it's better than any previous version to date.

    — answered August 3rd 2010 by John Lullie
    permalink
    0 Comments
  • I also prefer to stick to 1.3.2.
    My app sometimes crashes.

    — answered August 4th 2010 by Johan Pyfferoen
    permalink
    0 Comments
  • I am having similar situation as the poster.
    I created a new project using Ti SDK 1.4.0, and iPhone SDK 1.4.0, then it creates the boiler plate project.

    var win1 = Titanium.UI.createWindow({  
        url: 'win1.js',
        backgroundColor:'#fff'
    });
    var tab1 = Titanium.UI.createTab({  
        icon:'KS_nav_views.png',
        title:'Tab1',
        window:win1
    });
    

    I then copied and pasted part of xhr_utf8.js (line 78 ~ line 89) to one of the tab of the boiler plate project.

    var xhr = Titanium.Network.createHTTPClient();
    xhr.onload = function()
    {
        Ti.API.info('in utf-8 onload for GET');
        l2.value = this.responseText;
    };
    xhr.onerror = function()
    {
        Ti.API.info('in utf-8 error for GET');
    };
    xhr.open("GET","http://api.appcelerator.net/p/v1/echo");
    xhr.send({"a":"€??"});
    

    But XHR does not run, even the Ti.API.info did not print out any information to the Ti Developer window.

    If I use iPhone SDK 1.3.2, then all goes well.

    — answered August 7th 2010 by HC Yen
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.