Closed
Description
[REQUIRED] Please fill in the following fields:
- Pre-built SDK from the website or open-source from this repo: Pre-built
- Firebase C++ SDK version: 10.6.0
- Main Firebase Components in concern: Google Mobile Ads (Auth, Database, etc.)
- Other Firebase Components in use: None (Auth, Database, etc.)
- Platform you are using the C++ SDK on: Windows (Mac, Windows, or Linux)
- Platform you are targeting: Android (iOS, Android, and/or desktop)
[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);
firebase::InitResult result;
firebase::Future<firebase::gma::AdapterInitializationStatus> future =
firebase::gma::Initialize(env, app->activity->clazz, &result);`