Start a new topic
Answered

Crash when making query with KinveyKit 1.40.6

After installing KinveyKit 1.40.6, I receive the following error when making a call to `someLinkedAppdataStore.queryWithQuery:withCompletionBlock:withProgressBlock`:


2016-04-07 18:08:33.810 VStar[4773:41342] *** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <__NSDictionaryM: 0x7fa864012cd0> was mutated while being enumerated.'

*** First throw call stack:

(

0   CoreFoundation                      0x000000010e501d85 __exceptionPreprocess + 165

1   libobjc.A.dylib                     0x00000001102a5deb objc_exception_throw + 48

2   CoreFoundation                      0x000000010e5016e4 __NSFastEnumerationMutationHandler + 132

3   MyApp                               0x000000010c146f09 -[NSDictionary(KinveyAdditions) transformValue:] + 1177

4   MyApp                               0x000000010c1471f3 -[NSDictionary(KinveyAdditions) kcsJSONDataRepresentation:] + 371

5   MyApp                               0x000000010c147354 -[NSDictionary(KinveyAdditions) kcsJSONStringRepresentation:] + 20

6   MyApp                               0x000000010c0d7a32 -[KCSQuery JSONStringRepresentation] + 146

7   MyApp                               0x000000010c0d7b79 -[KCSQuery parameterStringRepresentation] + 169

8   MyApp                               0x000000010c0c511e -[KCSBackgroundAppdataStore doQueryWithQuery:withCompletionBlock:withProgressBlock:] + 670

9   MyApp                               0x000000010c0c5d94 -[KCSBackgroundAppdataStore queryNetwork:withCompletionBlock:withProgressBlock:policy:cacheBlock:] + 228

10  MyApp                               0x000000010c0c5bc4 -[KCSBackgroundAppdataStore queryNetwork:withCompletionBlock:withProgressBlock:policy:] + 164

11  MyApp                               0x000000010c0c67d5 -[KCSBackgroundAppdataStore queryWithQuery:requestConfiguration:withCompletionBlock:withProgressBlock:cachePolicy:] + 853

12  MyApp                               0x000000010c0c7aa3 -[KCSBackgroundAppdataStore queryWithQuery:withCompletionBlock:withProgressBlock:] + 355

13  MyApp                               0x000000010c14e107 __72-[KCSAppdataStore queryWithQuery:withCompletionBlock:withProgressBlock:]_block_invoke.74 + 151

14  Foundation                          0x000000010e899336 __NSOQSchedule_f + 194

15  libdispatch.dylib                   0x0000000110d783eb _dispatch_client_callout + 8

16  libdispatch.dylib                   0x0000000110d5e82c _dispatch_queue_drain + 2215

17  libdispatch.dylib                   0x0000000110d5dd4d _dispatch_queue_invoke + 601

18  libdispatch.dylib                   0x0000000110d60996 _dispatch_root_queue_drain + 1420

19  libdispatch.dylib                   0x0000000110d60405 _dispatch_worker_thread3 + 111

20  libsystem_pthread.dylib             0x00000001110b54de _pthread_wqthread + 1129

21  libsystem_pthread.dylib             0x00000001110b3341 start_wqthread + 13

)

libc++abi.dylib: terminating with uncaught exception of type NSException


I have not changed the query, or the code in the completion handler; the only thing I changed was updating KinveyKit 1.40.5 to 1.40.6. My app is a Swift project, so it's possible it has to do with Objective-C to Swift bridging. Does anyone have any suggestions? Is this a bug in the new version of KinveyKit?


Best Answer

Can you try upgrading to Kinvey iOS SDK 1.40.7 and testing again?


Thanks,

Wani

Kinvey Support


I upgraded to 1.40.7, and everything is working again. Thanks for the quick fix!

Answer

Can you try upgrading to Kinvey iOS SDK 1.40.7 and testing again?


Thanks,

Wani

Kinvey Support


1 person likes this
Login or Signup to post a comment