[TIMOB-18972] iOS: Map when drag and drop app crash with error: Collection <__NSArrayM: 0x7f9d4f3db720> was mutated while being enumerated.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Wilson Liaw |
Assignee | Unknown |
Created | 2015-05-30T07:12:59.000+0000 |
Updated | 2018-02-28T19:55:32.000+0000 |
Description
when drag and drop the pin, set callout bubble content will crash the app with error message: {color:red}Collection <__NSArrayM: 0x7f9d4f3db720> was mutated while being enumerated.{color}
var Map = require('ti.map');
var win = Titanium.UI.createWindow();
var mountainView = Map.createAnnotation({
latitude : 37.390749,
longitude : -122.081651,
title : "Appcelerator Headquarters",
subtitle : 'Mountain View, CA',
pincolor : Map.ANNOTATION_RED,
draggable : true,
myid : 1 // Custom property to uniquely identify this annotation.
});
var mapview = Map.createView({
mapType : Map.NORMAL_TYPE,
region : {
latitude : 37.390749,
longitude : -122.081651,
latitudeDelta : 0.01,
longitudeDelta : 0.01
},
animate : true,
regionFit : true,
userLocation : true,
annotations : [mountainView]
});
win.add(mapview);
// Handle click events on any annotations on this map.
mapview.addEventListener('click', function(evt) {
if (evt.clicksource == 'pin') {
mountainView.setTitle('Appcelerator Headquarters');
}
});
win.open();
Thanks
Attachments
File | Date | Size |
---|---|---|
app.js | 2015-05-30T07:10:14.000+0000 | 903 |
I am also getting the same issue Operating System Name = Mac OS X Version = 10.11.3 Architecture = 64bit CPUs = 4 Memory = 8589934592 Node.js Node.js Version = 0.12.7 npm Version = 2.11.3 Titanium CLI CLI Version = 5.0.6 Titanium SDK SDK Version = 5.2.0.GA SDK Path = /Users/user1/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.GA Target Platform = iphone ------------------------------------------------------------------------------------------------------------------------------------------------------------------ [INFO] : This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release. [INFO] : Stack:( [INFO] : 0 CoreFoundation 0x000000018162d918