GoogleCloudPlatform / ios-docs-samples

iOS samples that demonstrate APIs and services of Google Cloud Platform.
Apache License 2.0
328 stars 209 forks source link

Crash #120

Closed Glorifundel closed 5 years ago

Glorifundel commented 5 years ago

Please execute this shell command then replace it with your console output.

    ### OS
    ProductName:    Mac OS X
    ProductVersion: 10.14.4
    BuildVersion:   18E226
    ### POD
    1.6.1
    Kevins-MBP:speech-grpc-streaming kevin$ echo "### Project"
    ### Project
    speech/Objective-C/Speech-gRPC-Streaming/Podfile
    /Users/kevin/documents/programming/google/ios-docs-samples/speech/objective-c/speech-grpc-streaming

Hello, when attempting to press the "start streaming" button the application immediately crashes. Any suggestions on how to troubleshoot or resolve the NSInternalInconsistencyException?

--- crash information ---

Problem | Feature

When attempting to run this program I get the following error:

2019-07-25 15:13:50.111527-0400 Speech[639:607263] Assertion failure in -[GRPCWrappedCall startBatchWithOperations:errorHandler:], /Users/kevin/Documents/programming/google/ios-docs-samples/speech/Objective-C/Speech-gRPC-Streaming/Pods/gRPC/src/objective-c/GRPCClient/private/GRPCWrappedCall.m:294 2019-07-25 15:13:50.112303-0400 Speech[639:607263] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error starting a batch of operations: 10' *** First throw call stack: (0x1c423b3d 0x1b6ab067 0x1c423a19 0x1cd1952d 0x2203f5 0x21ffd3 0x2114ad 0x945467 0x95166f 0x948a39 0x951b31 0x95376b 0x953471 0x1bca687d 0x1bca645c) libc++abi.dylib: terminating with uncaught exception of type NSException

Glorifundel commented 5 years ago

Was defining the api key imporperly, which I wouldn't have expected to cause a crash, but generating a new api key and placing it in the #define API_KEY variable appropriately caused everything to function properly, closing.