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

EXC_BAD_ACCESS #49

Open massoud12345 opened 7 years ago

massoud12345 commented 7 years ago

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

sw_vers ProductName: Mac OS X ProductVersion: 10.12.6 BuildVersion: 16G29 pod --version 1.2.0


Problem | Feature

gRPC Core issue when I run the code. In the file named: pb_decode. I get the following error message. Any idea on how to fix this issue? Thanks

screen shot 2017-08-05 at 17 48 10 c if (init_data) { if (PB_LTYPE(iter->pos->type) == PB_LTYPE_SUBMESSAGE) { / Initialize submessage to defaults / pb_message_set_to_defaults((const pb_field_t ) iter->pos->ptr, iter->pData); } else if (iter->pos->ptr != NULL) { / Initialize to default value / memcpy(iter->pData, iter->pos->ptr, iter->pos->data_size); } else { / Initialize to zeros */ memset(iter->pData, 0, iter->pos->data_size); } }

ih-arunr commented 6 years ago

I'm getting this crash on first installation. Does anyone got the fix?

ohtangza commented 6 years ago

I am having this error too. Any clue?

ih-arunr commented 6 years ago

I've removed pod and used latest SDK directly (drag and drop) downloaded from Firebase Console, CRASH GONE. I think pod version is mismatched with the other internal framework.

ohtangza commented 6 years ago

@ih-arunr Thank you so much! I will give it a try! You saved my day. 👍

derpoliuk commented 6 years ago

@ih-arunr which SDK exactly?

kalamareo commented 6 years ago

I have same problem after install pod. I've observed that in my case conflict is with Firebase SDK. If I comment //FirebaseApp.configure() on AppDelegate crash disappear.

ohtangza commented 6 years ago

@ghsdh3409 Can you help this issue so that people can move forward?

ghsdh3409 commented 6 years ago

Please retry after updating related gRPC. The current up-to-date version is 1.6(https://github.com/grpc/grpc) but the version in this repository uses 1.0.0-pre1.1. You can install changed version as modifying s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.0.0-pre1.1" to s.dependency "!ProtoCompiler-gRPCPlugin", "~> 1.6" in the googleapis.podspec.

ohtangza commented 6 years ago

@ghsdh3409 Thanks, man.