VectorKit crash reports with MKMapSnapshotter on iOS

不羁岁月 提交于 2019-12-03 00:54:02
Cris

How repeatable is this? Is the device coming out of sleep mode? What is on the screen when the App goes into the background?

Within the ViewController you can try registering the NSNotification event, UIApplicationWillResignActiveNotification

When the App is going into the background, calling cancel on any MKMapSnapshotter

If that doesn't work, you could attempt more drastic measures, like hiding views, just to identify if they are related to the crash.

I had the same issue with frequent but random crashes ususally looking like:

VectorKit 0x10663fe9 -[VKTileProvider tileSource:didFetchTile:forKey:] + 105

I fixed it by removing this line:

this.mapSnapshotter.Cancel();

So I think Apple has a bug with the MKMapSnapshotter Cancel method.

Hope that's helpful

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!