Closed ghost closed 1 year ago
Hi @sunilvignesh, I think it may be difficult for anyone to respond to this unless you can provide more details about what you were trying to do, what happened, and how that differed from what you were expecting to happen. Sample code from the view controller where you set up your map might be helpful. Also, does the crashing happen in the sample app?
Hmm... actually, @incanus, what about MBXRasterTileOverlayRenderer
on threads 4 and 5MBXRasterTileRenderer
on thread 5?
@sunilvignesh Can you give any more info, like mapID
, location, and gestures/API used when you see this? MKOverlayRenderer.setNeedsDisplayInMapRect:zoomScale:
doesn't list any restrictions around what threads it can be called from, and further, your crashed Thread 0
here is the main thread, so I'm not sure what else we could be doing differently.
FWIW, though, I did encounter three other MapKit bugs when working on this feature...
@wsnook @incanus Sorry for being less verbose. I'm not able to reproduce this effectively. Based on issues reported it usually happens when tile is loading and you move out the view on slow networks. We have subclassed mapview which is a tile overlay delegate of itself. We've have long press gesture on the map and crashes happens on diffferent map ids. All updates are done on main thread.
We have subclassed mapview which is a tile overlay delegate of itself.
@sunilvignesh Well, one possibility is that your problem is the result of subclassing MKMapView. In Apple's MKMapView documentation, in the class description at the top of the page (click the "More..." link), it says they don't want you to do that:
Although you should not subclass the MKMapView class itself, you can get information about the map view’s behavior by providing a delegate object.
I encountered this crash too. It happens quite a lot in fact. Usually just after the mapView instantiation. I don't have any special subclass or complicated implementation.
Crashing frequently in 0.7.0