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

Android: ExceptionInInitializerError on Init #6

Closed
tayl0r opened this issue Nov 6, 2015 · 1 comment
Closed

Android: ExceptionInInitializerError on Init #6

tayl0r opened this issue Nov 6, 2015 · 1 comment

Comments

@tayl0r
Copy link

tayl0r commented Nov 6, 2015

About 5% of our DAU experiences this ExceptionInInitializerError every time on startup. Naturally, none of our devices get it.

We call FB.Init() fairly late in our app startup sequence, in this example our unity scripts begin doing stuff at 8 seconds into the game launch, and FB.Init() is called 14 seconds in, and then we get the exception about .5 seconds later (I can see our own code doing other stuff between FB.Init() and the exception).

> kyocera C5170
> OS: Android OS 4.0.4 / API-15 (IML77/release.20140730.032203)

Using Unity SDK v7.2.1 with FBAndroidSDK/4.7.0
AndroidJavaException: java.lang.ExceptionInInitializerError
Exception
UnityEngine.AndroidJNISafe.CheckException ()
UnityEngine.AndroidJNISafe.CallStaticVoidMethod (IntPtr clazz, IntPtr methodID, UnityEngine.jvalue[] args)
UnityEngine.AndroidJavaObject._CallStatic (System.String methodName, System.Object[] args)
UnityEngine.AndroidJavaObject.CallStatic (System.String methodName, System.Object[] args)
Facebook.Unity.Mobile.Android.FBJavaClass.CallStatic (System.String methodName, System.Object[] args)
Facebook.Unity.Mobile.Android.AndroidFacebook.CallFB (System.String method, System.String args)
Facebook.Unity.Mobile.Android.AndroidFacebook+JavaMethodCall`1[Facebook.Unity.IResult].Call (Facebook.Unity.MethodArguments args)
Facebook.Unity.Mobile.Android.AndroidFacebook.Init (System.String appId, Boolean cookie, Boolean logging, Boolean status, Boolean xfbml, System.String channelUrl, System.String authResponse, Boolean frictionlessRequests, Facebook.Unity.HideUnityDelegate hideUnityDelegate, Facebook.Unity.InitDelegate onInitComplete)
Facebook.Unity.FB.OnDllLoaded ()
Facebook.Unity.FB+CompiledFacebookLoader.Start ()

There is no matching java crash log in the Google Play console, the only error report is what you see here, from the built in Unity/C# error handling callback.

Any ideas?

@swiese
Copy link
Contributor

swiese commented Nov 6, 2015

I'm not sure clear why this would be happening and I haven't seen this before.
It might be useful to see if there is any consistent devices or android versions where this error is happening.

For reporting bugs we would prefer if you report them to
https://developers.facebook.com/bugs
They have better resources for triaging and reproducing issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants