Start a new topic

Reachability exception in the iOS SDK

The KCSUser -checkUsername method throws an uncaught exception if the device is in airplane mode.



Most of the other methods seem to be working fine if the device is in airplane mode and correctly return an NSError object.

Found the bug, we'll fix it in the next release.
Not sure if this is readable..



* thread #12: tid = 0x132217, 0x0000000191f8658c libsystem_kernel.dylib`__pthread_kill + 8, queue = 'com.apple.root.default-priority', stop reason = signal SIGABRT

frame #0: 0x0000000191f8658c libsystem_kernel.dylib`__pthread_kill + 8

frame #1: 0x000000019200916c libsystem_pthread.dylib`pthread_kill + 104

frame #2: 0x0000000191f1a808 libsystem_c.dylib`abort + 112

frame #3: 0x0000000191140994 libc++abi.dylib`abort_message + 88

frame #4: 0x000000019115dc2c libc++abi.dylib`default_terminate_handler() + 300

frame #5: 0x00000001918984d4 libobjc.A.dylib`_objc_terminate() + 128

frame #6: 0x000000019115b168 libc++abi.dylib`std::__terminate(void (*)()) + 16

frame #7: 0x000000019115aa80 libc++abi.dylib`__cxa_throw + 136

frame #8: 0x0000000191898318 libobjc.A.dylib`objc_exception_throw + 344

frame #9: 0x0000000185393c04 CoreFoundation`-[NSObject(NSObject) doesNotRecognizeSelector:] + 220

frame #10: 0x0000000185391930 CoreFoundation`___forwarding___ + 912

frame #11: 0x00000001852b15dc CoreFoundation`_CF_forwarding_prep_0 + 92

* frame #12: 0x0000000100169020 Glamsquad`__56+[KCSUser2(.block_descriptor=, response=, error=) checkUsername:completion:]_block_invoke + 132 at KCSUser2+KinveyUserService.m:604

frame #13: 0x00000001001995c4 Glamsquad`-[KCSRequest2 callCallback:request:](self=0x00000001780cecb0, _cmd=, op=, request=) + 1976 at KCSRequest2.m:335

frame #14: 0x00000001001987d8 Glamsquad`-[KCSRequest2 requestCallback:request:](self=, _cmd=, op=, request=) + 1020 at KCSRequest2.m:256

frame #15: 0x0000000100198368 Glamsquad`__20-[KCSRequest2 start]_block_invoke_3(.block_descriptor=0x0000000178275180) + 52 at KCSRequest2.m:230

frame #16: 0x0000000185ef816c Foundation`__103+[__NSOperationInternal _observeValueForKeyPath:ofObject:changeKind:oldValue:newValue:indexes:context:]_block_invoke96 + 28

frame #17: 0x0000000191e70014 libdispatch.dylib`_dispatch_call_block_and_release + 24

frame #18: 0x0000000191e6ffd4 libdispatch.dylib`_dispatch_client_callout + 16

frame #19: 0x0000000191e772b8 libdispatch.dylib`_dispatch_root_queue_drain + 556

frame #20: 0x0000000191e774fc libdispatch.dylib`_dispatch_worker_thread2 + 76

frame #21: 0x00000001920056bc libsystem_pthread.dylib`_pthread_wqthread + 356
Login or Signup to post a comment