sdlin

Custom Tiled Layer Sample has NSGenericException

Discussion created by sdlin on Sep 5, 2011
Latest reply on Sep 7, 2011 by sdlin
2011-09-06 10:45:32.344 zjjt[1627:5f03] *** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <CALayerArray: 0xb226f50> was mutated while being enumerated.(
    "<CALayer: 0x6036f40>",
    "<CALayer: 0x603ab80>",
    "<CALayer: 0x60179d0>",
    "<CALayer: 0x602e030>",
    "<CALayer: 0x601a3a0>",
    "<CALayer: 0x6033f60>",
    "<CALayer: 0x603b660>",
    "<CALayer: 0xb22a550>",
    "<CALayer: 0x6017b50>",
    "<CALayer: 0x6228670>",
    "<CALayer: 0xb222340>",
    "<CALayer: 0x6039a20>",
    "<CALayer: 0x6040900>",
    "<CALayer: 0xb2223e0>",
    "<CALayer: 0x603cc00>",
    "<CALayer: 0x6036cf0>",
    "<CALayer: 0x6039540>",
    "<CALayer: 0x603b260>",
    "<CALayer: 0x6038b50>",
    "<CALayer: 0x6040430>"
)'
*** Call stack at first throw:
(
0   CoreFoundation                      0x01b7a5a9 __exceptionPreprocess + 185
1   libobjc.A.dylib                     0x01cce313 objc_exception_throw + 44
2   CoreFoundation                      0x01b7a069 __NSFastEnumerationMutationHandler + 377
3   UIKit                               0x00bfc75c -[UIView(Hierarchy) subviews] + 331
4   zjjt                                0x0007a0ef -[AGSTiledLayerView mapZoomed:] + 546
5   zjjt                                0x00079ec6 -[AGSTiledLayerView mapIsZooming:] + 116
6   zjjt                                0x0006f67e -[AGSMapView kickOffMapIsZooming:] + 321
7   Foundation                          0x0094294e __NSThreadPerformPerform + 251
8   CoreFoundation                      0x01b5b8ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
9   CoreFoundation                      0x01ab988b __CFRunLoopDoSources0 + 571
10  CoreFoundation                      0x01ab8d86 __CFRunLoopRun + 470
11  CoreFoundation                      0x01ab8840 CFRunLoopRunSpecific + 208
12  CoreFoundation                      0x01ab8761 CFRunLoopRunInMode + 97
13  Foundation                          0x00964115 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 295
14  zjjt                                0x000625c0 -[WorkerThreadUnit workerThreadMainRoutine] + 166
15  Foundation                          0x0092dcf4 -[NSThread main] + 81
16  Foundation                          0x0092dc80 __NSThread__main__ + 1387
17  libSystem.B.dylib                   0x98261819 _pthread_start + 345
18  libSystem.B.dylib                   0x9826169e thread_start + 34
)



how??

Outcomes