VectorKit crash reports with MKMapSnapshotter on iOS

前端 未结 2 1658
被撕碎了的回忆
被撕碎了的回忆 2021-02-04 23:22

I\'m getting different kind of crash reports related to VectorKit and MKMapSnapShotter. Crashes occur pretty random, but it seems like they happen most

相关标签:
2条回答
  • 2021-02-05 00:16

    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.

    0 讨论(0)
  • 2021-02-05 00:19

    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

    0 讨论(0)
提交回复
热议问题