hulab / ClusterKit

An iOS map clustering framework targeting MapKit, Google Maps and Mapbox.
MIT License
512 stars 86 forks source link

Crash remove observer mapbox #50

Open jmrborges05 opened 6 years ago

jmrborges05 commented 6 years ago

Hi, I'm using the newer version of cluster kit with mapbox, and when i made zoom in zoom out in map the app crash. The error return is this:

Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <MGLMapView 0x106922a00> for the key path "coordinate" from <CKCluster 0x1135e7640> because it is not registered as an observer.'

Can you help me? Regards

makinggainz commented 5 years ago

Can we get some help here I have similar problem

maxep commented 5 years ago

What is the call stack here? This can happen here but Im wondering why the tree would be deallocated after a zoom 🤔 Do you reset the manager's annotations after a zoom?