Titanium Community Questions & Answer Archive

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

iPad crash or how to catch this

Hi, first of all Titanium is a wonderful software, thank You for it.

This shall be a small app for our customer, some kind of eBook, he wants just to swipe through pages.
So nothing really special about this, working perfectly in iPad simulator, but crashing after random swipe actions.
Somebody an idea ?

Thanks

Now shortly to my problem:

var scrollData = [];
for (i=0; i<=199; i++) {        
    var myV = Titanium.UI.createImageView({
        top: 0,
        height:fullSight,
        width: 1024,
        image: 'book/' + bigChapter[i] + '.jpg'
    });
    checkSpecialPage(i);
     v.push(myV);
     scrollData.push(v[i]);    
}
var allChapters = v;

var view1 = Titanium.UI.createScrollableView({
    views: scrollData,
    backgroundColor:'#FFF',
    showPagingControl:false,
    pagingControlHeight:30,
    maxZoomScale:2.0,
    currentPage:0,
        showVerticalScrollIndicator:false,
        showHorizontalScrollIndicator:false
});
controllerWindow.add(view1);
— asked September 3rd 2010 by Martin von Wysiecki
  • crash
  • ipad
  • scrollableview
0 Comments

4 Answers

  • Accepted Answer

    So it's clear

    You have 200 of 1024px wide images that you load on the device, which is bad. I guess you need to find a way to add/close the images one by one, or at least less images at once.

    — answered September 3rd 2010 by Dan Tamas
    permalink
    0 Comments
  • Run the application from xcode on the ipad and try to see on the gdb debugger console where is crashing.

    — answered September 3rd 2010 by Dan Tamas
    permalink
    0 Comments
  • Thanks, just done. It is generating low memory crashes:

    Incident Identifier: A7B96C02-7D35-442A-B5F0-5642BAED85E6
    CrashReporter Key: e41713517d01fbe467602447e2bc331d7cc1c542
    OS Version: iPhone OS 3.2.2 (7B500)
    Date: 2010-09-03 15:33:59 +0200

    Free pages: 694
    Wired pages: 13762
    Purgeable pages: 0
    Largest process: The Pool

    Processes
    Name UUID Count resident pages
    The Pool <87aa3682a1b99e441a29f9723232d99e> 41248 (jettisoned) (active)
    notification_pro <4c9a7ee0a5bbe160465991228f2d2f2e> 68
    syslog_relay <1c73f841b191556b6911bc6b4736b50f> 67
    mediaserverd <2eda3ce5e1c8a1a4d7b8271cef1f2d12> 320
    SpringBoard <745085d9a24a8529f0ceb6c33d766873> 3552 (active)
    notification_pro <4c9a7ee0a5bbe160465991228f2d2f2e> 66
    afcd <ddda2413b8953e5c56721dfe05a82d78> 71
    ptpd <e3f855cfd629600a4812e7e90c77667e> 167
    syslogd <6990426209e51a8ee13c91cd1a050a2e> 77
    lsd <eb108595d2a932a8d244d1ab7386cd0f> 206
    notifyd <74e4a487a89c31f68917b22605baf6c6> 457
    BTServer <21dd98c0ab29b910cd51cb703a9cb9b9> 111
    CommCenter <e4b9cc04f083f22232c92ee1363fe669> 172
    accessoryd <59ca0ba146c28bf5c8ab6e3d2e81bbad> 103
    configd <36001fe17103f8af6d3b525cb23ac8a0> 339
    fairplayd.K48 <2d997ffca1a568f9c5400ac32d8f0782> 89
    locationd <60fd4d90fec18a76ffc0b8a45351fe54> 624
    mDNSResponder <a6f01dd493e3d2bfe318f5d44f8508e2> 128
    lockdownd <378f09833cdc57b1b60e42d79c355938> 527
    MobileStorageMou <7f2cd9f90fab302a42a63460b1c4d775> 69
    launchd <880e75c2db9c0f670516c58935e89b58> 90

    End

    — answered September 3rd 2010 by Martin von Wysiecki
    permalink
    0 Comments
  • i have also a menu in which i jump to another pages in the ScrollableView by
    view1.currentPage=imy;

    may this be the cause, if so, how can i do it other/better way ?

    THX

    — answered September 3rd 2010 by Martin von Wysiecki
    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.