-
Notifications
You must be signed in to change notification settings - Fork 115
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
[Question] Segfault on firebase::gma::Initialize #1247
Comments
I found a few problems with this issue:
|
Call stack shows: |
Just to clarify, you are using GMA without a FirebaseApp, right? Your sample code looks reasonable to me. I will try to reproduce and see what I can find. |
I am using it without a firebase app. I noticed if I integrate firebase (gradle plugins and everything) then it works flawlessly in the codebase, however, I would still like to use the least ammount of dependencies if possible. |
I am having the same issue using GMA without a FireBaseApp. The details and setup are the same as the original poster except I am using a Mac. Integrating Firebase also resolves the issue for me, but I would also like to avoid this dependency. I tried updating the Firebase C++ SDK version to 10.7.0 but the issue seems to exist in that version as well. Any updates? |
I was able to reproduce this issue. Upon looking into the code, I think I know what is happening. |
Any updates? |
I have now submitted a fix for this (#1320), which will be included in the next release (11.4.0) I'm going to close this issue for now as the fix is submitted. Feel free to re-open if any issues persist after the 11.4.0 version is released. |
The 11.4.0 release is now available, and it should include a fix for this issue. |
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the question here:
I am trying to initialize GMA, but it just throws a segfault and nothing else (project name is AndroidStudioTest, weird that the segfault leaves "an" out):
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 23276 (Thread-6), pid 27809 (droidstudiotest)
And there is no other error
Here is the relevant code:
`int InitGMA(struct android_app* app)
{
JNIEnv* env = 0;
JavaVM* jniiptr = app->activity->vm;
jint attachResult = jniiptr->AttachCurrentThread(&env, 0);
The text was updated successfully, but these errors were encountered: