Occasional crash: "operation is already enqueued on queue"

1628
5
06-03-2011 10:23 PM
DrewCrawford
New Contributor
I'm getting the following crash occasionally.  It is difficult to reproduce.

2011-06-04 01:18:48.369 semaps[38788:7f07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSOperationQueue addOperation:]: operation is already enqueued on a queue'
*** Call stack at first throw:
(
 0   CoreFoundation                      0x01cc7be9 __exceptionPreprocess + 185
 1   libobjc.A.dylib                     0x01e1c5c2 objc_exception_throw + 47
 2   CoreFoundation                      0x01c80628 +[NSException raise:format:arguments:] + 136
 3   CoreFoundation                      0x01c8059a +[NSException raise:format:] + 58
 4   Foundation                          0x00ef7288 __addOperations + 1169
 5   semaps                              0x000a088d -[AGSGraphicsLayer ags_drawGraphicsForParams:] + 531
 6   semaps                              0x000a178a -[AGSGraphicsLayer exportMapImage:] + 258
 7   semaps                              0x000d8f70 -[AGSDynamicLayerView draw:] + 1143
 8   semaps                              0x000d89d9 -[AGSDynamicLayerView mapZoomed:] + 40
 9   Foundation                          0x00ee69a6 __NSThreadPerformPerform + 251
 10  CoreFoundation                      0x01ca901f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
 11  CoreFoundation                      0x01c0728b __CFRunLoopDoSources0 + 571
 12  CoreFoundation                      0x01c06786 __CFRunLoopRun + 470
 13  CoreFoundation                      0x01c06240 CFRunLoopRunSpecific + 208
 14  CoreFoundation                      0x01c06161 CFRunLoopRunInMode + 97
 15  Foundation                          0x00f08175 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 295
 16  semaps                              0x000c9312 -[WorkerThreadUnit workerThreadMainRoutine] + 166
 17  Foundation                          0x00ed1d4c -[NSThread main] + 81
 18  Foundation                          0x00ed1cd8 __NSThread__main__ + 1387
 19  libSystem.B.dylib                   0x939a57fd _pthread_start + 345
 20  libSystem.B.dylib                   0x939a5682 thread_start + 34
)
terminate called after throwing an instance of 'NSException'
0 Kudos
5 Replies
yaoyongping
New Contributor
I have encountered to this problem
0 Kudos
NimeshJarecha
Esri Regular Contributor
Drew and MissnaYaoyp,

Did you see this crash while running app in Simulator or Device?

Regards,
Nimesh
0 Kudos
ChrisWalker2
New Contributor
I haven't gotten that exact crash, but when testing on the new and upcoming iOS(V) i get crashes when i zoom out very quickly, usually with
*** AGSTileRequestOperation 0x6d5e090 went isFinished=YES without being started by the queue it is in
0 Kudos
NimeshJarecha
Esri Regular Contributor
Chris,

Thank you for reporting. We'll address all issues of iOS 5 once it's final version is released.

Thanks!

Regards,
Nimesh
0 Kudos
ChrisMahlke
New Contributor II
I'm also getting the error, but only when I run the app in the simulator.  I am using the iPad 5.0 Simulator, iOS 5.0, ESRI iOS 2.0 API.

I get the following message when I try to zoom in too quickly:

2011-07-18 10:26:38.285 BioMosaic[1349:6703] *** AGSTileRequestOperation 0x8168e20 went isFinished=YES without being started by the queue it is in
2011-07-18 10:26:38.292 BioMosaic[1349:6703] *** AGSTileRequestOperation 0x816c220 went isFinished=YES without being started by the queue it is in
2011-07-18 10:26:38.293 BioMosaic[1349:6703] *** AGSTileRequestOperation 0x816f760 went isFinished=YES without being started by the queue it is in
2011-07-18 10:26:38.295 BioMosaic[1349:6703] *** AGSTileRequestOperation 0x816fc70 went isFinished=YES without being started by the queue it is in
2011-07-18 10:26:38.296 BioMosaic[1349:6703] *** AGSTileRequestOperation 0x8170180 went isFinished=YES without being started by the queue it is in
2011-07-18 10:26:38.297 BioMosaic[1349:6703] *** AGSTileRequestOperation 0x8170690 went isFinished=YES without being started by the queue it is in
0 Kudos