Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1329] iOS: error "Collection was mutated while being enumerated" on ListView itemclick

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-09-30T04:28:43.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMauro Piccotti
AssigneeShak Hossain
Created2015-07-22T10:41:05.000+0000
Updated2016-03-08T07:37:44.000+0000

Description

A very weird error appeared after I upgraded my app to Titanium 4.1 from 4.0. Itemclick event on some components of a ListView crashes my application, I've finally found the problem and a workround. The problem is difficult to reproduce and i cannot give you my controller/xml/tss because I have too many dependencies, but I reduced the code and I think that with the js and the error who changed the itemclick on ListView perhaps can understand what is the problem. If I set the value property of a textField on my listView passing the value as parameter to the factory application crashes at the popover.show (it always worked before 4.1). If I remove the the parameter in the factory and I set the value after it works.

Attachments

FileDateSize
console.txt2015-07-22T10:32:37.000+00001241
listItemclick.js2015-07-22T10:32:37.000+00001027
screenshot.png2015-07-22T10:32:37.000+000022229

Comments

  1. Mauro Piccotti 2015-07-22

    Doing the cast to String of the value it works, so it seems that now factory doesn't like to receive a number as value (setValue works). 'value' : String(orderRow.getQty())
  2. Mauro Piccotti 2015-07-22

    The same problem if I set the "value" property of a TextField with a number, it works only if I before do the cast to string with String(value).
  3. Shannon Hicks 2015-07-28

    Your problem is likely the same as TIMOB-19249 Hopefully that fix helps you out.

JSON Source