Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXC_BAD_ACCESS when using the sdk with firebase #77

Open
AlyAmeen opened this issue Oct 13, 2020 · 6 comments
Open

EXC_BAD_ACCESS when using the sdk with firebase #77

AlyAmeen opened this issue Oct 13, 2020 · 6 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@AlyAmeen
Copy link

Hello,

I have encountered an issue trying to use the plugin with Unity 2018.4.10, the issue is the plugin runs if I add it to an empty project, but when I add it to my project that has firebase with it and build it for IOS, XCode gives the following error :

EXC_BAD_ACCESS at #0 0x0000000105a5b660 in google::protobuf::internal::(anonymous namespace)::InitSCC_DFS(google::protobuf::internal::SCCInfoBase*) at /Users/jballoffet/Documents/PublicBuild/Crosscompilation/Latest/iOS/protobuf/src/google/protobuf/generated_message_util.cc:778

So I think protobuf is having a conflict with one of the plugins I have in the project, the plugins I have in the project :
Vuforia,Firebase,Tour360

my best guess is that it's Firebase having the same plugin and trying to initialize it twice, but I can't find the dll of protobuf anywhere else in the project and if I delete it, an error occur, so any idea of how to fix this ?

Thanks in advance

@cdytoby
Copy link
Collaborator

cdytoby commented Oct 13, 2020

This is a hard one to debug, and I need more information to identify the issue.

  1. When does this happen? During compile or during runtime? Does this happen before the app starts or after your splash screen shows up?
  2. Can you post the full stacktrace here? I believe there is more to this than the single "at line".
  3. Have you tried not to initialize your Firebase? would that work?

@cdytoby cdytoby added the question Further information is requested label Nov 4, 2020
@Dankann
Copy link

Dankann commented Nov 6, 2020

@cdytoby Also happening here.
Using Unity 2018.4.15f1 with firebase in the project.

The error happens when trying to open the app, it throws this error and doesn't open
image

This is all there is in the logs.

I haven't tried without firebase in the project.

@cdytoby cdytoby added the help wanted Extra attention is needed label Nov 11, 2020
@cdytoby
Copy link
Collaborator

cdytoby commented Nov 11, 2020

While trying it out myself, I'll mark it as help wanted.

@cdytoby
Copy link
Collaborator

cdytoby commented Nov 11, 2020

@Dankann @AlyAmeen

Which firebase packages did you use? there are many of them.

image

@cdytoby
Copy link
Collaborator

cdytoby commented Nov 17, 2020

Note for me: https://firebase.google.com/docs/unity/setup#add-sdks-upm

Firebase has unity package manager support.

@kukuhbr
Copy link

kukuhbr commented Mar 31, 2021

Hi! I'm having the same problem in iOS. @cdytoby
I've read your developer statement regarding that you've stopped active maintenance and switched to intermittent check to this repository. Thankyou for your hard work for this repo and I wish you good luck for what's to come.

I'm using unity 2018.4 and firebase 6.14 (also tried 6.16.1 with the same result).
I've also tried enabling zombie objects in Xcode without result.
The package I'm using is:

  • Function
  • Storage
  • App (Core)
  • Auth
  • Messaging
  • Crashlyrics
  • Analytics

Here is my backtrace from lldb
Screen Shot 2021-03-31 at 12 55 33

Other than that I've realised that the same GoogleProtobuf can exist in the project without any compile issues. this plugin (Assets/Cardboard/Plugins/GoogleProtobuf.dll) and GVR obsolete SDK (Assets/GoogleVR/Plugins/Google.ProtocolBuffers.dll) is it the same case with firebase libraries? "Different dll name but same compiled object class name in runtime"

Though there wouldn't possibly be a fix in the near future, I would really appreciate if you can provide any leads on what's the root cause what should I try to help progress on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants