Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2636] Crash on view creation

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:40.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M02
ComponentsiOS
Labelscrash, ios, regression, release-1.6.0, views
ReporterStephen Tramer
AssigneeStephen Tramer
Created2011-04-15T03:25:27.000+0000
Updated2011-04-17T01:59:40.000+0000

Description

Looks like the subviews array is getting mutated while being iterated through when creating many subviews for one view. This causes crashes via NSFastEnumeration.

For the full sample code and trace: HD ticket: http://developer.appcelerator.com/helpdesk/view/61891">http://developer.appcelerator.com/helpdesk/view/61891

Comments

  1. Jeff Haynie 2011-04-15

    (from [192c1e18ba2dc033a44fe82d03abc25b04e54102]) [#2636 state:fixed-in-qa] Force view creation onto main thread when setting size, if necessary. https://github.com/appcelerator/titanium_mobile/commit/192c1e18ba2dc033a44fe82d03abc25b04e54102"> https://github.com/appcelerator/titanium_mobile/commit/192c1e18ba2d...

  2. Thomas Huelbert 2011-04-15

    using linked content crash is resolved, 3.2 ipad 1.6.0.8a96481 and 4.2 sim

JSON Source