Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2326] Multiple createLabel() calls inside ScrollableView freeze/crash

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-07-20T14:47:00.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterIngmar Koecher
AssigneeNeeraj Gupta
Created2011-04-15T03:16:47.000+0000
Updated2017-03-09T23:02:53.000+0000

Description

I am attaching a sample project that should be reproducible. Simply use the attached files, app.js and scrollview.js.

This will create a scrollable view, with every page having a title, Page [num]. When started, the app will show page 2, and as you scroll to the right, new pages will be added dynamically.

Keep scrolling to the right in a swift pace, and the application will eventually freeze or crash. I usually can't get past page 10, though it should go up to 29.

With the 1.4.x SDK, the application freezes, with the latest 1.5.0 it will crash.

iPhone SDK is 4.1.

I have not run this application on the physical phone yet, only in the simulator.

Attachments

FileDateSize
app.js2011-04-15T03:16:47.000+00001213
scrollview.js2011-04-15T03:16:47.000+00002331

Comments

  1. Vishal Duggal 2012-07-20

    app bug in scrollview.js. Modify lines 60 thru 66 as follows
       var maxPages = 29;
       
       // Create all empty views
       for (var i = 0; i <= maxPages; i++)
       {
       	scrollViews[i] = Titanium.UI.createView({backgroundColor:'gray'});
       }
       
  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source