2013-06-05 18 views
9

Uso un MKMapView per visualizzare circa 700 annotazioni in totale. Il mio problema è che a volte ho un enorme registro come questo:Errore strano: Impossibile eseguire il rendering del poligono

2013-06-05 17:32:12.395 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 324): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 480): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 1818): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 234): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 90): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 174): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 162): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 186): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 114): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 120): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 78): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 126): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 192): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 156): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 84): featureID: 1547811419 key: 73.35.7 (512) 
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512) 

Sono stato in grado di trovare qualcosa per quanto riguarda l'errore, e sono completamente sconcertato. Non ci sono vere discrepanze visive che io possa vedere, e non ci sono altri errori. Qualcuno ha idea di cosa si tratta?

+3

Avete mai trovato una soluzione per questo? Sto avendo lo stesso problema adesso – gasparuff

+0

@gasparuff Il progetto su cui si stava lavorando è stato completato mesi fa, ma per quanto posso ricordare alla fine ho solo accettato gli errori come un errore dal sistema di controllo degli errori di mele. IIRC Occasionalmente i messaggi di errore che si suppone si verifichi solo nei propri registri di debug finiscono nei build di distribuzione. Non sono riuscito a trovare alcuna causa per questo errore e ho finito per sperare che tutto ciò che stava accadendo fosse stato risolto dal sistema allo stesso tempo. – Tapppi

+0

possibile duplicato di [Can not render polygon (non può riservare indicies: XX): featureID: X key: XXXX] (http://stackoverflow.com/questions/23966911/cant-render-polygon-cant-reserve- indicies-xx-featureid-x-key-xxxx) – Daniel

risposta

3
I also had the same problem once in iOS6.1. 
I was zooming out the map based on a coordinate which was (0.00000,0.00000). 
In my code:- 
CLLocationCoordinate2D theCoordinate ; 
    theCoordinate.latitude = [[self.dicOfMAP objectForKey:@"latitude"] doubleValue]; 
    theCoordinate.longitude = [[self.dicOfMAP objectForKey:@"longitude"] doubleValue]; 

    self.pointAnnotation.coordinate = theCoordinate; 

the value of theCoordinate was(0.0,0.0). 
So check the value of coordinate. 
+0

Purtroppo non ho tempo per testare questa soluzione, ma sospetto che questa sia la causa, come è stato originariamente risposto [qui] (http: // stackoverflow.com/a/23969763/1603234) – Tapppi

Problemi correlati