我遇到了一个罕见的罕见崩溃,在我的应用程序中,我使用了许多GMSMarker
,许多GMSPolygon's
并有时冻结了应用程序(例如您使用没有退出的递归)并崩溃了
在代码中,我使用GMSMapView clear()
,更新GMSMarker's
,在updateOverlays中,我将所有GMSPolygon's
设置为GMSMapView
我通过CocoaPods使用GoogleMaps 3.1.0版
这里的踪迹:
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x3fe62e42f0000030
0 AppName 0x100dcfa5c gmscore::vector::GMSMarkupMultiZoomLinesInstance::CreateLines(gmscore::model::PolylineSpan2D const&, std::__1::map<int, unsigned int, std::__1::less<int>, std::__1::allocator<std::__1::pair<int const, unsigned int> > > const&, int, float, CapShape, CapShape) + 292612
1 AppName 0x100dce62c gmscore::vector::GMSMarkupMultiZoomLinesInstance::GenerateLinesAndStyleTable(std::__1::vector<gmscore::vector::MarkupPolyline const, std::__1::allocator<gmscore::vector::MarkupPolyline const> > const&, gmscore::vector::GeometryScaleMode) + 287444
2 AppName 0x100dceff4 gmscore::vector::GMSMarkupMultiZoomLinesInstance::GMSMarkupMultiZoomLinesInstance(GMSPolygon2D*, GMSPolygonDrawStyle*, gmscore::vector::GeometryScaleMode, GMSGLTileResources*, GMSServerResourceManager*, unsigned long, GMSMarkupTapItem*, unsigned int, float, float) + 289948
3 AppName 0x100dd5cf8 gmscore::vector::GMSMarkupPolygonInstance::GMSMarkupPolygonInstance(GMSPolygon2D*, GMSPolygonDrawStyle*, gmscore::vector::GeometryScaleMode, GMSGLTileResources*, GMSServerResourceManager*, unsigned long, GMSMarkupTapItem*, unsigned int) + 317856
4 AppName 0x100dd5dd8 gmscore::vector::GMSMarkupPolygonInstance::GMSMarkupPolygonInstance(GMSPolygon2D*, GMSPolygonDrawStyle*, gmscore::vector::GeometryScaleMode, GMSGLTileResources*, GMSServerResourceManager*, unsigned long, GMSMarkupTapItem*, unsigned int) + 318080
5 AppName 0x100dd7a60 -[GMSMarkupProvider setPolygon:style:tappable:scaleMode:priority:itemID:tapPriority:] + 325384
6 AppName 0x100ad2f00 -[GMSMapView updateOverlay:] + 7832
7 AppName 0x100af0368 -[GMSOverlay setMap:] + 127744
8 AppName 0x10085652c closure #1 in SomeView.updateOverlays() (<compiler-generated>)
有时会崩溃:
Crashed: com.apple.main-thread
0 AppName 0x1015adea4 gmscore::vector::GMSMarkupMultiZoomLinesInstance::GenerateLinesAndStyleTable(std::__1::vector<gmscore::vector::MarkupPolyline const, std::__1::allocator<gmscore::vector::MarkupPolyline const> > const&, gmscore::vector::GeometryScaleMode) + 285516
1 AppName 0x1015aeff4 gmscore::vector::GMSMarkupMultiZoomLinesInstance::GMSMarkupMultiZoomLinesInstance(GMSPolygon2D*, GMSPolygonDrawStyle*, gmscore::vector::GeometryScaleMode, GMSGLTileResources*, GMSServerResourceManager*, unsigned long, GMSMarkupTapItem*, unsigned int, float, float) + 289948
2 AppName 0x1015b5cf8 gmscore::vector::GMSMarkupPolygonInstance::GMSMarkupPolygonInstance(GMSPolygon2D*, GMSPolygonDrawStyle*, gmscore::vector::GeometryScaleMode, GMSGLTileResources*, GMSServerResourceManager*, unsigned long, GMSMarkupTapItem*, unsigned int) + 317856
3 AppName 0x1015b5dd8 gmscore::vector::GMSMarkupPolygonInstance::GMSMarkupPolygonInstance(GMSPolygon2D*, GMSPolygonDrawStyle*, gmscore::vector::GeometryScaleMode, GMSGLTileResources*, GMSServerResourceManager*, unsigned long, GMSMarkupTapItem*, unsigned int) + 318080
4 AppName 0x1015b7a60 -[GMSMarkupProvider setPolygon:style:tappable:scaleMode:priority:itemID:tapPriority:] + 325384
5 AppName 0x1012b2f00 -[GMSMapView updateOverlay:] + 7832
6 AppName 0x1012d0368 -[GMSOverlay setMap:] + 127744
任何人的想法,怎么了?如何解决?