Hello Apple Devs,
I have more then 34 crashes on iOS 11 on iPad and iPhone devices. It's not reproduceble on the prev versions.
This crash related to the MapKit library when presenting my custom tiles.
I have a code with MKTileOverlay class and overrided func "loadTile(at path: MKTileOverlayPath, result: @escaping (Data?, Error?) -> Void)" which returning a tile in an async request from the server. I don't process any arrays and don't know how this crash can happen. It looks like the same issue that the MapKit has with rendering in iOS 11.
Please help with any advice.
Fatal Exception: NSRangeException
0 CoreFoundation 0x187403d38 __exceptionPreprocess
1 libobjc.A.dylib 0x186918528 objc_exception_throw
2 CoreFoundation 0x18739cc44 _CFArgv
3 CoreFoundation 0x18738a9b0 -[__NSArrayM removeObjectsInRange:]
4 MapKit 0x1978c9ac8 -[MKTileOverlayRequester _doWorkOrFinish]
5 MapKit 0x1978ca0e8 -[MKTileOverlayRequester _operationFailed:error:]
6 MapKit 0x1978cac84 __33-[MKTileOverlayRequesterOp start]_block_invoke_3
7 libdispatch.dylib 0x186d89088 _dispatch_call_block_and_release
8 libdispatch.dylib 0x186d89048 _dispatch_client_callout
9 libdispatch.dylib 0x186d92e48 _dispatch_queue_serial_drain$VARIANT$mp
10 libdispatch.dylib 0x186d937d8 _dispatch_queue_invoke$VARIANT$mp
11 libdispatch.dylib 0x186d94200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp
12 libdispatch.dylib 0x186d9c4a0 _dispatch_workloop_worker_thread$VARIANT$mp
13 libsystem_pthread.dylib 0x18702efe0 _pthread_wqthread
14 libsystem_pthread.dylib 0x18702ec30 start_wqthread