Firebase-ios-sdk: Project with Firebase and gRPC-Core third library

Created on 20 Jun 2017  路  5Comments  路  Source: firebase/firebase-ios-sdk

[READ] Step 1: Are you in the right place?

YES

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 8.3.2
  • Firebase SDK version: 4.0.0
  • Library version: 4.0.0
  • Firebase Product: core, analytics, message, auth, database, remote config

[REQUIRED] Step 3: Describe the problem

Starting with firebase 3.13.X, application give a BAD_ACCESS on gRPC-Core/pb_decode.c on line 796, just later [FIRApp configure] on App Delegate. Using firebase 3.12 work fine. That's a Protobuffer issue?

Steps to reproduce:

Just put firebase version 3.13.0 or greater with pod 'gRPC-ProtoRPC' latest version on same project and the issue occurs

Relevant Code:

core

Most helpful comment

We're targeting a fix for the next release after Firebase 4.0.3

All 5 comments

@ernesto I added pod 'gRPC-ProtoRPC' to the Analytics quickstart and it runs fine in the simulator with Xcode 8.3.2 and Firebase 4.0.2.

Please provide more details about how to reproduce.

@paulb777 Hi. In fact, in the Analytics quickstart with pod 'gRPC-ProtoRPC' don't have issues on first install.
But i notice that's just occurs when is removed use_frameworks! in podfile and install with a previous working example installed on simulator or device.
If i run with a clean installation, i not get a crash, but analytics won't work.

AnalyticsExample[69656] <Error> [Firebase/Analytics][I-ACS023068] Data loss. Cannot record event metadata. Error: Error Domain=com.google.gmp.measurement.ErrorDomain Code=2 "Failed to insert/update unknown data type" UserInfo={NSLocalizedDescription=Failed to insert/update unknown data type}
2017-06-23 18:41:35.321 AnalyticsExample[69656] <Error> [Firebase/Analytics][I-ACS034010] Transaction failed
2017-06-23 18:41:35.337 AnalyticsExample[69656] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled
2017-06-23 18:41:45.215 AnalyticsExample[69656] <Debug> [Firebase/Analytics][I-ACS002001] Session timer fired
2017-06-23 18:41:45.216 AnalyticsExample[69656] <Debug> [Firebase/Analytics][I-ACS002003] Session timer canceled
2017-06-23 18:41:45.217 AnalyticsExample[69656] <Debug> [Firebase/Analytics][I-ACS023051] Logging event: origin, name, params: auto, session_start (_s), {
        firebase_event_origin (_o) = auto;
        firebase_screen_class (_sc) = FoodPickerViewController;
        firebase_screen_id (_si) = 3728163158387516426;
    }
2017-06-23 18:41:45.218 AnalyticsExample[69656] <Debug> [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: session_start (_s), {
        firebase_screen_id (_si) = 3728163158387516426;
        firebase_event_origin (_o) = auto;
        firebase_screen_class (_sc) = FoodPickerViewController;
        firebase_realtime (_r) = 1;
        firebase_debug (_dbg) = 1;
    }
2017-06-23 18:41:45.228 AnalyticsExample[69656] <Warning> [Firebase/Analytics][I-ACS012011] Received empty measurement bundle metadata for getting dictionary representation
2017-06-23 18:41:45.229 AnalyticsExample[69656] <Error> [Firebase/Analytics][I-ACS023068] Data loss. Cannot record event metadata. Error: Error Domain=com.google.gmp.measurement.ErrorDomain Code=2 "Failed to insert/update unknown data type" UserInfo={NSLocalizedDescription=Failed to insert/update unknown data type}
2017-06-23 18:41:45.231 AnalyticsExample[69656] <Error> [Firebase/Analytics][I-ACS034010] Transaction failed
2017-06-23 18:41:45.231 AnalyticsExample[69656] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled

Is a Objective-C project.

screen shot 2017-06-23 at 18 38 58

@ernesto Thanks for the report and follow up clarification!

I'm able to reproduce and will investigate with the team.

We're targeting a fix for the next release after Firebase 4.0.3

This issue is now fixed in Firebase 4.0.4 and gRPC 1.4.2.

Was this page helpful?
0 / 5 - 0 ratings